Mercurial > libavcodec.hg
comparison avcodec.h @ 1299:9c3bfa79631f libavcodec
more comments
author | michaelni |
---|---|
date | Sat, 07 Jun 2003 22:21:08 +0000 |
parents | 1db67cd7808a |
children | e18667d1e94d |
comparison
equal
deleted
inserted
replaced
1298:5bc3184810dc | 1299:9c3bfa79631f |
---|---|
86 | 86 |
87 /** | 87 /** |
88 * Pixel format. | 88 * Pixel format. |
89 */ | 89 */ |
90 enum PixelFormat { | 90 enum PixelFormat { |
91 PIX_FMT_YUV420P, | 91 PIX_FMT_YUV420P, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) |
92 PIX_FMT_YUV422, | 92 PIX_FMT_YUV422, |
93 PIX_FMT_RGB24, ///< 3 bytes, R is first | 93 PIX_FMT_RGB24, ///< Packed pixel, 3 bytes per pixel, RGBRGB... |
94 PIX_FMT_BGR24, ///< 3 bytes, B is first | 94 PIX_FMT_BGR24, ///< Packed pixel, 3 bytes per pixel, BGRBGR... |
95 PIX_FMT_YUV422P, | 95 PIX_FMT_YUV422P, ///< Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples) |
96 PIX_FMT_YUV444P, | 96 PIX_FMT_YUV444P, ///< Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples) |
97 PIX_FMT_RGBA32, ///< always stored in cpu endianness | 97 PIX_FMT_RGBA32, ///< always stored in cpu endianness |
98 PIX_FMT_YUV410P, | 98 PIX_FMT_YUV410P, ///< Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples) |
99 PIX_FMT_YUV411P, | 99 PIX_FMT_YUV411P, ///< Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples) |
100 PIX_FMT_RGB565, ///< always stored in cpu endianness | 100 PIX_FMT_RGB565, ///< always stored in cpu endianness |
101 PIX_FMT_RGB555, ///< always stored in cpu endianness, most significant bit to 1 | 101 PIX_FMT_RGB555, ///< always stored in cpu endianness, most significant bit to 1 |
102 PIX_FMT_GRAY8, | 102 PIX_FMT_GRAY8, |
103 PIX_FMT_MONOWHITE, ///< 0 is white | 103 PIX_FMT_MONOWHITE, ///< 0 is white |
104 PIX_FMT_MONOBLACK, ///< 0 is black | 104 PIX_FMT_MONOBLACK, ///< 0 is black |
105 PIX_FMT_PAL8, ///< 8 bit with RGBA palette | 105 PIX_FMT_PAL8, ///< 8 bit with RGBA palette |
106 PIX_FMT_YUVJ420P, ///< YUV full scale (jpeg) | 106 PIX_FMT_YUVJ420P, ///< Planar YUV 4:2:0 full scale (jpeg) |
107 PIX_FMT_YUVJ422P, ///< YUV full scale (jpeg) | 107 PIX_FMT_YUVJ422P, ///< Planar YUV 4:2:2 full scale (jpeg) |
108 PIX_FMT_YUVJ444P, ///< YUV full scale (jpeg) | 108 PIX_FMT_YUVJ444P, ///< Planar YUV 4:4:4 full scale (jpeg) |
109 PIX_FMT_NB, | 109 PIX_FMT_NB, |
110 }; | 110 }; |
111 | 111 |
112 /* currently unused, may be used if 24/32 bits samples ever supported */ | 112 /* currently unused, may be used if 24/32 bits samples ever supported */ |
113 enum SampleFormat { | 113 enum SampleFormat { |
1192 * four components are given, that's all. | 1192 * four components are given, that's all. |
1193 * the last component is alpha | 1193 * the last component is alpha |
1194 */ | 1194 */ |
1195 typedef struct AVPicture { | 1195 typedef struct AVPicture { |
1196 uint8_t *data[4]; | 1196 uint8_t *data[4]; |
1197 int linesize[4]; | 1197 int linesize[4]; ///< number of bytes per line |
1198 } AVPicture; | 1198 } AVPicture; |
1199 | 1199 |
1200 extern AVCodec ac3_encoder; | 1200 extern AVCodec ac3_encoder; |
1201 extern AVCodec mp2_encoder; | 1201 extern AVCodec mp2_encoder; |
1202 extern AVCodec mp3lame_encoder; | 1202 extern AVCodec mp3lame_encoder; |