Mercurial > libavcodec.hg
comparison avcodec.h @ 371:8187bb132d85 libavcodec
* Start using enumerated types (makes debugging much easier)
| author | philipjsg |
|---|---|
| date | Thu, 09 May 2002 01:22:30 +0000 |
| parents | abbed9f28d75 |
| children | ba9c3b8088c0 |
comparison
equal
deleted
inserted
replaced
| 370:0eca28d16cbd | 371:8187bb132d85 |
|---|---|
| 37 CODEC_ID_PCM_ALAW, | 37 CODEC_ID_PCM_ALAW, |
| 38 }; | 38 }; |
| 39 #define CODEC_ID_MSMPEG4 CODEC_ID_MSMPEG4V3 | 39 #define CODEC_ID_MSMPEG4 CODEC_ID_MSMPEG4V3 |
| 40 | 40 |
| 41 enum CodecType { | 41 enum CodecType { |
| 42 CODEC_TYPE_UNKNOWN = -1, | |
| 42 CODEC_TYPE_VIDEO, | 43 CODEC_TYPE_VIDEO, |
| 43 CODEC_TYPE_AUDIO, | 44 CODEC_TYPE_AUDIO, |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 enum PixelFormat { | 47 enum PixelFormat { |
| 212 int frame_bits; | 213 int frame_bits; |
| 213 | 214 |
| 214 /* the following fields are ignored */ | 215 /* the following fields are ignored */ |
| 215 void *opaque; /* can be used to carry app specific stuff */ | 216 void *opaque; /* can be used to carry app specific stuff */ |
| 216 char codec_name[32]; | 217 char codec_name[32]; |
| 217 int codec_type; /* see CODEC_TYPE_xxx */ | 218 enum CodecType codec_type; /* see CODEC_TYPE_xxx */ |
| 218 int codec_id; /* see CODEC_ID_xxx */ | 219 enum CodecID codec_id; /* see CODEC_ID_xxx */ |
| 219 unsigned int codec_tag; /* codec tag, only used if unknown codec */ | 220 unsigned int codec_tag; /* codec tag, only used if unknown codec */ |
| 220 } AVCodecContext; | 221 } AVCodecContext; |
| 221 | 222 |
| 222 typedef struct AVCodec { | 223 typedef struct AVCodec { |
| 223 char *name; | 224 char *name; |
