annotate avcodec.h @ 133:e0bf2e9ce24c libavcodec

a few warning fixes (missing #include's)
author pl
date Thu, 25 Oct 2001 23:34:14 +0000
parents 1e4a4af694d1
children a4bd42a5d075
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
92
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
1 #ifndef AVCODEC_H
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
2 #define AVCODEC_H
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
3
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
4 #include "common.h"
986e461dc072 Initial revision
glantau
parents:
diff changeset
5
986e461dc072 Initial revision
glantau
parents:
diff changeset
6 enum CodecID {
986e461dc072 Initial revision
glantau
parents:
diff changeset
7 CODEC_ID_NONE,
986e461dc072 Initial revision
glantau
parents:
diff changeset
8 CODEC_ID_MPEG1VIDEO,
986e461dc072 Initial revision
glantau
parents:
diff changeset
9 CODEC_ID_H263,
986e461dc072 Initial revision
glantau
parents:
diff changeset
10 CODEC_ID_RV10,
986e461dc072 Initial revision
glantau
parents:
diff changeset
11 CODEC_ID_MP2,
986e461dc072 Initial revision
glantau
parents:
diff changeset
12 CODEC_ID_AC3,
986e461dc072 Initial revision
glantau
parents:
diff changeset
13 CODEC_ID_MJPEG,
67
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
14 CODEC_ID_MPEG4,
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
15 CODEC_ID_RAWVIDEO,
986e461dc072 Initial revision
glantau
parents:
diff changeset
16 CODEC_ID_MSMPEG4,
986e461dc072 Initial revision
glantau
parents:
diff changeset
17 CODEC_ID_H263P,
986e461dc072 Initial revision
glantau
parents:
diff changeset
18 CODEC_ID_H263I,
92
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
19
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
20 /* various pcm "codecs" */
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
21 CODEC_ID_PCM_S16LE,
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
22 CODEC_ID_PCM_S16BE,
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
23 CODEC_ID_PCM_U16LE,
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
24 CODEC_ID_PCM_U16BE,
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
25 CODEC_ID_PCM_S8,
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
26 CODEC_ID_PCM_U8,
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
27 CODEC_ID_PCM_MULAW,
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
28 CODEC_ID_PCM_ALAW,
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
29 };
986e461dc072 Initial revision
glantau
parents:
diff changeset
30
986e461dc072 Initial revision
glantau
parents:
diff changeset
31 enum CodecType {
986e461dc072 Initial revision
glantau
parents:
diff changeset
32 CODEC_TYPE_VIDEO,
986e461dc072 Initial revision
glantau
parents:
diff changeset
33 CODEC_TYPE_AUDIO,
986e461dc072 Initial revision
glantau
parents:
diff changeset
34 };
986e461dc072 Initial revision
glantau
parents:
diff changeset
35
986e461dc072 Initial revision
glantau
parents:
diff changeset
36 enum PixelFormat {
986e461dc072 Initial revision
glantau
parents:
diff changeset
37 PIX_FMT_YUV420P,
986e461dc072 Initial revision
glantau
parents:
diff changeset
38 PIX_FMT_YUV422,
986e461dc072 Initial revision
glantau
parents:
diff changeset
39 PIX_FMT_RGB24,
986e461dc072 Initial revision
glantau
parents:
diff changeset
40 PIX_FMT_BGR24,
27
b8723ec6c80f added 422P and 444P formats (need to patch ffmpeg.c so that it is handled in all the program)
glantau
parents: 24
diff changeset
41 PIX_FMT_YUV422P,
b8723ec6c80f added 422P and 444P formats (need to patch ffmpeg.c so that it is handled in all the program)
glantau
parents: 24
diff changeset
42 PIX_FMT_YUV444P,
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
43 };
986e461dc072 Initial revision
glantau
parents:
diff changeset
44
92
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
45 /* currently unused, may be used if 24/32 bits samples ever supported */
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
46 enum SampleFormat {
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
47 SAMPLE_FMT_S16 = 0, /* signed 16 bits */
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
48 };
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
49
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
50 /* in bytes */
986e461dc072 Initial revision
glantau
parents:
diff changeset
51 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 18432
986e461dc072 Initial revision
glantau
parents:
diff changeset
52
986e461dc072 Initial revision
glantau
parents:
diff changeset
53 /* motion estimation type */
986e461dc072 Initial revision
glantau
parents:
diff changeset
54 extern int motion_estimation_method;
986e461dc072 Initial revision
glantau
parents:
diff changeset
55 #define ME_ZERO 0
986e461dc072 Initial revision
glantau
parents:
diff changeset
56 #define ME_FULL 1
986e461dc072 Initial revision
glantau
parents:
diff changeset
57 #define ME_LOG 2
986e461dc072 Initial revision
glantau
parents:
diff changeset
58 #define ME_PHODS 3
986e461dc072 Initial revision
glantau
parents:
diff changeset
59
986e461dc072 Initial revision
glantau
parents:
diff changeset
60 /* encoding support */
986e461dc072 Initial revision
glantau
parents:
diff changeset
61
986e461dc072 Initial revision
glantau
parents:
diff changeset
62 #define CODEC_FLAG_HQ 0x0001 /* high quality (non real time) encoding */
986e461dc072 Initial revision
glantau
parents:
diff changeset
63 #define CODEC_FLAG_QSCALE 0x0002 /* use fixed qscale */
986e461dc072 Initial revision
glantau
parents:
diff changeset
64
67
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
65 /* codec capabilities */
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
66
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
67 /* decoder can use draw_horiz_band callback */
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
68 #define CODEC_CAP_DRAW_HORIZ_BAND 0x0001
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
69
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
70 #define FRAME_RATE_BASE 10000
986e461dc072 Initial revision
glantau
parents:
diff changeset
71
986e461dc072 Initial revision
glantau
parents:
diff changeset
72 typedef struct AVCodecContext {
986e461dc072 Initial revision
glantau
parents:
diff changeset
73 int bit_rate;
986e461dc072 Initial revision
glantau
parents:
diff changeset
74 int flags;
986e461dc072 Initial revision
glantau
parents:
diff changeset
75 int sub_id; /* some codecs needs additionnal format info. It is
986e461dc072 Initial revision
glantau
parents:
diff changeset
76 stored there */
986e461dc072 Initial revision
glantau
parents:
diff changeset
77 /* video only */
986e461dc072 Initial revision
glantau
parents:
diff changeset
78 int frame_rate; /* frames per sec multiplied by FRAME_RATE_BASE */
986e461dc072 Initial revision
glantau
parents:
diff changeset
79 int width, height;
986e461dc072 Initial revision
glantau
parents:
diff changeset
80 int gop_size; /* 0 = intra only */
986e461dc072 Initial revision
glantau
parents:
diff changeset
81 int pix_fmt; /* pixel format, see PIX_FMT_xxx */
67
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
82
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
83 /* if non NULL, 'draw_horiz_band' is called by the libavcodec
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
84 decoder to draw an horizontal band. It improve cache usage. Not
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
85 all codecs can do that. You must check the codec capabilities
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
86 before */
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
87 void (*draw_horiz_band)(struct AVCodecContext *s,
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
88 UINT8 **src_ptr, int linesize,
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
89 int y, int width, int height);
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
90
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
91 /* audio only */
986e461dc072 Initial revision
glantau
parents:
diff changeset
92 int sample_rate; /* samples per sec */
986e461dc072 Initial revision
glantau
parents:
diff changeset
93 int channels;
92
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
94 int sample_fmt; /* sample format, currenly unused */
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
95
986e461dc072 Initial revision
glantau
parents:
diff changeset
96 /* the following data should not be initialized */
986e461dc072 Initial revision
glantau
parents:
diff changeset
97 int frame_size; /* in samples, initialized when calling 'init' */
986e461dc072 Initial revision
glantau
parents:
diff changeset
98 int frame_number; /* audio or video frame number */
986e461dc072 Initial revision
glantau
parents:
diff changeset
99 int key_frame; /* true if the previous compressed frame was
986e461dc072 Initial revision
glantau
parents:
diff changeset
100 a key frame (intra, or seekable) */
986e461dc072 Initial revision
glantau
parents:
diff changeset
101 int quality; /* quality of the previous encoded frame
986e461dc072 Initial revision
glantau
parents:
diff changeset
102 (between 1 (good) and 31 (bad)) */
986e461dc072 Initial revision
glantau
parents:
diff changeset
103 struct AVCodec *codec;
986e461dc072 Initial revision
glantau
parents:
diff changeset
104 void *priv_data;
986e461dc072 Initial revision
glantau
parents:
diff changeset
105
986e461dc072 Initial revision
glantau
parents:
diff changeset
106 /* the following fields are ignored */
67
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
107 void *opaque; /* can be used to carry app specific stuff */
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
108 char codec_name[32];
986e461dc072 Initial revision
glantau
parents:
diff changeset
109 int codec_type; /* see CODEC_TYPE_xxx */
986e461dc072 Initial revision
glantau
parents:
diff changeset
110 int codec_id; /* see CODEC_ID_xxx */
986e461dc072 Initial revision
glantau
parents:
diff changeset
111 unsigned int codec_tag; /* codec tag, only used if unknown codec */
986e461dc072 Initial revision
glantau
parents:
diff changeset
112 } AVCodecContext;
986e461dc072 Initial revision
glantau
parents:
diff changeset
113
986e461dc072 Initial revision
glantau
parents:
diff changeset
114 typedef struct AVCodec {
986e461dc072 Initial revision
glantau
parents:
diff changeset
115 char *name;
986e461dc072 Initial revision
glantau
parents:
diff changeset
116 int type;
986e461dc072 Initial revision
glantau
parents:
diff changeset
117 int id;
986e461dc072 Initial revision
glantau
parents:
diff changeset
118 int priv_data_size;
986e461dc072 Initial revision
glantau
parents:
diff changeset
119 int (*init)(AVCodecContext *);
986e461dc072 Initial revision
glantau
parents:
diff changeset
120 int (*encode)(AVCodecContext *, UINT8 *buf, int buf_size, void *data);
986e461dc072 Initial revision
glantau
parents:
diff changeset
121 int (*close)(AVCodecContext *);
986e461dc072 Initial revision
glantau
parents:
diff changeset
122 int (*decode)(AVCodecContext *, void *outdata, int *outdata_size,
986e461dc072 Initial revision
glantau
parents:
diff changeset
123 UINT8 *buf, int buf_size);
67
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
124 int capabilities;
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
125 struct AVCodec *next;
986e461dc072 Initial revision
glantau
parents:
diff changeset
126 } AVCodec;
986e461dc072 Initial revision
glantau
parents:
diff changeset
127
986e461dc072 Initial revision
glantau
parents:
diff changeset
128 /* three components are given, that's all */
986e461dc072 Initial revision
glantau
parents:
diff changeset
129 typedef struct AVPicture {
986e461dc072 Initial revision
glantau
parents:
diff changeset
130 UINT8 *data[3];
986e461dc072 Initial revision
glantau
parents:
diff changeset
131 int linesize[3];
986e461dc072 Initial revision
glantau
parents:
diff changeset
132 } AVPicture;
986e461dc072 Initial revision
glantau
parents:
diff changeset
133
986e461dc072 Initial revision
glantau
parents:
diff changeset
134 extern AVCodec ac3_encoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
135 extern AVCodec mp2_encoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
136 extern AVCodec mpeg1video_encoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
137 extern AVCodec h263_encoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
138 extern AVCodec h263p_encoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
139 extern AVCodec rv10_encoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
140 extern AVCodec mjpeg_encoder;
67
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
141 extern AVCodec mpeg4_encoder;
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
142 extern AVCodec msmpeg4_encoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
143
986e461dc072 Initial revision
glantau
parents:
diff changeset
144 extern AVCodec h263_decoder;
67
cdd89f96cbe1 added draw_horiz_band test
glantau
parents: 49
diff changeset
145 extern AVCodec mpeg4_decoder;
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
146 extern AVCodec msmpeg4_decoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
147 extern AVCodec mpeg_decoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
148 extern AVCodec h263i_decoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
149 extern AVCodec rv10_decoder;
24
08265a63313e added MJPEG decoder + comments
glantau
parents: 3
diff changeset
150 extern AVCodec mjpeg_decoder;
92
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
151 extern AVCodec mp3_decoder;
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
152
92
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
153 /* pcm codecs */
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
154 #define PCM_CODEC(id, name) \
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
155 extern AVCodec name ## _decoder; \
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
156 extern AVCodec name ## _encoder;
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
157
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
158 PCM_CODEC(CODEC_ID_PCM_S16LE, pcm_s16le);
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
159 PCM_CODEC(CODEC_ID_PCM_S16BE, pcm_s16be);
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
160 PCM_CODEC(CODEC_ID_PCM_U16LE, pcm_u16le);
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
161 PCM_CODEC(CODEC_ID_PCM_U16BE, pcm_u16be);
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
162 PCM_CODEC(CODEC_ID_PCM_S8, pcm_s8);
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
163 PCM_CODEC(CODEC_ID_PCM_U8, pcm_u8);
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
164 PCM_CODEC(CODEC_ID_PCM_ALAW, pcm_alaw);
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
165 PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw);
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
166
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
167 #undef PCM_CODEC
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
168
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
169 /* dummy raw video codec */
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
170 extern AVCodec rawvideo_codec;
986e461dc072 Initial revision
glantau
parents:
diff changeset
171
986e461dc072 Initial revision
glantau
parents:
diff changeset
172 /* the following codecs use external GPL libs */
986e461dc072 Initial revision
glantau
parents:
diff changeset
173 extern AVCodec ac3_decoder;
986e461dc072 Initial revision
glantau
parents:
diff changeset
174
986e461dc072 Initial revision
glantau
parents:
diff changeset
175 /* resample.c */
986e461dc072 Initial revision
glantau
parents:
diff changeset
176
986e461dc072 Initial revision
glantau
parents:
diff changeset
177 struct ReSampleContext;
986e461dc072 Initial revision
glantau
parents:
diff changeset
178
986e461dc072 Initial revision
glantau
parents:
diff changeset
179 typedef struct ReSampleContext ReSampleContext;
986e461dc072 Initial revision
glantau
parents:
diff changeset
180
986e461dc072 Initial revision
glantau
parents:
diff changeset
181 ReSampleContext *audio_resample_init(int output_channels, int input_channels,
986e461dc072 Initial revision
glantau
parents:
diff changeset
182 int output_rate, int input_rate);
986e461dc072 Initial revision
glantau
parents:
diff changeset
183 int audio_resample(ReSampleContext *s, short *output, short *input, int nb_samples);
986e461dc072 Initial revision
glantau
parents:
diff changeset
184 void audio_resample_close(ReSampleContext *s);
986e461dc072 Initial revision
glantau
parents:
diff changeset
185
986e461dc072 Initial revision
glantau
parents:
diff changeset
186 /* YUV420 format is assumed ! */
986e461dc072 Initial revision
glantau
parents:
diff changeset
187
986e461dc072 Initial revision
glantau
parents:
diff changeset
188 struct ImgReSampleContext;
986e461dc072 Initial revision
glantau
parents:
diff changeset
189
986e461dc072 Initial revision
glantau
parents:
diff changeset
190 typedef struct ImgReSampleContext ImgReSampleContext;
986e461dc072 Initial revision
glantau
parents:
diff changeset
191
986e461dc072 Initial revision
glantau
parents:
diff changeset
192 ImgReSampleContext *img_resample_init(int output_width, int output_height,
986e461dc072 Initial revision
glantau
parents:
diff changeset
193 int input_width, int input_height);
986e461dc072 Initial revision
glantau
parents:
diff changeset
194 void img_resample(ImgReSampleContext *s,
986e461dc072 Initial revision
glantau
parents:
diff changeset
195 AVPicture *output, AVPicture *input);
986e461dc072 Initial revision
glantau
parents:
diff changeset
196
986e461dc072 Initial revision
glantau
parents:
diff changeset
197 void img_resample_close(ImgReSampleContext *s);
986e461dc072 Initial revision
glantau
parents:
diff changeset
198
49
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
199 void avpicture_fill(AVPicture *picture, UINT8 *ptr,
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
200 int pix_fmt, int width, int height);
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
201 int avpicture_get_size(int pix_fmt, int width, int height);
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
202
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
203 /* convert among pixel formats */
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
204 int img_convert(AVPicture *dst, int dst_pix_fmt,
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
205 AVPicture *src, int pix_fmt,
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
206 int width, int height);
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
207
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
208 /* deinterlace a picture */
0d1f70657c73 new img_convert API - added deinterlacing filter
glantau
parents: 27
diff changeset
209 int avpicture_deinterlace(AVPicture *dst, AVPicture *src,
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
210 int pix_fmt, int width, int height);
986e461dc072 Initial revision
glantau
parents:
diff changeset
211
986e461dc072 Initial revision
glantau
parents:
diff changeset
212 /* external high level API */
986e461dc072 Initial revision
glantau
parents:
diff changeset
213
986e461dc072 Initial revision
glantau
parents:
diff changeset
214 extern AVCodec *first_avcodec;
986e461dc072 Initial revision
glantau
parents:
diff changeset
215
986e461dc072 Initial revision
glantau
parents:
diff changeset
216 void avcodec_init(void);
986e461dc072 Initial revision
glantau
parents:
diff changeset
217
986e461dc072 Initial revision
glantau
parents:
diff changeset
218 void register_avcodec(AVCodec *format);
986e461dc072 Initial revision
glantau
parents:
diff changeset
219 AVCodec *avcodec_find_encoder(enum CodecID id);
986e461dc072 Initial revision
glantau
parents:
diff changeset
220 AVCodec *avcodec_find_decoder(enum CodecID id);
986e461dc072 Initial revision
glantau
parents:
diff changeset
221 AVCodec *avcodec_find_decoder_by_name(const char *name);
986e461dc072 Initial revision
glantau
parents:
diff changeset
222 void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode);
986e461dc072 Initial revision
glantau
parents:
diff changeset
223
986e461dc072 Initial revision
glantau
parents:
diff changeset
224 int avcodec_open(AVCodecContext *avctx, AVCodec *codec);
986e461dc072 Initial revision
glantau
parents:
diff changeset
225 int avcodec_decode_audio(AVCodecContext *avctx, INT16 *samples,
986e461dc072 Initial revision
glantau
parents:
diff changeset
226 int *frame_size_ptr,
986e461dc072 Initial revision
glantau
parents:
diff changeset
227 UINT8 *buf, int buf_size);
986e461dc072 Initial revision
glantau
parents:
diff changeset
228 int avcodec_decode_video(AVCodecContext *avctx, AVPicture *picture,
986e461dc072 Initial revision
glantau
parents:
diff changeset
229 int *got_picture_ptr,
986e461dc072 Initial revision
glantau
parents:
diff changeset
230 UINT8 *buf, int buf_size);
986e461dc072 Initial revision
glantau
parents:
diff changeset
231 int avcodec_encode_audio(AVCodecContext *avctx, UINT8 *buf, int buf_size,
986e461dc072 Initial revision
glantau
parents:
diff changeset
232 const short *samples);
986e461dc072 Initial revision
glantau
parents:
diff changeset
233 int avcodec_encode_video(AVCodecContext *avctx, UINT8 *buf, int buf_size,
986e461dc072 Initial revision
glantau
parents:
diff changeset
234 const AVPicture *pict);
986e461dc072 Initial revision
glantau
parents:
diff changeset
235
986e461dc072 Initial revision
glantau
parents:
diff changeset
236 int avcodec_close(AVCodecContext *avctx);
986e461dc072 Initial revision
glantau
parents:
diff changeset
237
986e461dc072 Initial revision
glantau
parents:
diff changeset
238 void avcodec_register_all(void);
92
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
239
108
1e4a4af694d1 exporting qscale data for postprocessing (for MPlayer)
arpi_esp
parents: 92
diff changeset
240 #ifdef FF_POSTPROCESS
1e4a4af694d1 exporting qscale data for postprocessing (for MPlayer)
arpi_esp
parents: 92
diff changeset
241 #ifndef MBC
1e4a4af694d1 exporting qscale data for postprocessing (for MPlayer)
arpi_esp
parents: 92
diff changeset
242 #define MBC 48
1e4a4af694d1 exporting qscale data for postprocessing (for MPlayer)
arpi_esp
parents: 92
diff changeset
243 #define MBR 36
1e4a4af694d1 exporting qscale data for postprocessing (for MPlayer)
arpi_esp
parents: 92
diff changeset
244 #endif
1e4a4af694d1 exporting qscale data for postprocessing (for MPlayer)
arpi_esp
parents: 92
diff changeset
245 extern int quant_store[MBR+1][MBC+1]; // [Review]
1e4a4af694d1 exporting qscale data for postprocessing (for MPlayer)
arpi_esp
parents: 92
diff changeset
246 #endif
1e4a4af694d1 exporting qscale data for postprocessing (for MPlayer)
arpi_esp
parents: 92
diff changeset
247
92
1d3eb6cdc6b5 added pcm codecs
glantau
parents: 67
diff changeset
248 #endif /* AVCODEC_H */