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
13 13
14API changes, most recent first:14API changes, most recent first:
15 15
162011-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
162011-08-xx - xxxxxxx - lavu 51.10.0212011-08-xx - xxxxxxx - lavu 51.10.0
17 Add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find() function.22 Add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find() function.
18 23
libavcodec/avcodec.h+8−0
@@ -4306,4 +4306,12 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op)); · 4305 unmodified lines
4306 */4306 */
4307enum AVMediaType avcodec_get_type(enum CodecID codec_id);4307enum AVMediaType avcodec_get_type(enum CodecID codec_id);
4308 4308
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 */
4315const AVClass *avcodec_get_class(void);
4316
4309#endif /* AVCODEC_AVCODEC_H */4317#endif /* AVCODEC_AVCODEC_H */
libavcodec/options.c+5−0
@@ -662,3 +662,8 @@ fail: · 661 unmodified lines
662 av_freep(&dest->rc_eq);662 av_freep(&dest->rc_eq);
663 return AVERROR(ENOMEM);663 return AVERROR(ENOMEM);
664}664}
665
666const 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
21#define AVCODEC_VERSION_H21#define AVCODEC_VERSION_H
22 22
23#define LIBAVCODEC_VERSION_MAJOR 5323#define LIBAVCODEC_VERSION_MAJOR 53
24#define LIBAVCODEC_VERSION_MINOR 924#define LIBAVCODEC_VERSION_MINOR 10
25#define LIBAVCODEC_VERSION_MICRO 025#define LIBAVCODEC_VERSION_MICRO 0
26 26
27#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \27#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
1613 */1613 */
1614int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int std_compliance);1614int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int std_compliance);
1615 1615
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 */
1622const AVClass *avformat_get_class(void);
1623
1616#endif /* AVFORMAT_AVFORMAT_H */1624#endif /* AVFORMAT_AVFORMAT_H */
libavformat/options.c+5−0
@@ -123,3 +123,8 @@ AVFormatContext *avformat_alloc_context(void) · 122 unmodified lines
123 avformat_get_context_defaults(ic);123 avformat_get_context_defaults(ic);
124 return ic;124 return ic;
125}125}
126
127const 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
24#include "libavutil/avutil.h"24#include "libavutil/avutil.h"
25 25
26#define LIBAVFORMAT_VERSION_MAJOR 5326#define LIBAVFORMAT_VERSION_MAJOR 53
27#define LIBAVFORMAT_VERSION_MINOR 527#define LIBAVFORMAT_VERSION_MINOR 6
28#define LIBAVFORMAT_VERSION_MICRO 028#define LIBAVFORMAT_VERSION_MICRO 0
29 29
30#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \30#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
67};67};
68 68
69const AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };69const AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };
70
71const AVClass *sws_get_class(void)
72{
73 return &sws_context_class;
74}
libswscale/swscale.h+8−1
@@ -32,7 +32,7 @@ · 31 unmodified lines
32#include "libavutil/pixfmt.h"32#include "libavutil/pixfmt.h"
33 33
34#define LIBSWSCALE_VERSION_MAJOR 234#define LIBSWSCALE_VERSION_MAJOR 2
35#define LIBSWSCALE_VERSION_MINOR 035#define LIBSWSCALE_VERSION_MINOR 1
36#define LIBSWSCALE_VERSION_MICRO 036#define LIBSWSCALE_VERSION_MICRO 0
37 37
38#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \38#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
351 */351 */
352void sws_convertPalette8ToPacked24(const uint8_t *src, uint8_t *dst, int num_pixels, const uint8_t *palette);352void sws_convertPalette8ToPacked24(const uint8_t *src, uint8_t *dst, int num_pixels, const uint8_t *palette);
353 353
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 */
360const AVClass *sws_get_class(void);
354 361
355#endif /* SWSCALE_SWSCALE_H */362#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