History

lavfi: move version macros to a new installed header version.h

Anton Khirnov committed 14 years ago

Commit 3167dc91 parent 43fe6a24 files · +49 −13Browse files

Unified · Split

4 files
  1. doc/APIchanges +3 −0
  2. libavfilter/Makefile +1 −1
  3. libavfilter/avfilter.h +2 −12
  4. libavfilter/version.h +43 −0
doc/APIchanges+3−0
@@ -13,6 +13,9 @@ libavutil: 2011-04-18 · 12 unmodified lines
1313
1414 API changes, most recent first:
1515
16+2012-01-xx - xxxxxxx - lavfi 2.15.0
17+ Add a new installed header -- libavfilter/version.h -- with version macros.
18+
1619 2011-01-03 - b73ec05 - lavu 51.21.0
1720 Add av_popcount64
1821
libavfilter/Makefile+1−1
@@ -3,7 +3,7 @@ FFLIBS = avutil · 2 unmodified lines
33 FFLIBS-$(CONFIG_MOVIE_FILTER) += avformat avcodec
44 FFLIBS-$(CONFIG_SCALE_FILTER) += swscale
55
6−HEADERS = avfilter.h avfiltergraph.h buffersrc.h vsrc_buffer.h
6+HEADERS = avfilter.h avfiltergraph.h buffersrc.h version.h vsrc_buffer.h
77
88 OBJS = allfilters.o \
99 avfilter.o \
libavfilter/avfilter.h+2−12
@@ -29,20 +29,10 @@ · 28 unmodified lines
2929 #include "libavutil/rational.h"
3030 #include "libavcodec/avcodec.h"
3131
32−#define LIBAVFILTER_VERSION_MAJOR 2
33−#define LIBAVFILTER_VERSION_MINOR 14
34−#define LIBAVFILTER_VERSION_MICRO 0
35−
36−#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
37− LIBAVFILTER_VERSION_MINOR, \
38− LIBAVFILTER_VERSION_MICRO)
39−#define LIBAVFILTER_VERSION AV_VERSION(LIBAVFILTER_VERSION_MAJOR, \
40− LIBAVFILTER_VERSION_MINOR, \
41− LIBAVFILTER_VERSION_MICRO)
42−#define LIBAVFILTER_BUILD LIBAVFILTER_VERSION_INT
43−
4432 #include <stddef.h>
4533
34+#include "libavfilter/version.h"
35+
4636 /**
4737 * Return the LIBAVFILTER_VERSION_INT constant.
4838 */
libavfilter/version.h+43−0
@@ -0,0 +1,43 @@
1+/*
2+ * Version macros.
3+ *
4+ * This file is part of Libav.
5+ *
6+ * Libav is free software; you can redistribute it and/or
7+ * modify it under the terms of the GNU Lesser General Public
8+ * License as published by the Free Software Foundation; either
9+ * version 2.1 of the License, or (at your option) any later version.
10+ *
11+ * Libav is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+ * Lesser General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU Lesser General Public
17+ * License along with Libav; if not, write to the Free Software
18+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19+ */
20+
21+#ifndef AVFILTER_VERSION_H
22+#define AVFILTER_VERSION_H
23+
24+/**
25+ * @file
26+ * Libavfilter version macros
27+ */
28+
29+#include "libavutil/avutil.h"
30+
31+#define LIBAVFILTER_VERSION_MAJOR 2
32+#define LIBAVFILTER_VERSION_MINOR 15
33+#define LIBAVFILTER_VERSION_MICRO 0
34+
35+#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
36+ LIBAVFILTER_VERSION_MINOR, \
37+ LIBAVFILTER_VERSION_MICRO)
38+#define LIBAVFILTER_VERSION AV_VERSION(LIBAVFILTER_VERSION_MAJOR, \
39+ LIBAVFILTER_VERSION_MINOR, \
40+ LIBAVFILTER_VERSION_MICRO)
41+#define LIBAVFILTER_BUILD LIBAVFILTER_VERSION_INT
42+
43+#endif // AVFILTER_VERSION_H

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t