Mercurial > libavcodec.hg
comparison avcodec.h @ 1231:b88dfc4bbf8c libavcodec
* introducing new public interface in imgconvert.c
+ avcodec_get_pix_fmt
converts textual representation of pixel format into
the actual id. Complements avcodec_get_pix_fmt_name.
+ avpicture_layout
serializes given picture into a flat array.
Complements avpicture_fill.
* adding a new option -pix_fmt to the ffmpeg, in order to control
pixel format for the codecs that do support it, like rawvideo,
for example.
* reducing complexity of the rawvideo codec by splitting it in two
and making it more reliable via hooking up to the avpicture_layout.
Plus adding new FourCC as described here: http://www.fourcc.org
* A tiny fix for avienc.c that makes avih and video strf consistent
regarding codec FourCC.
| author | romansh |
|---|---|
| date | Wed, 07 May 2003 19:01:45 +0000 |
| parents | 3fa9a3de913f |
| children | fc2a7eefa9cc |
comparison
equal
deleted
inserted
replaced
| 1230:31d090bae36c | 1231:b88dfc4bbf8c |
|---|---|
| 1242 PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms); | 1242 PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms); |
| 1243 | 1243 |
| 1244 #undef PCM_CODEC | 1244 #undef PCM_CODEC |
| 1245 | 1245 |
| 1246 /* dummy raw video codec */ | 1246 /* dummy raw video codec */ |
| 1247 extern AVCodec rawvideo_codec; | 1247 extern AVCodec rawvideo_encoder; |
| 1248 extern AVCodec rawvideo_decoder; | |
| 1248 | 1249 |
| 1249 /* the following codecs use external GPL libs */ | 1250 /* the following codecs use external GPL libs */ |
| 1250 extern AVCodec ac3_decoder; | 1251 extern AVCodec ac3_decoder; |
| 1251 | 1252 |
| 1252 /* resample.c */ | 1253 /* resample.c */ |
| 1279 | 1280 |
| 1280 void img_resample_close(ImgReSampleContext *s); | 1281 void img_resample_close(ImgReSampleContext *s); |
| 1281 | 1282 |
| 1282 int avpicture_fill(AVPicture *picture, uint8_t *ptr, | 1283 int avpicture_fill(AVPicture *picture, uint8_t *ptr, |
| 1283 int pix_fmt, int width, int height); | 1284 int pix_fmt, int width, int height); |
| 1285 int avpicture_layout(AVPicture* src, int pix_fmt, int width, int height, | |
| 1286 unsigned char *dest, int dest_size); | |
| 1284 int avpicture_get_size(int pix_fmt, int width, int height); | 1287 int avpicture_get_size(int pix_fmt, int width, int height); |
| 1285 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift); | 1288 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift); |
| 1286 const char *avcodec_get_pix_fmt_name(int pix_fmt); | 1289 const char *avcodec_get_pix_fmt_name(int pix_fmt); |
| 1290 enum PixelFormat avcodec_get_pix_fmt(const char* name); | |
| 1287 | 1291 |
| 1288 #define FF_LOSS_RESOLUTION 0x0001 /* loss due to resolution change */ | 1292 #define FF_LOSS_RESOLUTION 0x0001 /* loss due to resolution change */ |
| 1289 #define FF_LOSS_DEPTH 0x0002 /* loss due to color depth change */ | 1293 #define FF_LOSS_DEPTH 0x0002 /* loss due to color depth change */ |
| 1290 #define FF_LOSS_COLORSPACE 0x0004 /* loss due to color space conversion */ | 1294 #define FF_LOSS_COLORSPACE 0x0004 /* loss due to color space conversion */ |
| 1291 #define FF_LOSS_ALPHA 0x0008 /* loss of alpha bits */ | 1295 #define FF_LOSS_ALPHA 0x0008 /* loss of alpha bits */ |
