---
doc/APIchanges | 5 +++++
libavcodec/avcodec.h | 8 ++++++++
libavcodec/options.c | 5 +++++
libavcodec/version.h | 2 +-
libavformat/avformat.h | 8 ++++++++
libavformat/options.c | 5 +++++
libavformat/version.h | 2 +-
libswscale/options.c | 5 +++++
libswscale/swscale.h | 9 ++++++++-
9 files changed, 46 insertions(+), 3 deletions(-)
diff --git a/doc/APIchanges b/doc/APIchanges
index 240e613..65d76bd 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -13,6 +13,11 @@ libavutil: 2011-04-18
API changes, most recent first:
+2011-08-xx - xxxxxxx - lavc 53.10.0
+ lavf 53.6.0
+ lsws 2.1.0
+ Add {avcodec,avformat,sws}_get_class().
+
2011-08-xx - xxxxxxx - lavu 51.10.0
Add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find() function.
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index b47d41e..09ce7c2 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4289,4 +4289,12 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum
AVLockOp op));
*/
enum AVMediaType avcodec_get_type(enum CodecID codec_id);
+/**
+ * Get the AVClass for AVCodecContext. It can be used in combination with
+ * AV_OPT_SEARCH_FAKE_OBJ for examining options.
+ *
+ * @see av_opt_find().
+ */
+const AVClass *avcodec_get_class(void);
+
#endif /* AVCODEC_AVCODEC_H */
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 100a14d..89053af 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -640,3 +640,8 @@ fail:
av_freep(&dest->rc_eq);
return AVERROR(ENOMEM);
}
+
+const AVClass *avcodec_get_class(void)
+{
+ return &av_codec_context_class;
+}
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 889e945..a479938 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -21,7 +21,7 @@
#define AVCODEC_VERSION_H
#define LIBAVCODEC_VERSION_MAJOR 53
-#define LIBAVCODEC_VERSION_MINOR 9
+#define LIBAVCODEC_VERSION_MINOR 10
#define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 2a00a9f..cc5457e 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1613,4 +1613,12 @@ int av_match_ext(const char *filename, const char
*extensions);
*/
int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int
std_compliance);
+/**
+ * Get the AVClass for AVFormatContext. It can be used in combination with
+ * AV_OPT_SEARCH_FAKE_OBJ for examining options.
+ *
+ * @see av_opt_find().
+ */
+const AVClass *avformat_get_class(void);
+
#endif /* AVFORMAT_AVFORMAT_H */
diff --git a/libavformat/options.c b/libavformat/options.c
index 5ea0b18..43a6dec 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -123,3 +123,8 @@ AVFormatContext *avformat_alloc_context(void)
avformat_get_context_defaults(ic);
return ic;
}
+
+const AVClass *avformat_get_class(void)
+{
+ return &av_format_context_class;
+}
diff --git a/libavformat/version.h b/libavformat/version.h
index 36f1439..f952967 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -24,7 +24,7 @@
#include "libavutil/avutil.h"
#define LIBAVFORMAT_VERSION_MAJOR 53
-#define LIBAVFORMAT_VERSION_MINOR 5
+#define LIBAVFORMAT_VERSION_MINOR 6
#define LIBAVFORMAT_VERSION_MICRO 0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
diff --git a/libswscale/options.c b/libswscale/options.c
index ecd0ecd..d550629 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -67,3 +67,8 @@ static const AVOption options[] = {
};
const AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };
+
+const AVClass *sws_get_class(void)
+{
+ return &sws_context_class;
+}
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index f05a61e..91378a4 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -32,7 +32,7 @@
#include "libavutil/pixfmt.h"
#define LIBSWSCALE_VERSION_MAJOR 2
-#define LIBSWSCALE_VERSION_MINOR 0
+#define LIBSWSCALE_VERSION_MINOR 1
#define LIBSWSCALE_VERSION_MICRO 0
#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
*/
void sws_convertPalette8ToPacked24(const uint8_t *src, uint8_t *dst, int
num_pixels, const uint8_t *palette);
+/**
+ * Get the AVClass for swsContext. It can be used in combination with
+ * AV_OPT_SEARCH_FAKE_OBJ for examining options.
+ *
+ * @see av_opt_find().
+ */
+const AVClass *sws_get_class(void);
#endif /* SWSCALE_SWSCALE_H */
--
1.7.5.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel