diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-08-23 09:23:52 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-03 22:53:35 +0400 |
commit | fb4ca26bdbddfbbf21a2a212485d225438b4b234 (patch) | |
tree | 983d095575b393167fd7df1f2bd14e9f0ba9db39 /libswscale | |
parent | c11fb8288d282da430f598bb029deccbacb31591 (diff) |
lavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/options.c | 5 | ||||
-rw-r--r-- | libswscale/swscale.h | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/libswscale/options.c b/libswscale/options.c index ecd0ecd53a..d550629239 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 f05a61e212..91378a40c4 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 */ |