Mercurial > libavcodec.hg
comparison avcodec.h @ 2873:55809f38eb63 libavcodec
AVOption API improvments
support AVOptions for encoding in ffmpeg.c
| author | michael |
|---|---|
| date | Sun, 11 Sep 2005 11:10:25 +0000 |
| parents | 666064f710d4 |
| children | b6def74f5811 |
comparison
equal
deleted
inserted
replaced
| 2872:062b2d5d1eba | 2873:55809f38eb63 |
|---|---|
| 19 #define FFMPEG_VERSION "CVS" | 19 #define FFMPEG_VERSION "CVS" |
| 20 | 20 |
| 21 #define AV_STRINGIFY(s) AV_TOSTRING(s) | 21 #define AV_STRINGIFY(s) AV_TOSTRING(s) |
| 22 #define AV_TOSTRING(s) #s | 22 #define AV_TOSTRING(s) #s |
| 23 | 23 |
| 24 #define LIBAVCODEC_VERSION_INT ((49<<16)+(2<<8)+0) | 24 #define LIBAVCODEC_VERSION_INT ((50<<16)+(0<<8)+0) |
| 25 #define LIBAVCODEC_VERSION 49.2.0 | 25 #define LIBAVCODEC_VERSION 50.0.0 |
| 26 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT | 26 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT |
| 27 | 27 |
| 28 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) | 28 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) |
| 29 | 29 |
| 30 #define AV_NOPTS_VALUE int64_t_C(0x8000000000000000) | 30 #define AV_NOPTS_VALUE int64_t_C(0x8000000000000000) |
| 701 | 701 |
| 702 int flags; | 702 int flags; |
| 703 #define AV_OPT_FLAG_ENCODING_PARAM 1 ///< a generic parameter which can be set by the user for muxing or encoding | 703 #define AV_OPT_FLAG_ENCODING_PARAM 1 ///< a generic parameter which can be set by the user for muxing or encoding |
| 704 #define AV_OPT_FLAG_DECODING_PARAM 2 ///< a generic parameter which can be set by the user for demuxing or decoding | 704 #define AV_OPT_FLAG_DECODING_PARAM 2 ///< a generic parameter which can be set by the user for demuxing or decoding |
| 705 #define AV_OPT_FLAG_METADATA 4 ///< some data extracted or inserted into the file like title, comment, ... | 705 #define AV_OPT_FLAG_METADATA 4 ///< some data extracted or inserted into the file like title, comment, ... |
| 706 #define AV_OPT_FLAG_AUDIO_PARAM 8 | |
| 707 #define AV_OPT_FLAG_VIDEO_PARAM 16 | |
| 708 #define AV_OPT_FLAG_SUBTITLE_PARAM 32 | |
| 709 //FIXME think about enc-audio, ... style flags | |
| 706 } AVOption; | 710 } AVOption; |
| 707 | 711 |
| 708 /** | 712 /** |
| 709 * Used by av_log | 713 * Used by av_log |
| 710 */ | 714 */ |
| 1881 * - decoding: set by user. | 1885 * - decoding: set by user. |
| 1882 */ | 1886 */ |
| 1883 enum AVDiscard skip_frame; | 1887 enum AVDiscard skip_frame; |
| 1884 } AVCodecContext; | 1888 } AVCodecContext; |
| 1885 | 1889 |
| 1886 int av_set_string(void *obj, const char *name, const char *val); | 1890 AVOption *av_set_string(void *obj, const char *name, const char *val); |
| 1887 int av_set_double(void *obj, const char *name, double n); | 1891 AVOption *av_set_double(void *obj, const char *name, double n); |
| 1888 int av_set_q(void *obj, const char *name, AVRational n); | 1892 AVOption *av_set_q(void *obj, const char *name, AVRational n); |
| 1889 int av_set_int(void *obj, const char *name, int64_t n); | 1893 AVOption *av_set_int(void *obj, const char *name, int64_t n); |
| 1890 const char *av_get_string(void *obj, const char *name); | 1894 double av_get_double(void *obj, const char *name, AVOption **o_out); |
| 1891 double av_get_double(void *obj, const char *name); | 1895 AVRational av_get_q(void *obj, const char *name, AVOption **o_out); |
| 1896 int64_t av_get_int(void *obj, const char *name, AVOption **o_out); | |
| 1897 const char *av_get_string(void *obj, const char *name, AVOption **o_out, char *buf, int buf_len); | |
| 1892 AVOption *av_next_option(void *obj, AVOption *last); | 1898 AVOption *av_next_option(void *obj, AVOption *last); |
| 1893 | 1899 int av_opt_show(void *obj, FILE *f); |
| 1894 | 1900 |
| 1895 /** | 1901 /** |
| 1896 * AVCodec. | 1902 * AVCodec. |
| 1897 */ | 1903 */ |
| 1898 typedef struct AVCodec { | 1904 typedef struct AVCodec { |
