comparison avcodec.h @ 2552:9a7770ebed14 libavcodec

AVOption removial patch from (James A. Morrison >ja2morri csclub.uwaterloo ca>) with minor changes from me
author michael
date Sun, 06 Mar 2005 23:20:53 +0000
parents 8bf96ac84409
children e5af3bc1d038
comparison
equal deleted inserted replaced
2551:615995277bc5 2552:9a7770ebed14
15 #include "rational.h" 15 #include "rational.h"
16 #include <sys/types.h> /* size_t */ 16 #include <sys/types.h> /* size_t */
17 17
18 #define FFMPEG_VERSION_INT 0x000409 18 #define FFMPEG_VERSION_INT 0x000409
19 #define FFMPEG_VERSION "0.4.9-pre1" 19 #define FFMPEG_VERSION "0.4.9-pre1"
20 #define LIBAVCODEC_BUILD 4746 20 #define LIBAVCODEC_BUILD 4747
21 21
22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT 22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT
23 #define LIBAVCODEC_VERSION FFMPEG_VERSION 23 #define LIBAVCODEC_VERSION FFMPEG_VERSION
24 24
25 #define AV_STRINGIFY(s) AV_TOSTRING(s) 25 #define AV_STRINGIFY(s) AV_TOSTRING(s)
1816 const char *defstr; 1816 const char *defstr;
1817 #define FF_OPT_MAX_DEPTH 10 1817 #define FF_OPT_MAX_DEPTH 10
1818 } AVOption; 1818 } AVOption;
1819 1819
1820 /** 1820 /**
1821 * Parse option(s) and sets fields in passed structure
1822 * @param strct structure where the parsed results will be written
1823 * @param list list with AVOptions
1824 * @param opts string with options for parsing
1825 */
1826 int avoption_parse(void* strct, const AVOption* list, const char* opts);
1827
1828
1829 /**
1830 * AVCodec. 1821 * AVCodec.
1831 */ 1822 */
1832 typedef struct AVCodec { 1823 typedef struct AVCodec {
1833 const char *name; 1824 const char *name;
1834 enum CodecType type; 1825 enum CodecType type;
1838 int (*encode)(AVCodecContext *, uint8_t *buf, int buf_size, void *data); 1829 int (*encode)(AVCodecContext *, uint8_t *buf, int buf_size, void *data);
1839 int (*close)(AVCodecContext *); 1830 int (*close)(AVCodecContext *);
1840 int (*decode)(AVCodecContext *, void *outdata, int *outdata_size, 1831 int (*decode)(AVCodecContext *, void *outdata, int *outdata_size,
1841 uint8_t *buf, int buf_size); 1832 uint8_t *buf, int buf_size);
1842 int capabilities; 1833 int capabilities;
1843 const AVOption *options; 1834 void *dummy; // FIXME remove next time we break binary compatibility
1844 struct AVCodec *next; 1835 struct AVCodec *next;
1845 void (*flush)(AVCodecContext *); 1836 void (*flush)(AVCodecContext *);
1846 const AVRational *supported_framerates; ///array of supported framerates, or NULL if any, array is terminated by {0,0} 1837 const AVRational *supported_framerates; ///array of supported framerates, or NULL if any, array is terminated by {0,0}
1847 const enum PixelFormat *pix_fmts; ///array of supported pixel formats, or NULL if unknown, array is terminanted by -1 1838 const enum PixelFormat *pix_fmts; ///array of supported pixel formats, or NULL if unknown, array is terminanted by -1
1848 } AVCodec; 1839 } AVCodec;