comparison avcodec.h @ 987:295ec9bebf93 libavcodec

new image formats - suppressed ill defined formats (endianness, unless specified, is always the one of the CPU) - added avcodec_get_pix_fmt_name()
author bellard
date Sat, 11 Jan 2003 00:04:36 +0000
parents e162c09efbe7
children 2fabb7d709e7
comparison
equal deleted inserted replaced
986:be3ffaaf5a6d 987:295ec9bebf93
60 }; 60 };
61 61
62 enum PixelFormat { 62 enum PixelFormat {
63 PIX_FMT_YUV420P, 63 PIX_FMT_YUV420P,
64 PIX_FMT_YUV422, 64 PIX_FMT_YUV422,
65 PIX_FMT_RGB24, 65 PIX_FMT_RGB24, /* 3 bytes, R is first */
66 PIX_FMT_BGR24, 66 PIX_FMT_BGR24, /* 3 bytes, B is first */
67 PIX_FMT_YUV422P, 67 PIX_FMT_YUV422P,
68 PIX_FMT_YUV444P, 68 PIX_FMT_YUV444P,
69 PIX_FMT_RGBA32, 69 PIX_FMT_RGBA32, /* always stored in cpu endianness */
70 PIX_FMT_BGRA32,
71 PIX_FMT_YUV410P, 70 PIX_FMT_YUV410P,
72 PIX_FMT_YUV411P, 71 PIX_FMT_YUV411P,
73 PIX_FMT_RGB565, 72 PIX_FMT_RGB565, /* always stored in cpu endianness */
74 PIX_FMT_RGB555, 73 PIX_FMT_RGB555, /* always stored in cpu endianness, most significant bit to 1 */
75 // PIX_FMT_RGB5551, 74 PIX_FMT_GRAY8,
76 PIX_FMT_BGR565, 75 PIX_FMT_MONOWHITE, /* 0 is white */
77 PIX_FMT_BGR555, 76 PIX_FMT_MONOBLACK, /* 0 is black */
78 // PIX_FMT_GBR565, 77 PIX_FMT_NB,
79 // PIX_FMT_GBR555
80 }; 78 };
81 79
82 /* currently unused, may be used if 24/32 bits samples ever supported */ 80 /* currently unused, may be used if 24/32 bits samples ever supported */
83 enum SampleFormat { 81 enum SampleFormat {
84 SAMPLE_FMT_S16 = 0, /* signed 16 bits */ 82 SAMPLE_FMT_S16 = 0, /* signed 16 bits */
1050 void img_resample_close(ImgReSampleContext *s); 1048 void img_resample_close(ImgReSampleContext *s);
1051 1049
1052 void avpicture_fill(AVPicture *picture, UINT8 *ptr, 1050 void avpicture_fill(AVPicture *picture, UINT8 *ptr,
1053 int pix_fmt, int width, int height); 1051 int pix_fmt, int width, int height);
1054 int avpicture_get_size(int pix_fmt, int width, int height); 1052 int avpicture_get_size(int pix_fmt, int width, int height);
1055 void avcodec_get_chroma_sub_sample(int fmt, int *h_shift, int *v_shift); 1053 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift);
1054 const char *avcodec_get_pix_fmt_name(int pix_fmt);
1056 1055
1057 /* convert among pixel formats */ 1056 /* convert among pixel formats */
1058 int img_convert(AVPicture *dst, int dst_pix_fmt, 1057 int img_convert(AVPicture *dst, int dst_pix_fmt,
1059 AVPicture *src, int pix_fmt, 1058 AVPicture *src, int pix_fmt,
1060 int width, int height); 1059 int width, int height);