History

pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*

Anton Khirnov committed 13 years ago

Commit e6c4ac71 parent 7c57a5823 files · +214 −178Browse files

Unified · Split

23 files
  1. cmdutils.c +5 −5
  2. doc/APIchanges +3 −0
  3. libavcodec/avpicture.c +2 −2
  4. libavcodec/ffv1dec.c +1 −1
  5. libavcodec/ffv1enc.c +1 −1
  6. libavcodec/imgconvert.c +6 −6
  7. libavcodec/pnm.c +1 −1
  8. libavcodec/rawdec.c +3 −3
  9. libavcodec/tiffenc.c +2 −2
  10. libavcodec/utils.c +2 −2
  11. libavcodec/xwdenc.c +1 −1
  12. libavfilter/formats.c +1 −1
  13. libavfilter/vf_crop.c +1 −1
  14. libavfilter/vf_fieldorder.c +2 −2
  15. libavfilter/vf_pixdesctest.c +2 −2
  16. libavfilter/vf_scale.c +2 −2
  17. libavutil/frame.c +1 −1
  18. libavutil/imgutils.c +10 −10
  19. libavutil/pixdesc.c +112 −112
  20. libavutil/pixdesc.h +42 −9
  21. libavutil/version.h +2 −2
  22. libswscale/swscale_internal.h +11 −11
  23. libswscale/swscale_unscaled.c +1 −1
