Mercurial > libavcodec.hg
comparison avcodec.h @ 1535:bcb30ec7e86f libavcodec
activate the XA and ADX ADPCM codecs
| author | melanson |
|---|---|
| date | Wed, 15 Oct 2003 03:20:40 +0000 |
| parents | 39efe24058ad |
| children | 7542cb99b950 |
comparison
equal
deleted
inserted
replaced
| 1534:5bdf2017d854 | 1535:bcb30ec7e86f |
|---|---|
| 99 CODEC_ID_ADPCM_IMA_DK3, | 99 CODEC_ID_ADPCM_IMA_DK3, |
| 100 CODEC_ID_ADPCM_IMA_DK4, | 100 CODEC_ID_ADPCM_IMA_DK4, |
| 101 CODEC_ID_ADPCM_IMA_WS, | 101 CODEC_ID_ADPCM_IMA_WS, |
| 102 CODEC_ID_ADPCM_MS, | 102 CODEC_ID_ADPCM_MS, |
| 103 CODEC_ID_ADPCM_4XM, | 103 CODEC_ID_ADPCM_4XM, |
| 104 CODEC_ID_ADPCM_XA, | |
| 105 CODEC_ID_ADPCM_ADX, | |
| 104 | 106 |
| 105 /* AMR */ | 107 /* AMR */ |
| 106 CODEC_ID_AMR_NB, | 108 CODEC_ID_AMR_NB, |
| 107 CODEC_ID_AMR_WB, | 109 CODEC_ID_AMR_WB, |
| 108 | 110 |
| 136 * | 138 * |
| 137 * When the pixel format is palettized RGB (PIX_FMT_PAL8), the palettized | 139 * When the pixel format is palettized RGB (PIX_FMT_PAL8), the palettized |
| 138 * image data is stored in AVFrame.data[0]. The palette is transported in | 140 * image data is stored in AVFrame.data[0]. The palette is transported in |
| 139 * AVFrame.data[1] and, is 1024 bytes long (256 4-byte entries) and is | 141 * AVFrame.data[1] and, is 1024 bytes long (256 4-byte entries) and is |
| 140 * formatted the same as in PIX_FMT_RGBA32 described above (i.e., it is | 142 * formatted the same as in PIX_FMT_RGBA32 described above (i.e., it is |
| 141 * also endian-specific). | 143 * also endian-specific). Note also that the individual RGB palette |
| 144 * components stored in AVFrame.data[1] should be in the range 0..255. | |
| 145 * This is important as many custom PAL8 video codecs that were designed | |
| 146 * to run on the IBM VGA graphics adapter use 6-bit palette components. | |
| 142 */ | 147 */ |
| 143 enum PixelFormat { | 148 enum PixelFormat { |
| 144 PIX_FMT_YUV420P, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) | 149 PIX_FMT_YUV420P, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) |
| 145 PIX_FMT_YUV422, | 150 PIX_FMT_YUV422, |
| 146 PIX_FMT_RGB24, ///< Packed pixel, 3 bytes per pixel, RGBRGB... | 151 PIX_FMT_RGB24, ///< Packed pixel, 3 bytes per pixel, RGBRGB... |
| 1486 PCM_CODEC(CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3); | 1491 PCM_CODEC(CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3); |
| 1487 PCM_CODEC(CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4); | 1492 PCM_CODEC(CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4); |
| 1488 PCM_CODEC(CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws); | 1493 PCM_CODEC(CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws); |
| 1489 PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms); | 1494 PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms); |
| 1490 PCM_CODEC(CODEC_ID_ADPCM_4XM, adpcm_4xm); | 1495 PCM_CODEC(CODEC_ID_ADPCM_4XM, adpcm_4xm); |
| 1496 PCM_CODEC(CODEC_ID_ADPCM_XA, adpcm_xa); | |
| 1497 PCM_CODEC(CODEC_ID_ADPCM_ADX, adpcm_adx); | |
| 1491 | 1498 |
| 1492 #undef PCM_CODEC | 1499 #undef PCM_CODEC |
| 1493 | 1500 |
| 1494 /* dummy raw video codec */ | 1501 /* dummy raw video codec */ |
| 1495 extern AVCodec rawvideo_encoder; | 1502 extern AVCodec rawvideo_encoder; |
| 1739 /* call av_free_static to release all staticaly allocated tables */ | 1746 /* call av_free_static to release all staticaly allocated tables */ |
| 1740 void av_free_static(void); | 1747 void av_free_static(void); |
| 1741 void *__av_mallocz_static(void** location, unsigned int size); | 1748 void *__av_mallocz_static(void** location, unsigned int size); |
| 1742 #define av_mallocz_static(p, s) __av_mallocz_static((void **)(p), s) | 1749 #define av_mallocz_static(p, s) __av_mallocz_static((void **)(p), s) |
| 1743 | 1750 |
| 1751 /* add by bero : in adx.c */ | |
| 1752 int is_adx(const unsigned char *buf,size_t bufsize); | |
| 1753 | |
| 1744 #ifdef __cplusplus | 1754 #ifdef __cplusplus |
| 1745 } | 1755 } |
| 1746 #endif | 1756 #endif |
| 1747 | 1757 |
| 1748 #endif /* AVCODEC_H */ | 1758 #endif /* AVCODEC_H */ |
