History

lavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.

Anton Khirnov committed 15 years ago

Commit fb4ca261 parent c11fb829 files · +46 −3Browse files

Unified · Split

9 files
  1. doc/APIchanges +5 −0
  2. libavcodec/avcodec.h +8 −0
  3. libavcodec/options.c +5 −0
  4. libavcodec/version.h +1 −1
  5. libavformat/avformat.h +8 −0
  6. libavformat/options.c +5 −0
  7. libavformat/version.h +1 −1
  8. libswscale/options.c +5 −0
  9. libswscale/swscale.h +8 −1
doc/APIchanges+5−0
@@ -13,6 +13,11 @@ libavutil: 2011-04-18 · 12 unmodified lines
1313
1414 API changes, most recent first:
1515
16+2011-08-xx - xxxxxxx - lavc 53.10.0
17+ lavf 53.6.0
18+ lsws 2.1.0
19+ Add {avcodec,avformat,sws}_get_class().
20+
1621 2011-08-xx - xxxxxxx - lavu 51.10.0
1722 Add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find() function.
1823
libavcodec/avcodec.h+8−0
@@ -4306,4 +4306,12 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op)); · 4305 unmodified lines
43064306 */
43074307 enum AVMediaType avcodec_get_type(enum CodecID codec_id);
43084308
4309+/**
4310+ * Get the AVClass for AVCodecContext. It can be used in combination with
4311+ * AV_OPT_SEARCH_FAKE_OBJ for examining options.
4312+ *
4313+ * @see av_opt_find().
4314+ */
4315+const AVClass *avcodec_get_class(void);
4316+
43094317 #endif /* AVCODEC_AVCODEC_H */
libavcodec/options.c+5−0
@@ -662,3 +662,8 @@ fail: · 661 unmodified lines
662662 av_freep(&dest->rc_eq);
663663 return AVERROR(ENOMEM);
664664 }
665+
666+const AVClass *avcodec_get_class(void)
667+{
668+ return &av_codec_context_class;
669+}
libavcodec/version.h+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121 #define AVCODEC_VERSION_H
2222
2323 #define LIBAVCODEC_VERSION_MAJOR 53
24−#define LIBAVCODEC_VERSION_MINOR 9
24+#define LIBAVCODEC_VERSION_MINOR 10
2525 #define LIBAVCODEC_VERSION_MICRO 0
2626
2727 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
libavformat/avformat.h+8−0
@@ -1613,4 +1613,12 @@ int av_match_ext(const char *filename, const char *extensions); · 1612 unmodified lines
16131613 */
16141614 int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int std_compliance);
16151615
1616+/**
1617+ * Get the AVClass for AVFormatContext. It can be used in combination with
1618+ * AV_OPT_SEARCH_FAKE_OBJ for examining options.
1619+ *
1620+ * @see av_opt_find().
1621+ */
1622+const AVClass *avformat_get_class(void);
1623+
16161624 #endif /* AVFORMAT_AVFORMAT_H */
libavformat/options.c+5−0
@@ -123,3 +123,8 @@ AVFormatContext *avformat_alloc_context(void) · 122 unmodified lines
123123 avformat_get_context_defaults(ic);
124124 return ic;
125125 }
126+
127+const AVClass *avformat_get_class(void)
128+{
129+ return &av_format_context_class;
130+}
libavformat/version.h+1−1
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424 #include "libavutil/avutil.h"
2525
2626 #define LIBAVFORMAT_VERSION_MAJOR 53
27−#define LIBAVFORMAT_VERSION_MINOR 5
27+#define LIBAVFORMAT_VERSION_MINOR 6
2828 #define LIBAVFORMAT_VERSION_MICRO 0
2929
3030 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
libswscale/options.c+5−0
@@ -67,3 +67,8 @@ static const AVOption options[] = { · 66 unmodified lines
6767 };
6868
6969 const AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };
70+
71+const AVClass *sws_get_class(void)
72+{
73+ return &sws_context_class;
74+}
libswscale/swscale.h+8−1
@@ -32,7 +32,7 @@ · 31 unmodified lines
3232 #include "libavutil/pixfmt.h"
3333
3434 #define LIBSWSCALE_VERSION_MAJOR 2
35−#define LIBSWSCALE_VERSION_MINOR 0
35+#define LIBSWSCALE_VERSION_MINOR 1
3636 #define LIBSWSCALE_VERSION_MICRO 0
3737
3838 #define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
@@ -351,5 +351,12 @@ void sws_convertPalette8ToPacked32(const uint8_t *src, uint8_t *dst, int num_pix · 312 unmodified lines
351351 */
352352 void sws_convertPalette8ToPacked24(const uint8_t *src, uint8_t *dst, int num_pixels, const uint8_t *palette);
353353
354+/**
355+ * Get the AVClass for swsContext. It can be used in combination with
356+ * AV_OPT_SEARCH_FAKE_OBJ for examining options.
357+ *
358+ * @see av_opt_find().
359+ */
360+const AVClass *sws_get_class(void);
354361
355362 #endif /* SWSCALE_SWSCALE_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