cmdutils.c+5−5
@@ -1161,11 +1161,11 @@ int show_pix_fmts(void *optctx, const char *opt, const char *arg) · 1160 unmodified lines
11611161 while ((pix_desc = av_pix_fmt_desc_next(pix_desc))) {
11621162 enum AVPixelFormat pix_fmt = av_pix_fmt_desc_get_id(pix_desc);
11631163 printf("%c%c%c%c%c %-16s %d %2d\n",
1164− sws_isSupportedInput (pix_fmt) ? 'I' : '.',
1165− sws_isSupportedOutput(pix_fmt) ? 'O' : '.',
1166− pix_desc->flags & PIX_FMT_HWACCEL ? 'H' : '.',
1167− pix_desc->flags & PIX_FMT_PAL ? 'P' : '.',
1168− pix_desc->flags & PIX_FMT_BITSTREAM ? 'B' : '.',
1164+ sws_isSupportedInput (pix_fmt) ? 'I' : '.',
1165+ sws_isSupportedOutput(pix_fmt) ? 'O' : '.',
1166+ pix_desc->flags & AV_PIX_FMT_FLAG_HWACCEL ? 'H' : '.',
1167+ pix_desc->flags & AV_PIX_FMT_FLAG_PAL ? 'P' : '.',
1168+ pix_desc->flags & AV_PIX_FMT_FLAG_BITSTREAM ? 'B' : '.',
11691169 pix_desc->name,
11701170 pix_desc->nb_components,
11711171 av_get_bits_per_pixel(pix_desc));
doc/APIchanges+3−0
@@ -13,6 +13,9 @@ libavutil: 2012-10-22 · 12 unmodified lines
1313
1414 API changes, most recent first:
1515
16+2013-05-xx - xxxxxxx - lavu 52.11.0 - pixdesc.h
17+ Replace PIX_FMT_* flags with AV_PIX_FMT_FLAG_*.
18+
1619 2013-04-xx - xxxxxxx - lavc 55.4.0 - avcodec.h
1720 Add field_order to AVCodecParserContext.
1821
libavcodec/avpicture.c+2−2
@@ -75,7 +75,7 @@ int avpicture_layout(const AVPicture* src, enum AVPixelFormat pix_fmt, · 74 unmodified lines
7575 }
7676 }
7777
78− if (desc->flags & PIX_FMT_PAL)
78+ if (desc->flags & AV_PIX_FMT_FLAG_PAL)
7979 memcpy((unsigned char *)(((size_t)dest + 3) & ~3),
8080 src->data[1], 256 * 4);
8181
@@ -92,7 +92,7 @@ int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height) · 10 unmodified lines
9292 return AVERROR(EINVAL);
9393 if ((ret = av_image_check_size(width, height, 0, NULL)) < 0)
9494 return ret;
95− if (desc->flags & PIX_FMT_PSEUDOPAL)
95+ if (desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL)
9696 // do not include palette for these pseudo-paletted formats
9797 return width * height;
9898 return avpicture_fill(&dummy_pict, NULL, pix_fmt, width, height);
libavcodec/ffv1dec.c+1−1
@@ -335,7 +335,7 @@ static int decode_slice(AVCodecContext *c, void *arg) · 334 unmodified lines
335335 FFV1Context *fs = *(void **)arg;
336336 FFV1Context *f = fs->avctx->priv_data;
337337 int width, height, x, y, ret;
338− const int ps = (av_pix_fmt_desc_get(c->pix_fmt)->flags & PIX_FMT_PLANAR)
338+ const int ps = (av_pix_fmt_desc_get(c->pix_fmt)->flags & AV_PIX_FMT_FLAG_PLANAR)
339339 ? (c->bits_per_raw_sample > 8) + 1
340340 : 4;
341341 AVFrame *const p = f->cur;
libavcodec/ffv1enc.c+1−1
@@ -875,7 +875,7 @@ static int encode_slice(AVCodecContext *c, void *arg) · 874 unmodified lines
875875 int x = fs->slice_x;
876876 int y = fs->slice_y;
877877 AVFrame *const p = &f->picture;
878− const int ps = (av_pix_fmt_desc_get(c->pix_fmt)->flags & PIX_FMT_PLANAR)
878+ const int ps = (av_pix_fmt_desc_get(c->pix_fmt)->flags & AV_PIX_FMT_FLAG_PLANAR)
879879 ? (f->bits_per_raw_sample > 8) + 1
880880 : 4;
881881
libavcodec/imgconvert.c+6−6
@@ -60,7 +60,7 @@ void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int · 59 unmodified lines
6060
6161 static int is_gray(const AVPixFmtDescriptor *desc)
6262 {
63− return desc->nb_components - (desc->flags & PIX_FMT_ALPHA) == 1;
63+ return desc->nb_components - (desc->flags & AV_PIX_FMT_FLAG_ALPHA) == 1;
6464 }
6565
6666 int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt,
@@ -86,11 +86,11 @@ int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt, · 19 unmodified lines
8686 dst_desc->log2_chroma_h > src_desc->log2_chroma_h)
8787 loss |= FF_LOSS_RESOLUTION;
8888
89− if ((src_desc->flags & PIX_FMT_RGB) != (dst_desc->flags & PIX_FMT_RGB))
89+ if ((src_desc->flags & AV_PIX_FMT_FLAG_RGB) != (dst_desc->flags & AV_PIX_FMT_FLAG_RGB))
9090 loss |= FF_LOSS_COLORSPACE;
9191
92− if (has_alpha && !(dst_desc->flags & PIX_FMT_ALPHA) &&
93− (dst_desc->flags & PIX_FMT_ALPHA))
92+ if (has_alpha && !(dst_desc->flags & AV_PIX_FMT_FLAG_ALPHA) &&
93+ (dst_desc->flags & AV_PIX_FMT_FLAG_ALPHA))
9494 loss |= FF_LOSS_ALPHA;
9595
9696 if (dst_pix_fmt == AV_PIX_FMT_PAL8 && !is_gray(src_desc))
@@ -260,8 +260,8 @@ void ff_shrink88(uint8_t *dst, int dst_wrap, · 163 unmodified lines
260260 /* return true if yuv planar */
261261 static inline int is_yuv_planar(const AVPixFmtDescriptor *desc)
262262 {
263− return (!(desc->flags & PIX_FMT_RGB) &&
264− (desc->flags & PIX_FMT_PLANAR));
263+ return (!(desc->flags & AV_PIX_FMT_FLAG_RGB) &&
264+ (desc->flags & AV_PIX_FMT_FLAG_PLANAR));
265265 }
266266
267267 int av_picture_crop(AVPicture *dst, const AVPicture *src,
libavcodec/pnm.c+1−1
@@ -173,7 +173,7 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s) · 172 unmodified lines
173173 }else
174174 s->maxval=1;
175175 /* more check if YUV420 */
176− if (av_pix_fmt_desc_get(avctx->pix_fmt)->flags & PIX_FMT_PLANAR) {
176+ if (av_pix_fmt_desc_get(avctx->pix_fmt)->flags & AV_PIX_FMT_FLAG_PLANAR) {
177177 if ((avctx->width & 1) != 0)
178178 return AVERROR_INVALIDDATA;
179179 h = (avctx->height * 2);
libavcodec/rawdec.c+3−3
@@ -98,11 +98,11 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx) · 97 unmodified lines
9898 return AVERROR(EINVAL);
9999 }
100100
101− if (desc->flags & (PIX_FMT_PAL | PIX_FMT_PSEUDOPAL)) {
101+ if (desc->flags & (AV_PIX_FMT_FLAG_PAL | AV_PIX_FMT_FLAG_PSEUDOPAL)) {
102102 context->palette = av_buffer_alloc(AVPALETTE_SIZE);
103103 if (!context->palette)
104104 return AVERROR(ENOMEM);
105− if (desc->flags & PIX_FMT_PSEUDOPAL)
105+ if (desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL)
106106 avpriv_set_systematic_pal2((uint32_t*)context->palette->data, avctx->pix_fmt);
107107 else
108108 memset(context->palette->data, 0, AVPALETTE_SIZE);
@@ -210,7 +210,7 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame, · 101 unmodified lines
210210 }
211211
212212 if ((avctx->pix_fmt == AV_PIX_FMT_PAL8 && buf_size < context->frame_size) ||
213− (desc->flags & PIX_FMT_PSEUDOPAL)) {
213+ (desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL)) {
214214 frame->buf[1] = av_buffer_ref(context->palette);
215215 if (!frame->buf[1])
216216 return AVERROR(ENOMEM);
libavcodec/tiffenc.c+2−2
@@ -242,9 +242,9 @@ static int encode_frame(AVCodecContext * avctx, AVPacket *pkt, · 241 unmodified lines
242242 case AV_PIX_FMT_PAL8:
243243 pfd = av_pix_fmt_desc_get(avctx->pix_fmt);
244244 s->bpp = av_get_bits_per_pixel(pfd);
245− if (pfd->flags & PIX_FMT_PAL) {
245+ if (pfd->flags & AV_PIX_FMT_FLAG_PAL) {
246246 s->photometric_interpretation = 3;
247− } else if (pfd->flags & PIX_FMT_RGB) {
247+ } else if (pfd->flags & AV_PIX_FMT_FLAG_RGB) {
248248 s->photometric_interpretation = 2;
249249 } else {
250250 s->photometric_interpretation = 1;
libavcodec/utils.c+2−2
@@ -663,7 +663,7 @@ do { \ · 662 unmodified lines
663663 planes = av_pix_fmt_count_planes(frame->format);
664664 /* workaround for AVHWAccel plane count of 0, buf[0] is used as
665665 check for allocated buffers: make libavcodec happy */
666− if (desc && desc->flags & PIX_FMT_HWACCEL)
666+ if (desc && desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
667667 planes = 1;
668668 if (!desc || planes <= 0) {
669669 ret = AVERROR(EINVAL);
@@ -793,7 +793,7 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, · 123 unmodified lines
793793 static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
794794 {
795795 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
796− return desc->flags & PIX_FMT_HWACCEL;
796+ return desc->flags & AV_PIX_FMT_FLAG_HWACCEL;
797797 }
798798
799799 enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
libavcodec/xwdenc.c+1−1
@@ -51,7 +51,7 @@ static int xwd_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 50 unmodified lines
5151 uint8_t *ptr, *buf;
5252
5353 pixdepth = av_get_bits_per_pixel(desc);
54− if (desc->flags & PIX_FMT_BE)
54+ if (desc->flags & AV_PIX_FMT_FLAG_BE)
5555 be = 1;
5656 switch (pix_fmt) {
5757 case AV_PIX_FMT_ARGB:
libavfilter/formats.c+1−1
@@ -216,7 +216,7 @@ AVFilterFormats *ff_all_formats(enum AVMediaType type) · 215 unmodified lines
216216 for (fmt = 0; fmt < num_formats; fmt++) {
217217 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
218218 if ((type != AVMEDIA_TYPE_VIDEO) ||
219− (type == AVMEDIA_TYPE_VIDEO && !(desc->flags & PIX_FMT_HWACCEL)))
219+ (type == AVMEDIA_TYPE_VIDEO && !(desc->flags & AV_PIX_FMT_FLAG_HWACCEL)))
220220 ff_add_format(&ret, fmt);
221221 }
222222
libavfilter/vf_crop.c+1−1
@@ -261,7 +261,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) · 260 unmodified lines
261261 frame->data[0] += crop->y * frame->linesize[0];
262262 frame->data[0] += crop->x * crop->max_step[0];
263263
264− if (!(desc->flags & PIX_FMT_PAL || desc->flags & PIX_FMT_PSEUDOPAL)) {
264+ if (!(desc->flags & AV_PIX_FMT_FLAG_PAL || desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL)) {
265265 for (i = 1; i < 3; i ++) {
266266 if (frame->data[i]) {
267267 frame->data[i] += (crop->y >> crop->vsub) * frame->linesize[i];
libavfilter/vf_fieldorder.c+2−2
@@ -56,8 +56,8 @@ static int query_formats(AVFilterContext *ctx) · 55 unmodified lines
5656 formats = NULL;
5757 for (pix_fmt = 0; pix_fmt < AV_PIX_FMT_NB; pix_fmt++) {
5858 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
59− if (!(desc->flags & PIX_FMT_HWACCEL ||
60− desc->flags & PIX_FMT_BITSTREAM) &&
59+ if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||
60+ desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) &&
6161 desc->nb_components && !desc->log2_chroma_h &&
6262 (ret = ff_add_format(&formats, pix_fmt)) < 0) {
6363 ff_formats_unref(&formats);
libavfilter/vf_pixdesctest.c+2−2
@@ -78,8 +78,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 77 unmodified lines
7878 }
7979
8080 /* copy palette */
81− if (priv->pix_desc->flags & PIX_FMT_PAL ||
82− priv->pix_desc->flags & PIX_FMT_PSEUDOPAL)
81+ if (priv->pix_desc->flags & AV_PIX_FMT_FLAG_PAL ||
82+ priv->pix_desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL)
8383 memcpy(out->data[1], in->data[1], 256*4);
8484
8585 for (c = 0; c < priv->pix_desc->nb_components; c++) {
libavfilter/vf_scale.c+2−2
@@ -220,8 +220,8 @@ static int config_props(AVFilterLink *outlink) · 219 unmodified lines
220220 outlink->w, outlink->h, av_get_pix_fmt_name(outlink->format),
221221 scale->flags);
222222
223− scale->input_is_pal = desc->flags & PIX_FMT_PAL ||
224− desc->flags & PIX_FMT_PSEUDOPAL;
223+ scale->input_is_pal = desc->flags & AV_PIX_FMT_FLAG_PAL ||
224+ desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL;
225225
226226 if (scale->sws)
227227 sws_freeContext(scale->sws);
libavutil/frame.c+1−1
@@ -93,7 +93,7 @@ static int get_video_buffer(AVFrame *frame, int align) · 92 unmodified lines
9393
9494 frame->data[i] = frame->buf[i]->data;
9595 }
96− if (desc->flags & PIX_FMT_PAL || desc->flags & PIX_FMT_PSEUDOPAL) {
96+ if (desc->flags & AV_PIX_FMT_FLAG_PAL || desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) {
9797 av_buffer_unref(&frame->buf[1]);
9898 frame->buf[1] = av_buffer_alloc(1024);
9999 if (!frame->buf[1])
libavutil/imgutils.c+10−10
@@ -55,7 +55,7 @@ int av_image_get_linesize(enum AVPixelFormat pix_fmt, int width, int plane) · 54 unmodified lines
5555 if (!desc)
5656 return AVERROR(EINVAL);
5757
58− if (desc->flags & PIX_FMT_BITSTREAM)
58+ if (desc->flags & AV_PIX_FMT_FLAG_BITSTREAM)
5959 return (width * (desc->comp[0].step_minus1+1) + 7) >> 3;
6060
6161 av_image_fill_max_pixsteps(max_step, max_step_comp, desc);
@@ -72,10 +72,10 @@ int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int wi · 10 unmodified lines
7272
7373 memset(linesizes, 0, 4*sizeof(linesizes[0]));
7474
75− if (!desc || desc->flags & PIX_FMT_HWACCEL)
75+ if (!desc || desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
7676 return AVERROR(EINVAL);
7777
78− if (desc->flags & PIX_FMT_BITSTREAM) {
78+ if (desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) {
7979 if (width > (INT_MAX -7) / (desc->comp[0].step_minus1+1))
8080 return AVERROR(EINVAL);
8181 linesizes[0] = (width * (desc->comp[0].step_minus1+1) + 7) >> 3;
@@ -102,7 +102,7 @@ int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int hei · 20 unmodified lines
102102 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
103103 memset(data , 0, sizeof(data[0])*4);
104104
105− if (!desc || desc->flags & PIX_FMT_HWACCEL)
105+ if (!desc || desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
106106 return AVERROR(EINVAL);
107107
108108 data[0] = ptr;
@@ -110,8 +110,8 @@ int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int hei · 1 unmodified line
110110 return AVERROR(EINVAL);
111111 size[0] = linesizes[0] * height;
112112
113− if (desc->flags & PIX_FMT_PAL ||
114− desc->flags & PIX_FMT_PSEUDOPAL) {
113+ if (desc->flags & AV_PIX_FMT_FLAG_PAL ||
114+ desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) {
115115 size[0] = (size[0] + 3) & ~3;
116116 data[1] = ptr + size[0]; /* palette is stored here as 256 32 bits words */
117117 return size[0] + 256 * 4;
@@ -203,7 +203,7 @@ int av_image_alloc(uint8_t *pointers[4], int linesizes[4], · 85 unmodified lines
203203 av_free(buf);
204204 return ret;
205205 }
206− if (desc->flags & PIX_FMT_PAL || desc->flags & PIX_FMT_PSEUDOPAL)
206+ if (desc->flags & AV_PIX_FMT_FLAG_PAL || desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL)
207207 avpriv_set_systematic_pal2((uint32_t*)pointers[1], pix_fmt);
208208
209209 return ret;
@@ -247,11 +247,11 @@ void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4], · 37 unmodified lines
247247 {
248248 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
249249
250− if (!desc || desc->flags & PIX_FMT_HWACCEL)
250+ if (!desc || desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
251251 return;
252252
253− if (desc->flags & PIX_FMT_PAL ||
254− desc->flags & PIX_FMT_PSEUDOPAL) {
253+ if (desc->flags & AV_PIX_FMT_FLAG_PAL ||
254+ desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) {
255255 av_image_copy_plane(dst_data[0], dst_linesizes[0],
256256 src_data[0], src_linesizes[0],
257257 width, height);
libavutil/pixdesc.c+112−112
@@ -42,7 +42,7 @@ void av_read_image_line(uint16_t *dst, · 41 unmodified lines
4242 int step = comp.step_minus1 + 1;
4343 int flags = desc->flags;
4444
45− if (flags & PIX_FMT_BITSTREAM) {
45+ if (flags & AV_PIX_FMT_FLAG_BITSTREAM) {
4646 int skip = x * step + comp.offset_plus1 - 1;
4747 const uint8_t *p = data[plane] + y * linesize[plane] + (skip >> 3);
4848 int shift = 8 - depth - (skip & 7);
@@ -62,11 +62,11 @@ void av_read_image_line(uint16_t *dst, · 13 unmodified lines
6262 int is_8bit = shift + depth <= 8;
6363
6464 if (is_8bit)
65− p += !!(flags & PIX_FMT_BE);
65+ p += !!(flags & AV_PIX_FMT_FLAG_BE);
6666
6767 while (w--) {
6868 int val = is_8bit ? *p :
69− flags & PIX_FMT_BE ? AV_RB16(p) : AV_RL16(p);
69+ flags & AV_PIX_FMT_FLAG_BE ? AV_RB16(p) : AV_RL16(p);
7070 val = (val >> shift) & mask;
7171 if (read_pal_component)
7272 val = data[1][4 * val + c];
@@ -87,7 +87,7 @@ void av_write_image_line(const uint16_t *src, · 14 unmodified lines
8787 int step = comp.step_minus1 + 1;
8888 int flags = desc->flags;
8989
90− if (flags & PIX_FMT_BITSTREAM) {
90+ if (flags & AV_PIX_FMT_FLAG_BITSTREAM) {
9191 int skip = x * step + comp.offset_plus1 - 1;
9292 uint8_t *p = data[plane] + y * linesize[plane] + (skip >> 3);
9393 int shift = 8 - depth - (skip & 7);
@@ -104,14 +104,14 @@ void av_write_image_line(const uint16_t *src, · 10 unmodified lines
104104 x * step + comp.offset_plus1 - 1;
105105
106106 if (shift + depth <= 8) {
107− p += !!(flags & PIX_FMT_BE);
107+ p += !!(flags & AV_PIX_FMT_FLAG_BE);
108108 while (w--) {
109109 *p |= (*src++ << shift);
110110 p += step;
111111 }
112112 } else {
113113 while (w--) {
114− if (flags & PIX_FMT_BE) {
114+ if (flags & AV_PIX_FMT_FLAG_BE) {
115115 uint16_t val = AV_RB16(p) | (*src++ << shift);
116116 AV_WB16(p, val);
117117 } else {
@@ -138,7 +138,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 20 unmodified lines
138138 { 1, 0, 1, 0, 7 }, /* U */
139139 { 2, 0, 1, 0, 7 }, /* V */
140140 },
141− .flags = PIX_FMT_PLANAR,
141+ .flags = AV_PIX_FMT_FLAG_PLANAR,
142142 },
143143 [AV_PIX_FMT_YUYV422] = {
144144 .name = "yuyv422",
@@ -161,7 +161,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 16 unmodified lines
161161 { 0, 2, 2, 0, 7 }, /* G */
162162 { 0, 2, 3, 0, 7 }, /* B */
163163 },
164− .flags = PIX_FMT_RGB,
164+ .flags = AV_PIX_FMT_FLAG_RGB,
165165 },
166166 [AV_PIX_FMT_BGR24] = {
167167 .name = "bgr24",
@@ -173,7 +173,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
173173 { 0, 2, 2, 0, 7 }, /* G */
174174 { 0, 2, 3, 0, 7 }, /* R */
175175 },
176− .flags = PIX_FMT_RGB,
176+ .flags = AV_PIX_FMT_FLAG_RGB,
177177 },
178178 [AV_PIX_FMT_YUV422P] = {
179179 .name = "yuv422p",
@@ -185,7 +185,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
185185 { 1, 0, 1, 0, 7 }, /* U */
186186 { 2, 0, 1, 0, 7 }, /* V */
187187 },
188− .flags = PIX_FMT_PLANAR,
188+ .flags = AV_PIX_FMT_FLAG_PLANAR,
189189 },
190190 [AV_PIX_FMT_YUV444P] = {
191191 .name = "yuv444p",
@@ -197,7 +197,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
197197 { 1, 0, 1, 0, 7 }, /* U */
198198 { 2, 0, 1, 0, 7 }, /* V */
199199 },
200− .flags = PIX_FMT_PLANAR,
200+ .flags = AV_PIX_FMT_FLAG_PLANAR,
201201 },
202202 [AV_PIX_FMT_YUV410P] = {
203203 .name = "yuv410p",
@@ -209,7 +209,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
209209 { 1, 0, 1, 0, 7 }, /* U */
210210 { 2, 0, 1, 0, 7 }, /* V */
211211 },
212− .flags = PIX_FMT_PLANAR,
212+ .flags = AV_PIX_FMT_FLAG_PLANAR,
213213 },
214214 [AV_PIX_FMT_YUV411P] = {
215215 .name = "yuv411p",
@@ -221,7 +221,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
221221 { 1, 0, 1, 0, 7 }, /* U */
222222 { 2, 0, 1, 0, 7 }, /* V */
223223 },
224− .flags = PIX_FMT_PLANAR,
224+ .flags = AV_PIX_FMT_FLAG_PLANAR,
225225 },
226226 [AV_PIX_FMT_GRAY8] = {
227227 .name = "gray",
@@ -240,7 +240,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 12 unmodified lines
240240 .comp = {
241241 { 0, 0, 1, 0, 0 }, /* Y */
242242 },
243− .flags = PIX_FMT_BITSTREAM,
243+ .flags = AV_PIX_FMT_FLAG_BITSTREAM,
244244 },
245245 [AV_PIX_FMT_MONOBLACK] = {
246246 .name = "monob",
@@ -250,7 +250,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
250250 .comp = {
251251 { 0, 0, 1, 7, 0 }, /* Y */
252252 },
253− .flags = PIX_FMT_BITSTREAM,
253+ .flags = AV_PIX_FMT_FLAG_BITSTREAM,
254254 },
255255 [AV_PIX_FMT_PAL8] = {
256256 .name = "pal8",
@@ -260,7 +260,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
260260 .comp = {
261261 { 0, 0, 1, 0, 7 },
262262 },
263− .flags = PIX_FMT_PAL,
263+ .flags = AV_PIX_FMT_FLAG_PAL,
264264 },
265265 [AV_PIX_FMT_YUVJ420P] = {
266266 .name = "yuvj420p",
@@ -272,7 +272,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
272272 { 1, 0, 1, 0, 7 }, /* U */
273273 { 2, 0, 1, 0, 7 }, /* V */
274274 },
275− .flags = PIX_FMT_PLANAR,
275+ .flags = AV_PIX_FMT_FLAG_PLANAR,
276276 },
277277 [AV_PIX_FMT_YUVJ422P] = {
278278 .name = "yuvj422p",
@@ -284,7 +284,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
284284 { 1, 0, 1, 0, 7 }, /* U */
285285 { 2, 0, 1, 0, 7 }, /* V */
286286 },
287− .flags = PIX_FMT_PLANAR,
287+ .flags = AV_PIX_FMT_FLAG_PLANAR,
288288 },
289289 [AV_PIX_FMT_YUVJ444P] = {
290290 .name = "yuvj444p",
@@ -296,15 +296,15 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
296296 {1, 0, 1, 0, 7}, /* U */
297297 {2, 0, 1, 0, 7}, /* V */
298298 },
299− .flags = PIX_FMT_PLANAR,
299+ .flags = AV_PIX_FMT_FLAG_PLANAR,
300300 },
301301 [AV_PIX_FMT_XVMC_MPEG2_MC] = {
302302 .name = "xvmcmc",
303− .flags = PIX_FMT_HWACCEL,
303+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
304304 },
305305 [AV_PIX_FMT_XVMC_MPEG2_IDCT] = {
306306 .name = "xvmcidct",
307− .flags = PIX_FMT_HWACCEL,
307+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
308308 },
309309 [AV_PIX_FMT_UYVY422] = {
310310 .name = "uyvy422",
@@ -338,7 +338,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 27 unmodified lines
338338 { 0, 0, 1, 3, 2 }, /* G */
339339 { 0, 0, 1, 0, 2 }, /* R */
340340 },
341− .flags = PIX_FMT_RGB | PIX_FMT_PSEUDOPAL,
341+ .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL,
342342 },
343343 [AV_PIX_FMT_BGR4] = {
344344 .name = "bgr4",
@@ -350,7 +350,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
350350 { 0, 3, 2, 0, 1 }, /* G */
351351 { 0, 3, 4, 0, 0 }, /* R */
352352 },
353− .flags = PIX_FMT_BITSTREAM | PIX_FMT_RGB,
353+ .flags = AV_PIX_FMT_FLAG_BITSTREAM | AV_PIX_FMT_FLAG_RGB,
354354 },
355355 [AV_PIX_FMT_BGR4_BYTE] = {
356356 .name = "bgr4_byte",
@@ -362,7 +362,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
362362 { 0, 0, 1, 1, 1 }, /* G */
363363 { 0, 0, 1, 0, 0 }, /* R */
364364 },
365− .flags = PIX_FMT_RGB | PIX_FMT_PSEUDOPAL,
365+ .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL,
366366 },
367367 [AV_PIX_FMT_RGB8] = {
368368 .name = "rgb8",
@@ -374,7 +374,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
374374 { 0, 0, 1, 3, 2 }, /* G */
375375 { 0, 0, 1, 0, 2 }, /* B */
376376 },
377− .flags = PIX_FMT_RGB | PIX_FMT_PSEUDOPAL,
377+ .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL,
378378 },
379379 [AV_PIX_FMT_RGB4] = {
380380 .name = "rgb4",
@@ -386,7 +386,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
386386 { 0, 3, 2, 0, 1 }, /* G */
387387 { 0, 3, 4, 0, 0 }, /* B */
388388 },
389− .flags = PIX_FMT_BITSTREAM | PIX_FMT_RGB,
389+ .flags = AV_PIX_FMT_FLAG_BITSTREAM | AV_PIX_FMT_FLAG_RGB,
390390 },
391391 [AV_PIX_FMT_RGB4_BYTE] = {
392392 .name = "rgb4_byte",
@@ -398,7 +398,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
398398 { 0, 0, 1, 1, 1 }, /* G */
399399 { 0, 0, 1, 0, 0 }, /* B */
400400 },
401− .flags = PIX_FMT_RGB | PIX_FMT_PSEUDOPAL,
401+ .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL,
402402 },
403403 [AV_PIX_FMT_NV12] = {
404404 .name = "nv12",
@@ -410,7 +410,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
410410 { 1, 1, 1, 0, 7 }, /* U */
411411 { 1, 1, 2, 0, 7 }, /* V */
412412 },
413− .flags = PIX_FMT_PLANAR,
413+ .flags = AV_PIX_FMT_FLAG_PLANAR,
414414 },
415415 [AV_PIX_FMT_NV21] = {
416416 .name = "nv21",
@@ -422,7 +422,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
422422 { 1, 1, 1, 0, 7 }, /* V */
423423 { 1, 1, 2, 0, 7 }, /* U */
424424 },
425− .flags = PIX_FMT_PLANAR,
425+ .flags = AV_PIX_FMT_FLAG_PLANAR,
426426 },
427427 [AV_PIX_FMT_ARGB] = {
428428 .name = "argb",
@@ -435,7 +435,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
435435 { 0, 3, 3, 0, 7 }, /* G */
436436 { 0, 3, 4, 0, 7 }, /* B */
437437 },
438− .flags = PIX_FMT_RGB | PIX_FMT_ALPHA,
438+ .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
439439 },
440440 [AV_PIX_FMT_RGBA] = {
441441 .name = "rgba",
@@ -448,7 +448,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
448448 { 0, 3, 3, 0, 7 }, /* B */
449449 { 0, 3, 4, 0, 7 }, /* A */
450450 },
451− .flags = PIX_FMT_RGB | PIX_FMT_ALPHA,
451+ .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
452452 },
453453 [AV_PIX_FMT_ABGR] = {
454454 .name = "abgr",
@@ -461,7 +461,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
461461 { 0, 3, 3, 0, 7 }, /* G */
462462 { 0, 3, 4, 0, 7 }, /* R */
463463 },
464− .flags = PIX_FMT_RGB | PIX_FMT_ALPHA,
464+ .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
465465 },
466466 [AV_PIX_FMT_BGRA] = {
467467 .name = "bgra",
@@ -474,7 +474,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
474474 { 0, 3, 3, 0, 7 }, /* R */
475475 { 0, 3, 4, 0, 7 }, /* A */
476476 },
477− .flags = PIX_FMT_RGB | PIX_FMT_ALPHA,
477+ .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
478478 },
479479 [AV_PIX_FMT_GRAY16BE] = {
480480 .name = "gray16be",
@@ -484,7 +484,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
484484 .comp = {
485485 { 0, 1, 1, 0, 15 }, /* Y */
486486 },
487− .flags = PIX_FMT_BE,
487+ .flags = AV_PIX_FMT_FLAG_BE,
488488 },
489489 [AV_PIX_FMT_GRAY16LE] = {
490490 .name = "gray16le",
@@ -505,7 +505,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 14 unmodified lines
505505 { 1, 0, 1, 0, 7 }, /* U */
506506 { 2, 0, 1, 0, 7 }, /* V */
507507 },
508− .flags = PIX_FMT_PLANAR,
508+ .flags = AV_PIX_FMT_FLAG_PLANAR,
509509 },
510510 [AV_PIX_FMT_YUVJ440P] = {
511511 .name = "yuvj440p",
@@ -517,7 +517,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
517517 { 1, 0, 1, 0, 7 }, /* U */
518518 { 2, 0, 1, 0, 7 }, /* V */
519519 },
520− .flags = PIX_FMT_PLANAR,
520+ .flags = AV_PIX_FMT_FLAG_PLANAR,
521521 },
522522 [AV_PIX_FMT_YUVA420P] = {
523523 .name = "yuva420p",
@@ -530,7 +530,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
530530 { 2, 0, 1, 0, 7 }, /* V */
531531 { 3, 0, 1, 0, 7 }, /* A */
532532 },
533− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
533+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
534534 },
535535 [AV_PIX_FMT_YUVA422P] = {
536536 .name = "yuva422p",
@@ -543,7 +543,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
543543 { 2, 0, 1, 0, 7 }, /* V */
544544 { 3, 0, 1, 0, 7 }, /* A */
545545 },
546− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
546+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
547547 },
548548 [AV_PIX_FMT_YUVA444P] = {
549549 .name = "yuva444p",
@@ -556,7 +556,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
556556 { 2, 0, 1, 0, 7 }, /* V */
557557 { 3, 0, 1, 0, 7 }, /* A */
558558 },
559− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
559+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
560560 },
561561 [AV_PIX_FMT_YUVA420P9BE] = {
562562 .name = "yuva420p9be",
@@ -569,7 +569,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
569569 { 2, 1, 1, 0, 8 }, /* V */
570570 { 3, 1, 1, 0, 8 }, /* A */
571571 },
572− .flags = PIX_FMT_BE | PIX_FMT_PLANAR,
572+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
573573 },
574574 [AV_PIX_FMT_YUVA420P9LE] = {
575575 .name = "yuva420p9le",
@@ -582,7 +582,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
582582 { 2, 1, 1, 0, 8 }, /* V */
583583 { 3, 1, 1, 0, 8 }, /* A */
584584 },
585− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
585+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
586586 },
587587 [AV_PIX_FMT_YUVA422P9BE] = {
588588 .name = "yuva422p9be",
@@ -595,7 +595,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
595595 { 2, 1, 1, 0, 8 }, /* V */
596596 { 3, 1, 1, 0, 8 }, /* A */
597597 },
598− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_ALPHA,
598+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
599599 },
600600 [AV_PIX_FMT_YUVA422P9LE] = {
601601 .name = "yuva422p9le",
@@ -608,7 +608,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
608608 { 2, 1, 1, 0, 8 }, /* V */
609609 { 3, 1, 1, 0, 8 }, /* A */
610610 },
611− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
611+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
612612 },
613613 [AV_PIX_FMT_YUVA444P9BE] = {
614614 .name = "yuva444p9be",
@@ -621,7 +621,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
621621 { 2, 1, 1, 0, 8 }, /* V */
622622 { 3, 1, 1, 0, 8 }, /* A */
623623 },
624− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_ALPHA,
624+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
625625 },
626626 [AV_PIX_FMT_YUVA444P9LE] = {
627627 .name = "yuva444p9le",
@@ -634,7 +634,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
634634 { 2, 1, 1, 0, 8 }, /* V */
635635 { 3, 1, 1, 0, 8 }, /* A */
636636 },
637− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
637+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
638638 },
639639 [AV_PIX_FMT_YUVA420P10BE] = {
640640 .name = "yuva420p10be",
@@ -647,7 +647,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
647647 { 2, 1, 1, 0, 9 }, /* V */
648648 { 3, 1, 1, 0, 9 }, /* A */
649649 },
650− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_ALPHA,
650+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
651651 },
652652 [AV_PIX_FMT_YUVA420P10LE] = {
653653 .name = "yuva420p10le",
@@ -660,7 +660,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
660660 { 2, 1, 1, 0, 9 }, /* V */
661661 { 3, 1, 1, 0, 9 }, /* A */
662662 },
663− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
663+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
664664 },
665665 [AV_PIX_FMT_YUVA422P10BE] = {
666666 .name = "yuva422p10be",
@@ -673,7 +673,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
673673 { 2, 1, 1, 0, 9 }, /* V */
674674 { 3, 1, 1, 0, 9 }, /* A */
675675 },
676− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_ALPHA,
676+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
677677 },
678678 [AV_PIX_FMT_YUVA422P10LE] = {
679679 .name = "yuva422p10le",
@@ -686,7 +686,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
686686 { 2, 1, 1, 0, 9 }, /* V */
687687 { 3, 1, 1, 0, 9 }, /* A */
688688 },
689− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
689+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
690690 },
691691 [AV_PIX_FMT_YUVA444P10BE] = {
692692 .name = "yuva444p10be",
@@ -699,7 +699,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
699699 { 2, 1, 1, 0, 9 }, /* V */
700700 { 3, 1, 1, 0, 9 }, /* A */
701701 },
702− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_ALPHA,
702+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
703703 },
704704 [AV_PIX_FMT_YUVA444P10LE] = {
705705 .name = "yuva444p10le",
@@ -712,7 +712,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
712712 { 2, 1, 1, 0, 9 }, /* V */
713713 { 3, 1, 1, 0, 9 }, /* A */
714714 },
715− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
715+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
716716 },
717717 [AV_PIX_FMT_YUVA420P16BE] = {
718718 .name = "yuva420p16be",
@@ -725,7 +725,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
725725 { 2, 1, 1, 0, 15 }, /* V */
726726 { 3, 1, 1, 0, 15 }, /* A */
727727 },
728− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_ALPHA,
728+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
729729 },
730730 [AV_PIX_FMT_YUVA420P16LE] = {
731731 .name = "yuva420p16le",
@@ -738,7 +738,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
738738 { 2, 1, 1, 0, 15 }, /* V */
739739 { 3, 1, 1, 0, 15 }, /* A */
740740 },
741− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
741+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
742742 },
743743 [AV_PIX_FMT_YUVA422P16BE] = {
744744 .name = "yuva422p16be",
@@ -751,7 +751,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
751751 { 2, 1, 1, 0, 15 }, /* V */
752752 { 3, 1, 1, 0, 15 }, /* A */
753753 },
754− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_ALPHA,
754+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
755755 },
756756 [AV_PIX_FMT_YUVA422P16LE] = {
757757 .name = "yuva422p16le",
@@ -764,7 +764,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
764764 { 2, 1, 1, 0, 15 }, /* V */
765765 { 3, 1, 1, 0, 15 }, /* A */
766766 },
767− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
767+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
768768 },
769769 [AV_PIX_FMT_YUVA444P16BE] = {
770770 .name = "yuva444p16be",
@@ -777,7 +777,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
777777 { 2, 1, 1, 0, 15 }, /* V */
778778 { 3, 1, 1, 0, 15 }, /* A */
779779 },
780− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_ALPHA,
780+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
781781 },
782782 [AV_PIX_FMT_YUVA444P16LE] = {
783783 .name = "yuva444p16le",
@@ -790,43 +790,43 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 6 unmodified lines
790790 { 2, 1, 1, 0, 15 }, /* V */
791791 { 3, 1, 1, 0, 15 }, /* A */
792792 },
793− .flags = PIX_FMT_PLANAR | PIX_FMT_ALPHA,
793+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
794794 },
795795 [AV_PIX_FMT_VDPAU_H264] = {
796796 .name = "vdpau_h264",
797797 .log2_chroma_w = 1,
798798 .log2_chroma_h = 1,
799− .flags = PIX_FMT_HWACCEL,
799+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
800800 },
801801 [AV_PIX_FMT_VDPAU_MPEG1] = {
802802 .name = "vdpau_mpeg1",
803803 .log2_chroma_w = 1,
804804 .log2_chroma_h = 1,
805− .flags = PIX_FMT_HWACCEL,
805+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
806806 },
807807 [AV_PIX_FMT_VDPAU_MPEG2] = {
808808 .name = "vdpau_mpeg2",
809809 .log2_chroma_w = 1,
810810 .log2_chroma_h = 1,
811− .flags = PIX_FMT_HWACCEL,
811+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
812812 },
813813 [AV_PIX_FMT_VDPAU_WMV3] = {
814814 .name = "vdpau_wmv3",
815815 .log2_chroma_w = 1,
816816 .log2_chroma_h = 1,
817− .flags = PIX_FMT_HWACCEL,
817+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
818818 },
819819 [AV_PIX_FMT_VDPAU_VC1] = {
820820 .name = "vdpau_vc1",
821821 .log2_chroma_w = 1,
822822 .log2_chroma_h = 1,
823− .flags = PIX_FMT_HWACCEL,
823+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
824824 },
825825 [AV_PIX_FMT_VDPAU_MPEG4] = {
826826 .name = "vdpau_mpeg4",
827827 .log2_chroma_w = 1,
828828 .log2_chroma_h = 1,
829− .flags = PIX_FMT_HWACCEL,
829+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
830830 },
831831 [AV_PIX_FMT_RGB48BE] = {
832832 .name = "rgb48be",
@@ -838,7 +838,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
838838 { 0, 5, 3, 0, 15 }, /* G */
839839 { 0, 5, 5, 0, 15 }, /* B */
840840 },
841− .flags = PIX_FMT_RGB | PIX_FMT_BE,
841+ .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BE,
842842 },
843843 [AV_PIX_FMT_RGB48LE] = {
844844 .name = "rgb48le",
@@ -850,7 +850,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
850850 { 0, 5, 3, 0, 15 }, /* G */
851851 { 0, 5, 5, 0, 15 }, /* B */
852852 },
853− .flags = PIX_FMT_RGB,
853+ .flags = AV_PIX_FMT_FLAG_RGB,
854854 },
855855 [AV_PIX_FMT_RGB565BE] = {
856856 .name = "rgb565be",
@@ -862,7 +862,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
862862 { 0, 1, 1, 5, 5 }, /* G */
863863 { 0, 1, 1, 0, 4 }, /* B */
864864 },
865− .flags = PIX_FMT_BE | PIX_FMT_RGB,
865+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
866866 },
867867 [AV_PIX_FMT_RGB565LE] = {
868868 .name = "rgb565le",
@@ -874,7 +874,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
874874 { 0, 1, 1, 5, 5 }, /* G */
875875 { 0, 1, 1, 0, 4 }, /* B */
876876 },
877− .flags = PIX_FMT_RGB,
877+ .flags = AV_PIX_FMT_FLAG_RGB,
878878 },
879879 [AV_PIX_FMT_RGB555BE] = {
880880 .name = "rgb555be",
@@ -886,7 +886,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
886886 { 0, 1, 1, 5, 4 }, /* G */
887887 { 0, 1, 1, 0, 4 }, /* B */
888888 },
889− .flags = PIX_FMT_BE | PIX_FMT_RGB,
889+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
890890 },
891891 [AV_PIX_FMT_RGB555LE] = {
892892 .name = "rgb555le",
@@ -898,7 +898,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
898898 { 0, 1, 1, 5, 4 }, /* G */
899899 { 0, 1, 1, 0, 4 }, /* B */
900900 },
901− .flags = PIX_FMT_RGB,
901+ .flags = AV_PIX_FMT_FLAG_RGB,
902902 },
903903 [AV_PIX_FMT_RGB444BE] = {
904904 .name = "rgb444be",
@@ -910,7 +910,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
910910 { 0, 1, 1, 4, 3 }, /* G */
911911 { 0, 1, 1, 0, 3 }, /* B */
912912 },
913− .flags = PIX_FMT_BE | PIX_FMT_RGB,
913+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
914914 },
915915 [AV_PIX_FMT_RGB444LE] = {
916916 .name = "rgb444le",
@@ -922,7 +922,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
922922 { 0, 1, 1, 4, 3 }, /* G */
923923 { 0, 1, 1, 0, 3 }, /* B */
924924 },
925− .flags = PIX_FMT_RGB,
925+ .flags = AV_PIX_FMT_FLAG_RGB,
926926 },
927927 [AV_PIX_FMT_BGR48BE] = {
928928 .name = "bgr48be",
@@ -934,7 +934,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
934934 { 0, 5, 3, 0, 15 }, /* G */
935935 { 0, 5, 5, 0, 15 }, /* R */
936936 },
937− .flags = PIX_FMT_BE | PIX_FMT_RGB,
937+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
938938 },
939939 [AV_PIX_FMT_BGR48LE] = {
940940 .name = "bgr48le",
@@ -946,7 +946,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
946946 { 0, 5, 3, 0, 15 }, /* G */
947947 { 0, 5, 5, 0, 15 }, /* R */
948948 },
949− .flags = PIX_FMT_RGB,
949+ .flags = AV_PIX_FMT_FLAG_RGB,
950950 },
951951 [AV_PIX_FMT_BGR565BE] = {
952952 .name = "bgr565be",
@@ -958,7 +958,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
958958 { 0, 1, 1, 5, 5 }, /* G */
959959 { 0, 1, 1, 0, 4 }, /* R */
960960 },
961− .flags = PIX_FMT_BE | PIX_FMT_RGB,
961+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
962962 },
963963 [AV_PIX_FMT_BGR565LE] = {
964964 .name = "bgr565le",
@@ -970,7 +970,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
970970 { 0, 1, 1, 5, 5 }, /* G */
971971 { 0, 1, 1, 0, 4 }, /* R */
972972 },
973− .flags = PIX_FMT_RGB,
973+ .flags = AV_PIX_FMT_FLAG_RGB,
974974 },
975975 [AV_PIX_FMT_BGR555BE] = {
976976 .name = "bgr555be",
@@ -982,7 +982,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
982982 { 0, 1, 1, 5, 4 }, /* G */
983983 { 0, 1, 1, 0, 4 }, /* R */
984984 },
985− .flags = PIX_FMT_BE | PIX_FMT_RGB,
985+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
986986 },
987987 [AV_PIX_FMT_BGR555LE] = {
988988 .name = "bgr555le",
@@ -994,7 +994,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
994994 { 0, 1, 1, 5, 4 }, /* G */
995995 { 0, 1, 1, 0, 4 }, /* R */
996996 },
997− .flags = PIX_FMT_RGB,
997+ .flags = AV_PIX_FMT_FLAG_RGB,
998998 },
999999 [AV_PIX_FMT_BGR444BE] = {
10001000 .name = "bgr444be",
@@ -1006,7 +1006,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
10061006 { 0, 1, 1, 4, 3 }, /* G */
10071007 { 0, 1, 1, 0, 3 }, /* R */
10081008 },
1009− .flags = PIX_FMT_BE | PIX_FMT_RGB,
1009+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
10101010 },
10111011 [AV_PIX_FMT_BGR444LE] = {
10121012 .name = "bgr444le",
@@ -1018,31 +1018,31 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
10181018 { 0, 1, 1, 4, 3 }, /* G */
10191019 { 0, 1, 1, 0, 3 }, /* R */
10201020 },
1021− .flags = PIX_FMT_RGB,
1021+ .flags = AV_PIX_FMT_FLAG_RGB,
10221022 },
10231023 [AV_PIX_FMT_VAAPI_MOCO] = {
10241024 .name = "vaapi_moco",
10251025 .log2_chroma_w = 1,
10261026 .log2_chroma_h = 1,
1027− .flags = PIX_FMT_HWACCEL,
1027+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
10281028 },
10291029 [AV_PIX_FMT_VAAPI_IDCT] = {
10301030 .name = "vaapi_idct",
10311031 .log2_chroma_w = 1,
10321032 .log2_chroma_h = 1,
1033− .flags = PIX_FMT_HWACCEL,
1033+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
10341034 },
10351035 [AV_PIX_FMT_VAAPI_VLD] = {
10361036 .name = "vaapi_vld",
10371037 .log2_chroma_w = 1,
10381038 .log2_chroma_h = 1,
1039− .flags = PIX_FMT_HWACCEL,
1039+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
10401040 },
10411041 [AV_PIX_FMT_VDA_VLD] = {
10421042 .name = "vda_vld",
10431043 .log2_chroma_w = 1,
10441044 .log2_chroma_h = 1,
1045− .flags = PIX_FMT_HWACCEL,
1045+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
10461046 },
10471047 [AV_PIX_FMT_YUV420P9LE] = {
10481048 .name = "yuv420p9le",
@@ -1054,7 +1054,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
10541054 { 1, 1, 1, 0, 8 }, /* U */
10551055 { 2, 1, 1, 0, 8 }, /* V */
10561056 },
1057− .flags = PIX_FMT_PLANAR,
1057+ .flags = AV_PIX_FMT_FLAG_PLANAR,
10581058 },
10591059 [AV_PIX_FMT_YUV420P9BE] = {
10601060 .name = "yuv420p9be",
@@ -1066,7 +1066,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
10661066 { 1, 1, 1, 0, 8 }, /* U */
10671067 { 2, 1, 1, 0, 8 }, /* V */
10681068 },
1069− .flags = PIX_FMT_BE | PIX_FMT_PLANAR,
1069+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
10701070 },
10711071 [AV_PIX_FMT_YUV420P10LE] = {
10721072 .name = "yuv420p10le",
@@ -1078,7 +1078,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
10781078 { 1, 1, 1, 0, 9 }, /* U */
10791079 { 2, 1, 1, 0, 9 }, /* V */
10801080 },
1081− .flags = PIX_FMT_PLANAR,
1081+ .flags = AV_PIX_FMT_FLAG_PLANAR,
10821082 },
10831083 [AV_PIX_FMT_YUV420P10BE] = {
10841084 .name = "yuv420p10be",
@@ -1090,7 +1090,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
10901090 { 1, 1, 1, 0, 9 }, /* U */
10911091 { 2, 1, 1, 0, 9 }, /* V */
10921092 },
1093− .flags = PIX_FMT_BE | PIX_FMT_PLANAR,
1093+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
10941094 },
10951095 [AV_PIX_FMT_YUV420P16LE] = {
10961096 .name = "yuv420p16le",
@@ -1102,7 +1102,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
11021102 { 1, 1, 1, 0, 15 }, /* U */
11031103 { 2, 1, 1, 0, 15 }, /* V */
11041104 },
1105− .flags = PIX_FMT_PLANAR,
1105+ .flags = AV_PIX_FMT_FLAG_PLANAR,
11061106 },
11071107 [AV_PIX_FMT_YUV420P16BE] = {
11081108 .name = "yuv420p16be",
@@ -1114,7 +1114,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
11141114 { 1, 1, 1, 0, 15 }, /* U */
11151115 { 2, 1, 1, 0, 15 }, /* V */
11161116 },
1117− .flags = PIX_FMT_BE | PIX_FMT_PLANAR,
1117+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
11181118 },
11191119 [AV_PIX_FMT_YUV422P9LE] = {
11201120 .name = "yuv422p9le",
@@ -1126,7 +1126,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
11261126 { 1, 1, 1, 0, 8 }, /* U */
11271127 { 2, 1, 1, 0, 8 }, /* V */
11281128 },
1129− .flags = PIX_FMT_PLANAR,
1129+ .flags = AV_PIX_FMT_FLAG_PLANAR,
11301130 },
11311131 [AV_PIX_FMT_YUV422P9BE] = {
11321132 .name = "yuv422p9be",
@@ -1138,7 +1138,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
11381138 { 1, 1, 1, 0, 8 }, /* U */
11391139 { 2, 1, 1, 0, 8 }, /* V */
11401140 },
1141− .flags = PIX_FMT_BE | PIX_FMT_PLANAR,
1141+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
11421142 },
11431143 [AV_PIX_FMT_YUV422P10LE] = {
11441144 .name = "yuv422p10le",
@@ -1150,7 +1150,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
11501150 { 1, 1, 1, 0, 9 }, /* U */
11511151 { 2, 1, 1, 0, 9 }, /* V */
11521152 },
1153− .flags = PIX_FMT_PLANAR,
1153+ .flags = AV_PIX_FMT_FLAG_PLANAR,
11541154 },
11551155 [AV_PIX_FMT_YUV422P10BE] = {
11561156 .name = "yuv422p10be",
@@ -1162,7 +1162,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
11621162 { 1, 1, 1, 0, 9 }, /* U */
11631163 { 2, 1, 1, 0, 9 }, /* V */
11641164 },
1165− .flags = PIX_FMT_BE | PIX_FMT_PLANAR,
1165+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
11661166 },
11671167 [AV_PIX_FMT_YUV422P16LE] = {
11681168 .name = "yuv422p16le",
@@ -1174,7 +1174,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
11741174 { 1, 1, 1, 0, 15 }, /* U */
11751175 { 2, 1, 1, 0, 15 }, /* V */
11761176 },
1177− .flags = PIX_FMT_PLANAR,
1177+ .flags = AV_PIX_FMT_FLAG_PLANAR,
11781178 },
11791179 [AV_PIX_FMT_YUV422P16BE] = {
11801180 .name = "yuv422p16be",
@@ -1186,7 +1186,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
11861186 { 1, 1, 1, 0, 15 }, /* U */
11871187 { 2, 1, 1, 0, 15 }, /* V */
11881188 },
1189− .flags = PIX_FMT_BE | PIX_FMT_PLANAR,
1189+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
11901190 },
11911191 [AV_PIX_FMT_YUV444P16LE] = {
11921192 .name = "yuv444p16le",
@@ -1198,7 +1198,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
11981198 { 1, 1, 1, 0, 15 }, /* U */
11991199 { 2, 1, 1, 0, 15 }, /* V */
12001200 },
1201− .flags = PIX_FMT_PLANAR,
1201+ .flags = AV_PIX_FMT_FLAG_PLANAR,
12021202 },
12031203 [AV_PIX_FMT_YUV444P16BE] = {
12041204 .name = "yuv444p16be",
@@ -1210,7 +1210,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
12101210 { 1, 1, 1, 0, 15 }, /* U */
12111211 { 2, 1, 1, 0, 15 }, /* V */
12121212 },
1213− .flags = PIX_FMT_BE | PIX_FMT_PLANAR,
1213+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
12141214 },
12151215 [AV_PIX_FMT_YUV444P10LE] = {
12161216 .name = "yuv444p10le",
@@ -1222,7 +1222,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
12221222 { 1, 1, 1, 0, 9 }, /* U */
12231223 { 2, 1, 1, 0, 9 }, /* V */
12241224 },
1225− .flags = PIX_FMT_PLANAR,
1225+ .flags = AV_PIX_FMT_FLAG_PLANAR,
12261226 },
12271227 [AV_PIX_FMT_YUV444P10BE] = {
12281228 .name = "yuv444p10be",
@@ -1234,7 +1234,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
12341234 { 1, 1, 1, 0, 9 }, /* U */
12351235 { 2, 1, 1, 0, 9 }, /* V */
12361236 },
1237− .flags = PIX_FMT_BE | PIX_FMT_PLANAR,
1237+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
12381238 },
12391239 [AV_PIX_FMT_YUV444P9LE] = {
12401240 .name = "yuv444p9le",
@@ -1246,7 +1246,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
12461246 { 1, 1, 1, 0, 8 }, /* U */
12471247 { 2, 1, 1, 0, 8 }, /* V */
12481248 },
1249− .flags = PIX_FMT_PLANAR,
1249+ .flags = AV_PIX_FMT_FLAG_PLANAR,
12501250 },
12511251 [AV_PIX_FMT_YUV444P9BE] = {
12521252 .name = "yuv444p9be",
@@ -1258,13 +1258,13 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
12581258 { 1, 1, 1, 0, 8 }, /* U */
12591259 { 2, 1, 1, 0, 8 }, /* V */
12601260 },
1261− .flags = PIX_FMT_BE | PIX_FMT_PLANAR,
1261+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
12621262 },
12631263 [AV_PIX_FMT_DXVA2_VLD] = {
12641264 .name = "dxva2_vld",
12651265 .log2_chroma_w = 1,
12661266 .log2_chroma_h = 1,
1267− .flags = PIX_FMT_HWACCEL,
1267+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
12681268 },
12691269 [AV_PIX_FMT_Y400A] = {
12701270 .name = "y400a",
@@ -1273,7 +1273,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 2 unmodified lines
12731273 { 0, 1, 1, 0, 7 }, /* Y */
12741274 { 0, 1, 2, 0, 7 }, /* A */
12751275 },
1276− .flags = PIX_FMT_ALPHA,
1276+ .flags = AV_PIX_FMT_FLAG_ALPHA,
12771277 },
12781278 [AV_PIX_FMT_GBRP] = {
12791279 .name = "gbrp",
@@ -1285,7 +1285,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
12851285 { 1, 0, 1, 0, 7 }, /* B */
12861286 { 2, 0, 1, 0, 7 }, /* R */
12871287 },
1288− .flags = PIX_FMT_PLANAR | PIX_FMT_RGB,
1288+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
12891289 },
12901290 [AV_PIX_FMT_GBRP9LE] = {
12911291 .name = "gbrp9le",
@@ -1297,7 +1297,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
12971297 { 1, 1, 1, 0, 8 }, /* B */
12981298 { 2, 1, 1, 0, 8 }, /* R */
12991299 },
1300− .flags = PIX_FMT_PLANAR | PIX_FMT_RGB,
1300+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
13011301 },
13021302 [AV_PIX_FMT_GBRP9BE] = {
13031303 .name = "gbrp9be",
@@ -1309,7 +1309,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
13091309 { 1, 1, 1, 0, 8 }, /* B */
13101310 { 2, 1, 1, 0, 8 }, /* R */
13111311 },
1312− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_RGB,
1312+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
13131313 },
13141314 [AV_PIX_FMT_GBRP10LE] = {
13151315 .name = "gbrp10le",
@@ -1321,7 +1321,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
13211321 { 1, 1, 1, 0, 9 }, /* B */
13221322 { 2, 1, 1, 0, 9 }, /* R */
13231323 },
1324− .flags = PIX_FMT_PLANAR | PIX_FMT_RGB,
1324+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
13251325 },
13261326 [AV_PIX_FMT_GBRP10BE] = {
13271327 .name = "gbrp10be",
@@ -1333,7 +1333,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
13331333 { 1, 1, 1, 0, 9 }, /* B */
13341334 { 2, 1, 1, 0, 9 }, /* R */
13351335 },
1336− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_RGB,
1336+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
13371337 },
13381338 [AV_PIX_FMT_GBRP16LE] = {
13391339 .name = "gbrp16le",
@@ -1345,7 +1345,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
13451345 { 1, 1, 1, 0, 15 }, /* B */
13461346 { 2, 1, 1, 0, 15 }, /* R */
13471347 },
1348− .flags = PIX_FMT_PLANAR | PIX_FMT_RGB,
1348+ .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
13491349 },
13501350 [AV_PIX_FMT_GBRP16BE] = {
13511351 .name = "gbrp16be",
@@ -1357,13 +1357,13 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 5 unmodified lines
13571357 { 1, 1, 1, 0, 15 }, /* B */
13581358 { 2, 1, 1, 0, 15 }, /* R */
13591359 },
1360− .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_RGB,
1360+ .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
13611361 },
13621362 [AV_PIX_FMT_VDPAU] = {
13631363 .name = "vdpau",
13641364 .log2_chroma_w = 1,
13651365 .log2_chroma_h = 1,
1366− .flags = PIX_FMT_HWACCEL,
1366+ .flags = AV_PIX_FMT_FLAG_HWACCEL,
13671367 },
13681368 [AV_PIX_FMT_XYZ12LE] = {
13691369 .name = "xyz12le",
@@ -1387,7 +1387,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 17 unmodified lines
13871387 { 0, 5, 3, 4, 11 }, /* Y */
13881388 { 0, 5, 5, 4, 11 }, /* Z */
13891389 },
1390− .flags = PIX_FMT_BE,
1390+ .flags = AV_PIX_FMT_FLAG_BE,
13911391 },
13921392 };
13931393
libavutil/pixdesc.h+42−9
@@ -83,21 +83,54 @@ typedef struct AVPixFmtDescriptor{ · 82 unmodified lines
8383 AVComponentDescriptor comp[4];
8484 }AVPixFmtDescriptor;
8585
86−#define PIX_FMT_BE 1 ///< Pixel format is big-endian.
87−#define PIX_FMT_PAL 2 ///< Pixel format has a palette in data[1], values are indexes in this palette.
88−#define PIX_FMT_BITSTREAM 4 ///< All values of a component are bit-wise packed end to end.
89−#define PIX_FMT_HWACCEL 8 ///< Pixel format is an HW accelerated format.
90−#define PIX_FMT_PLANAR 16 ///< At least one pixel component is not in the first data plane
91−#define PIX_FMT_RGB 32 ///< The pixel format contains RGB-like data (as opposed to YUV/grayscale)
86+/**
87+ * Pixel format is big-endian.
88+ */
89+#define AV_PIX_FMT_FLAG_BE (1 << 0)
90+/**
91+ * Pixel format has a palette in data[1], values are indexes in this palette.
92+ */
93+#define AV_PIX_FMT_FLAG_PAL (1 << 1)
94+/**
95+ * All values of a component are bit-wise packed end to end.
96+ */
97+#define AV_PIX_FMT_FLAG_BITSTREAM (1 << 2)
98+/**
99+ * Pixel format is an HW accelerated format.
100+ */
101+#define AV_PIX_FMT_FLAG_HWACCEL (1 << 3)
102+/**
103+ * At least one pixel component is not in the first data plane.
104+ */
105+#define AV_PIX_FMT_FLAG_PLANAR (1 << 4)
106+/**
107+ * The pixel format contains RGB-like data (as opposed to YUV/grayscale).
108+ */
109+#define AV_PIX_FMT_FLAG_RGB (1 << 5)
92110 /**
93111 * The pixel format is "pseudo-paletted". This means that Libav treats it as
94112 * paletted internally, but the palette is generated by the decoder and is not
95113 * stored in the file.
96114 */
97−#define PIX_FMT_PSEUDOPAL 64
98−
99−#define PIX_FMT_ALPHA 128 ///< The pixel format has an alpha channel
115+#define AV_PIX_FMT_FLAG_PSEUDOPAL (1 << 6)
116+/**
117+ * The pixel format has an alpha channel.
118+ */
119+#define AV_PIX_FMT_FLAG_ALPHA (1 << 7)
100120
121+#if FF_API_PIX_FMT
122+/**
123+ * @deprecate use the AV_PIX_FMT_FLAG_* flags
124+ */
125+#define PIX_FMT_BE AV_PIX_FMT_FLAG_BE
126+#define PIX_FMT_PAL AV_PIX_FMT_FLAG_PAL
127+#define PIX_FMT_BITSTREAM AV_PIX_FMT_FLAG_BITSTREAM
128+#define PIX_FMT_HWACCEL AV_PIX_FMT_FLAG_HWACCEL
129+#define PIX_FMT_PLANAR AV_PIX_FMT_FLAG_PLANAR
130+#define PIX_FMT_RGB AV_PIX_FMT_FLAG_RGB
131+#define PIX_FMT_PSEUDOPAL AV_PIX_FMT_FLAG_PSEUDOPAL
132+#define PIX_FMT_ALPHA AV_PIX_FMT_FLAG_ALPHA
133+#endif
101134
102135 #if FF_API_PIX_FMT_DESC
103136 /**
libavutil/version.h+2−2
@@ -37,8 +37,8 @@ · 36 unmodified lines
3737 */
3838
3939 #define LIBAVUTIL_VERSION_MAJOR 52
40−#define LIBAVUTIL_VERSION_MINOR 10
41−#define LIBAVUTIL_VERSION_MICRO 1
40+#define LIBAVUTIL_VERSION_MINOR 11
41+#define LIBAVUTIL_VERSION_MICRO 0
4242
4343 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
4444 LIBAVUTIL_VERSION_MINOR, \
libswscale/swscale_internal.h+11−11
@@ -596,33 +596,33 @@ static av_always_inline int isBE(enum AVPixelFormat pix_fmt) · 595 unmodified lines
596596 {
597597 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
598598 av_assert0(desc);
599− return desc->flags & PIX_FMT_BE;
599+ return desc->flags & AV_PIX_FMT_FLAG_BE;
600600 }
601601
602602 static av_always_inline int isYUV(enum AVPixelFormat pix_fmt)
603603 {
604604 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
605605 av_assert0(desc);
606− return !(desc->flags & PIX_FMT_RGB) && desc->nb_components >= 2;
606+ return !(desc->flags & AV_PIX_FMT_FLAG_RGB) && desc->nb_components >= 2;
607607 }
608608
609609 static av_always_inline int isPlanarYUV(enum AVPixelFormat pix_fmt)
610610 {
611611 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
612612 av_assert0(desc);
613− return ((desc->flags & PIX_FMT_PLANAR) && isYUV(pix_fmt));
613+ return ((desc->flags & AV_PIX_FMT_FLAG_PLANAR) && isYUV(pix_fmt));
614614 }
615615
616616 static av_always_inline int isRGB(enum AVPixelFormat pix_fmt)
617617 {
618618 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
619619 av_assert0(desc);
620− return (desc->flags & PIX_FMT_RGB);
620+ return (desc->flags & AV_PIX_FMT_FLAG_RGB);
621621 }
622622
623623 #if 0 // FIXME
624624 #define isGray(x) \
625− (!(av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) && \
625+ (!(av_pix_fmt_descriptors[x].flags & AV_PIX_FMT_FLAG_PAL) && \
626626 av_pix_fmt_descriptors[x].nb_components <= 2)
627627 #else
628628 #define isGray(x) \
@@ -683,7 +683,7 @@ static av_always_inline int isPacked(enum AVPixelFormat pix_fmt) · 54 unmodified lines
683683 {
684684 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
685685 av_assert0(desc);
686− return ((desc->nb_components >= 2 && !(desc->flags & PIX_FMT_PLANAR)) ||
686+ return ((desc->nb_components >= 2 && !(desc->flags & AV_PIX_FMT_FLAG_PLANAR)) ||
687687 pix_fmt == AV_PIX_FMT_PAL8);
688688 }
689689
@@ -691,29 +691,29 @@ static av_always_inline int isPlanar(enum AVPixelFormat pix_fmt) · 1 unmodified line
691691 {
692692 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
693693 av_assert0(desc);
694− return (desc->nb_components >= 2 && (desc->flags & PIX_FMT_PLANAR));
694+ return (desc->nb_components >= 2 && (desc->flags & AV_PIX_FMT_FLAG_PLANAR));
695695 }
696696
697697 static av_always_inline int isPackedRGB(enum AVPixelFormat pix_fmt)
698698 {
699699 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
700700 av_assert0(desc);
701− return ((desc->flags & (PIX_FMT_PLANAR | PIX_FMT_RGB)) == PIX_FMT_RGB);
701+ return ((desc->flags & (AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB)) == AV_PIX_FMT_FLAG_RGB);
702702 }
703703
704704 static av_always_inline int isPlanarRGB(enum AVPixelFormat pix_fmt)
705705 {
706706 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
707707 av_assert0(desc);
708− return ((desc->flags & (PIX_FMT_PLANAR | PIX_FMT_RGB)) ==
709− (PIX_FMT_PLANAR | PIX_FMT_RGB));
708+ return ((desc->flags & (AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB)) ==
709+ (AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB));
710710 }
711711
712712 static av_always_inline int usePal(enum AVPixelFormat pix_fmt)
713713 {
714714 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
715715 av_assert0(desc);
716− return ((desc->flags & PIX_FMT_PAL) || (desc->flags & PIX_FMT_PSEUDOPAL) ||
716+ return ((desc->flags & AV_PIX_FMT_FLAG_PAL) || (desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL) ||
717717 pix_fmt == AV_PIX_FMT_Y400A);
718718 }
719719
libswscale/swscale_unscaled.c+1−1
@@ -563,7 +563,7 @@ static rgbConvFn findRgbConvFn(SwsContext *c) · 562 unmodified lines
563563
564564 #define IS_NOT_NE(bpp, desc) \
565565 (((bpp + 7) >> 3) == 2 && \
566− (!(desc->flags & PIX_FMT_BE) != !HAVE_BIGENDIAN))
566+ (!(desc->flags & AV_PIX_FMT_FLAG_BE) != !HAVE_BIGENDIAN))
567567
568568 /* if this is non-native rgb444/555/565, don't handle it here. */
569569 if (IS_NOT_NE(srcId, desc_src) || IS_NOT_NE(dstId, desc_dst))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t