History

Merge commit '2268db2cd052674fde55c7d48b7a5098ce89b4ba'

* commit '2268db2cd052674fde55c7d48b7a5098ce89b4ba': lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fields

Hendrik Leppkes committed 11 years ago

Commit 151aa2e2 parents f53569a 2268db218 files · +510 −486Browse files

Unified · Split

18 files
  1. doc/APIchanges +2 −0
  2. libavcodec/hevc.c +1 −1
  3. libavcodec/hevc_refs.c +1 −1
  4. libavcodec/libopenjpegdec.c +5 −5
  5. libavcodec/libopenjpegenc.c +2 −2
  6. libavcodec/libx265.c +2 −2
  7. libavcodec/pnmenc.c +1 −1
  8. libavfilter/vf_hqdn3d.c +1 −1
  9. libavfilter/vf_yadif.c +2 −2
  10. libavutil/imgutils.c +2 −2
  11. libavutil/pixdesc.c +454 −448
  12. libavutil/pixdesc.h +18 −6
  13. libavutil/version.h +4 −0
  14. libswscale/output.c +2 −2
  15. libswscale/swscale.c +3 −3
  16. libswscale/swscale_internal.h +3 −3
  17. libswscale/swscale_unscaled.c +5 −5
  18. libswscale/utils.c +2 −2
doc/APIchanges+2−0
@@ -19,6 +19,8 @@ API changes, most recent first: · 18 unmodified lines
1919 xxxxxxx - Change type of AVPixFmtDescriptor.flags from uint8_t to uint64_t.
2020 xxxxxxx - Change type of AVComponentDescriptor fields from uint16_t to int
2121 and drop bit packing.
22+ xxxxxxx - Add step, offset, and depth to AVComponentDescriptor to replace
23+ the deprecated step_minus1, offset_plus1, and depth_minus1.
2224
2325 -------- 8< --------- FFmpeg 2.8 was cut here -------- 8< ---------
2426
libavcodec/hevc.c+1−1
@@ -2821,7 +2821,7 @@ static int verify_md5(HEVCContext *s, AVFrame *frame) · 2820 unmodified lines
28212821 if (!desc)
28222822 return AVERROR(EINVAL);
28232823
2824− pixel_shift = desc->comp[0].depth_minus1 > 7;
2824+ pixel_shift = desc->comp[0].depth > 8;
28252825
28262826 av_log(s->avctx, AV_LOG_DEBUG, "Verifying checksum for frame with POC %d: ",
28272827 s->poc);
libavcodec/hevc_refs.c+1−1
@@ -206,7 +206,7 @@ int ff_hevc_output_frame(HEVCContext *s, AVFrame *out, int flush) · 205 unmodified lines
206206 AVFrame *dst = out;
207207 AVFrame *src = frame->frame;
208208 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(src->format);
209− int pixel_shift = !!(desc->comp[0].depth_minus1 > 7);
209+ int pixel_shift = !!(desc->comp[0].depth > 8);
210210
211211 ret = av_frame_ref(out, src);
212212 if (frame->flags & HEVC_FRAME_FLAG_BUMPING)
libavcodec/libopenjpegdec.c+5−5
@@ -114,22 +114,22 @@ static inline int libopenjpeg_matches_pix_fmt(const opj_image_t *image, enum AVP · 113 unmodified lines
114114 switch (desc->nb_components) {
115115 case 4:
116116 match = match &&
117− desc->comp[3].depth_minus1 + 1 >= image->comps[3].prec &&
117+ desc->comp[3].depth >= image->comps[3].prec &&
118118 1 == image->comps[3].dx &&
119119 1 == image->comps[3].dy;
120120 case 3:
121121 match = match &&
122− desc->comp[2].depth_minus1 + 1 >= image->comps[2].prec &&
122+ desc->comp[2].depth >= image->comps[2].prec &&
123123 1 << desc->log2_chroma_w == image->comps[2].dx &&
124124 1 << desc->log2_chroma_h == image->comps[2].dy;
125125 case 2:
126126 match = match &&
127− desc->comp[1].depth_minus1 + 1 >= image->comps[1].prec &&
127+ desc->comp[1].depth >= image->comps[1].prec &&
128128 1 << desc->log2_chroma_w == image->comps[1].dx &&
129129 1 << desc->log2_chroma_h == image->comps[1].dy;
130130 case 1:
131131 match = match &&
132− desc->comp[0].depth_minus1 + 1 >= image->comps[0].prec &&
132+ desc->comp[0].depth >= image->comps[0].prec &&
133133 1 == image->comps[0].dx &&
134134 1 == image->comps[0].dy;
135135 default:
@@ -388,7 +388,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx, · 252 unmodified lines
388388 }
389389
390390 desc = av_pix_fmt_desc_get(avctx->pix_fmt);
391− pixel_size = desc->comp[0].step_minus1 + 1;
391+ pixel_size = desc->comp[0].step;
392392 ispacked = libopenjpeg_ispacked(avctx->pix_fmt);
393393
394394 switch (pixel_size) {
libavcodec/libopenjpegenc.c+2−2
@@ -189,8 +189,8 @@ static opj_image_t *mj2_create_image(AVCodecContext *avctx, opj_cparameters_t *p · 188 unmodified lines
189189 }
190190
191191 for (i = 0; i < numcomps; i++) {
192− cmptparm[i].prec = desc->comp[i].depth_minus1 + 1;
193− cmptparm[i].bpp = desc->comp[i].depth_minus1 + 1;
192+ cmptparm[i].prec = desc->comp[i].depth;
193+ cmptparm[i].bpp = desc->comp[i].depth;
194194 cmptparm[i].sgnd = 0;
195195 cmptparm[i].dx = sub_dx[i];
196196 cmptparm[i].dy = sub_dy[i];
libavcodec/libx265.c+2−2
@@ -78,7 +78,7 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx) · 77 unmodified lines
7878 {
7979 libx265Context *ctx = avctx->priv_data;
8080
81− ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1);
81+ ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth);
8282 if (!ctx->api)
8383 ctx->api = x265_api_get(0);
8484
@@ -261,7 +261,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 176 unmodified lines
261261 }
262262
263263 x265pic.pts = pic->pts;
264− x265pic.bitDepth = av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1;
264+ x265pic.bitDepth = av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth;
265265
266266 x265pic.sliceType = pic->pict_type == AV_PICTURE_TYPE_I ? X265_TYPE_I :
267267 pic->pict_type == AV_PICTURE_TYPE_P ? X265_TYPE_P :
libavcodec/pnmenc.c+1−1
@@ -83,7 +83,7 @@ static int pnm_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 82 unmodified lines
8383 "P%c\n%d %d\n", c, avctx->width, h1);
8484 bytestream += strlen(bytestream);
8585 if (avctx->pix_fmt != AV_PIX_FMT_MONOWHITE) {
86− int maxdepth = (1 << (av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1)) - 1;
86+ int maxdepth = (1 << av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth) - 1;
8787 snprintf(bytestream, bytestream_end - bytestream,
8888 "%d\n", maxdepth);
8989 bytestream += strlen(bytestream);
libavfilter/vf_hqdn3d.c+1−1
@@ -269,7 +269,7 @@ static int config_input(AVFilterLink *inlink) · 268 unmodified lines
269269
270270 s->hsub = desc->log2_chroma_w;
271271 s->vsub = desc->log2_chroma_h;
272− s->depth = desc->comp[0].depth_minus1+1;
272+ s->depth = desc->comp[0].depth;
273273
274274 s->line = av_malloc_array(inlink->w, sizeof(*s->line));
275275 if (!s->line)
libavfilter/vf_yadif.c+2−2
@@ -186,7 +186,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) · 185 unmodified lines
186186 YADIFContext *s = ctx->priv;
187187 ThreadData *td = arg;
188188 int refs = s->cur->linesize[td->plane];
189− int df = (s->csp->comp[td->plane].depth_minus1 + 8) / 8;
189+ int df = (s->csp->comp[td->plane].depth + 7) / 8;
190190 int pix_3 = 3 * df;
191191 int slice_start = (td->h * jobnr ) / nb_jobs;
192192 int slice_end = (td->h * (jobnr+1)) / nb_jobs;
@@ -486,7 +486,7 @@ static int config_props(AVFilterLink *link) · 293 unmodified lines
486486 }
487487
488488 s->csp = av_pix_fmt_desc_get(link->format);
489− if (s->csp->comp[0].depth_minus1 / 8 == 1) {
489+ if (s->csp->comp[0].depth > 8) {
490490 s->filter_line = filter_line_c_16bit;
491491 s->filter_edges = filter_edges_16bit;
492492 } else {
libavutil/imgutils.c+2−2
@@ -41,8 +41,8 @@ void av_image_fill_max_pixsteps(int max_pixsteps[4], int max_pixstep_comps[4], · 40 unmodified lines
4141
4242 for (i = 0; i < 4; i++) {
4343 const AVComponentDescriptor *comp = &(pixdesc->comp[i]);
44− if ((comp->step_minus1+1) > max_pixsteps[comp->plane]) {
45− max_pixsteps[comp->plane] = comp->step_minus1+1;
44+ if (comp->step > max_pixsteps[comp->plane]) {
45+ max_pixsteps[comp->plane] = comp->step;
4646 if (max_pixstep_comps)
4747 max_pixstep_comps[comp->plane] = i;
4848 }
libavutil/pixdesc.c+454−448
@@ -39,14 +39,14 @@ void av_read_image_line(uint16_t *dst, · 38 unmodified lines
3939 {
4040 AVComponentDescriptor comp = desc->comp[c];
4141 int plane = comp.plane;
42− int depth = comp.depth_minus1 + 1;
42+ int depth = comp.depth;
4343 int mask = (1 << depth) - 1;
4444 int shift = comp.shift;
45− int step = comp.step_minus1 + 1;
45+ int step = comp.step;
4646 int flags = desc->flags;
4747
4848 if (flags & AV_PIX_FMT_FLAG_BITSTREAM) {
49− int skip = x * step + comp.offset_plus1 - 1;
49+ int skip = x * step + comp.offset;
5050 const uint8_t *p = data[plane] + y * linesize[plane] + (skip >> 3);
5151 int shift = 8 - depth - (skip & 7);
5252
@@ -61,7 +61,7 @@ void av_read_image_line(uint16_t *dst, · 8 unmodified lines
6161 }
6262 } else {
6363 const uint8_t *p = data[plane] + y * linesize[plane] +
64− x * step + comp.offset_plus1 - 1;
64+ x * step + comp.offset;
6565 int is_8bit = shift + depth <= 8;
6666
6767 if (is_8bit)
@@ -86,12 +86,12 @@ void av_write_image_line(const uint16_t *src, · 18 unmodified lines
8686 {
8787 AVComponentDescriptor comp = desc->comp[c];
8888 int plane = comp.plane;
89− int depth = comp.depth_minus1 + 1;
90− int step = comp.step_minus1 + 1;
89+ int depth = comp.depth;
90+ int step = comp.step;
9191 int flags = desc->flags;
9292
9393 if (flags & AV_PIX_FMT_FLAG_BITSTREAM) {
94− int skip = x * step + comp.offset_plus1 - 1;
94+ int skip = x * step + comp.offset;
9595 uint8_t *p = data[plane] + y * linesize[plane] + (skip >> 3);
9696 int shift = 8 - depth - (skip & 7);
9797
@@ -104,7 +104,7 @@ void av_write_image_line(const uint16_t *src, · 6 unmodified lines
104104 } else {
105105 int shift = comp.shift;
106106 uint8_t *p = data[plane] + y * linesize[plane] +
107− x * step + comp.offset_plus1 - 1;
107+ x * step + comp.offset;
108108
109109 if (shift + depth <= 8) {
110110 p += !!(flags & AV_PIX_FMT_FLAG_BE);
@@ -127,6 +127,9 @@ void av_write_image_line(const uint16_t *src, · 16 unmodified lines
127127 }
128128 }
129129
130+#if FF_API_PLUS1_MINUS1
131+FF_DISABLE_DEPRECATION_WARNINGS
132+#endif
130133 static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
131134 [AV_PIX_FMT_YUV420P] = {
132135 .name = "yuv420p",
@@ -134,9 +137,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 1 unmodified line
134137 .log2_chroma_w = 1,
135138 .log2_chroma_h = 1,
136139 .comp = {
137− { 0, 0, 1, 0, 7 }, /* Y */
138− { 1, 0, 1, 0, 7 }, /* U */
139− { 2, 0, 1, 0, 7 }, /* V */
140+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
141+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
142+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
140143 },
141144 .flags = AV_PIX_FMT_FLAG_PLANAR,
142145 },
@@ -146,9 +149,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
146149 .log2_chroma_w = 1,
147150 .log2_chroma_h = 0,
148151 .comp = {
149− { 0, 1, 1, 0, 7 }, /* Y */
150− { 0, 3, 2, 0, 7 }, /* U */
151− { 0, 3, 4, 0, 7 }, /* V */
152+ { 0, 2, 0, 0, 8, 1, 7, 1 }, /* Y */
153+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* U */
154+ { 0, 4, 3, 0, 8, 3, 7, 4 }, /* V */
152155 },
153156 },
154157 [AV_PIX_FMT_YVYU422] = {
@@ -157,9 +160,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 2 unmodified lines
157160 .log2_chroma_w = 1,
158161 .log2_chroma_h = 0,
159162 .comp = {
160− { 0, 1, 1, 0, 7 }, /* Y */
161− { 0, 3, 2, 0, 7 }, /* V */
162− { 0, 3, 4, 0, 7 }, /* U */
163+ { 0, 2, 0, 0, 8, 1, 7, 1 }, /* Y */
164+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* V */
165+ { 0, 4, 3, 0, 8, 3, 7, 4 }, /* U */
163166 },
164167 },
165168 [AV_PIX_FMT_RGB24] = {
@@ -168,9 +171,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 2 unmodified lines
168171 .log2_chroma_w = 0,
169172 .log2_chroma_h = 0,
170173 .comp = {
171− { 0, 2, 1, 0, 7 }, /* R */
172− { 0, 2, 2, 0, 7 }, /* G */
173− { 0, 2, 3, 0, 7 }, /* B */
174+ { 0, 3, 0, 0, 8, 2, 7, 1 }, /* R */
175+ { 0, 3, 1, 0, 8, 2, 7, 2 }, /* G */
176+ { 0, 3, 2, 0, 8, 2, 7, 3 }, /* B */
174177 },
175178 .flags = AV_PIX_FMT_FLAG_RGB,
176179 },
@@ -180,9 +183,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
180183 .log2_chroma_w = 0,
181184 .log2_chroma_h = 0,
182185 .comp = {
183− { 0, 2, 3, 0, 7 }, /* R */
184− { 0, 2, 2, 0, 7 }, /* G */
185− { 0, 2, 1, 0, 7 }, /* B */
186+ { 0, 3, 2, 0, 8, 2, 7, 3 }, /* R */
187+ { 0, 3, 1, 0, 8, 2, 7, 2 }, /* G */
188+ { 0, 3, 0, 0, 8, 2, 7, 1 }, /* B */
186189 },
187190 .flags = AV_PIX_FMT_FLAG_RGB,
188191 },
@@ -192,9 +195,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
192195 .log2_chroma_w = 1,
193196 .log2_chroma_h = 0,
194197 .comp = {
195− { 0, 0, 1, 0, 7 }, /* Y */
196− { 1, 0, 1, 0, 7 }, /* U */
197− { 2, 0, 1, 0, 7 }, /* V */
198+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
199+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
200+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
198201 },
199202 .flags = AV_PIX_FMT_FLAG_PLANAR,
200203 },
@@ -204,9 +207,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
204207 .log2_chroma_w = 0,
205208 .log2_chroma_h = 0,
206209 .comp = {
207− { 0, 0, 1, 0, 7 }, /* Y */
208− { 1, 0, 1, 0, 7 }, /* U */
209− { 2, 0, 1, 0, 7 }, /* V */
210+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
211+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
212+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
210213 },
211214 .flags = AV_PIX_FMT_FLAG_PLANAR,
212215 },
@@ -216,9 +219,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
216219 .log2_chroma_w = 2,
217220 .log2_chroma_h = 2,
218221 .comp = {
219− { 0, 0, 1, 0, 7 }, /* Y */
220− { 1, 0, 1, 0, 7 }, /* U */
221− { 2, 0, 1, 0, 7 }, /* V */
222+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
223+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
224+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
222225 },
223226 .flags = AV_PIX_FMT_FLAG_PLANAR,
224227 },
@@ -228,9 +231,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
228231 .log2_chroma_w = 2,
229232 .log2_chroma_h = 0,
230233 .comp = {
231− { 0, 0, 1, 0, 7 }, /* Y */
232− { 1, 0, 1, 0, 7 }, /* U */
233− { 2, 0, 1, 0, 7 }, /* V */
234+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
235+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
236+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
234237 },
235238 .flags = AV_PIX_FMT_FLAG_PLANAR,
236239 },
@@ -240,9 +243,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
240243 .log2_chroma_w = 2,
241244 .log2_chroma_h = 0,
242245 .comp = {
243− { 0, 0, 1, 0, 7 }, /* Y */
244− { 1, 0, 1, 0, 7 }, /* U */
245− { 2, 0, 1, 0, 7 }, /* V */
246+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
247+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
248+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
246249 },
247250 .flags = AV_PIX_FMT_FLAG_PLANAR,
248251 },
@@ -252,7 +255,7 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
252255 .log2_chroma_w = 0,
253256 .log2_chroma_h = 0,
254257 .comp = {
255− { 0, 0, 1, 0, 7 }, /* Y */
258+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
256259 },
257260 .flags = AV_PIX_FMT_FLAG_PSEUDOPAL,
258261 .alias = "gray8,y8",
@@ -263,7 +266,7 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 4 unmodified lines
263266 .log2_chroma_w = 0,
264267 .log2_chroma_h = 0,
265268 .comp = {
266− { 0, 0, 1, 0, 0 }, /* Y */
269+ { 0, 1, 0, 0, 1, 0, 0, 1 }, /* Y */
267270 },
268271 .flags = AV_PIX_FMT_FLAG_BITSTREAM,
269272 },
@@ -273,7 +276,7 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
273276 .log2_chroma_w = 0,
274277 .log2_chroma_h = 0,
275278 .comp = {
276− { 0, 0, 1, 7, 0 }, /* Y */
279+ { 0, 1, 0, 7, 1, 0, 0, 1 }, /* Y */
277280 },
278281 .flags = AV_PIX_FMT_FLAG_BITSTREAM,
279282 },
@@ -283,7 +286,7 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
283286 .log2_chroma_w = 0,
284287 .log2_chroma_h = 0,
285288 .comp = {
286− { 0, 0, 1, 0, 7 },
289+ { 0, 1, 0, 0, 8, 0, 7, 1 },
287290 },
288291 .flags = AV_PIX_FMT_FLAG_PAL,
289292 },
@@ -293,9 +296,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
293296 .log2_chroma_w = 1,
294297 .log2_chroma_h = 1,
295298 .comp = {
296− { 0, 0, 1, 0, 7 }, /* Y */
297− { 1, 0, 1, 0, 7 }, /* U */
298− { 2, 0, 1, 0, 7 }, /* V */
299+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
300+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
301+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
299302 },
300303 .flags = AV_PIX_FMT_FLAG_PLANAR,
301304 },
@@ -305,9 +308,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
305308 .log2_chroma_w = 1,
306309 .log2_chroma_h = 0,
307310 .comp = {
308− { 0, 0, 1, 0, 7 }, /* Y */
309− { 1, 0, 1, 0, 7 }, /* U */
310− { 2, 0, 1, 0, 7 }, /* V */
311+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
312+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
313+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
311314 },
312315 .flags = AV_PIX_FMT_FLAG_PLANAR,
313316 },
@@ -317,9 +320,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
317320 .log2_chroma_w = 0,
318321 .log2_chroma_h = 0,
319322 .comp = {
320− { 0, 0, 1, 0, 7 }, /* Y */
321− { 1, 0, 1, 0, 7 }, /* U */
322− { 2, 0, 1, 0, 7 }, /* V */
323+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
324+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
325+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
323326 },
324327 .flags = AV_PIX_FMT_FLAG_PLANAR,
325328 },
@@ -345,9 +348,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 19 unmodified lines
345348 .log2_chroma_w = 1,
346349 .log2_chroma_h = 0,
347350 .comp = {
348− { 0, 1, 2, 0, 7 }, /* Y */
349− { 0, 3, 1, 0, 7 }, /* U */
350− { 0, 3, 3, 0, 7 }, /* V */
351+ { 0, 2, 1, 0, 8, 1, 7, 2 }, /* Y */
352+ { 0, 4, 0, 0, 8, 3, 7, 1 }, /* U */
353+ { 0, 4, 2, 0, 8, 3, 7, 3 }, /* V */
351354 },
352355 },
353356 [AV_PIX_FMT_UYYVYY411] = {
@@ -356,9 +359,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 2 unmodified lines
356359 .log2_chroma_w = 2,
357360 .log2_chroma_h = 0,
358361 .comp = {
359− { 0, 3, 2, 0, 7 }, /* Y */
360− { 0, 5, 1, 0, 7 }, /* U */
361− { 0, 5, 4, 0, 7 }, /* V */
362+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* Y */
363+ { 0, 6, 0, 0, 8, 5, 7, 1 }, /* U */
364+ { 0, 6, 3, 0, 8, 5, 7, 4 }, /* V */
362365 },
363366 },
364367 [AV_PIX_FMT_BGR8] = {
@@ -367,9 +370,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 2 unmodified lines
367370 .log2_chroma_w = 0,
368371 .log2_chroma_h = 0,
369372 .comp = {
370− { 0, 0, 1, 0, 2 }, /* R */
371− { 0, 0, 1, 3, 2 }, /* G */
372− { 0, 0, 1, 6, 1 }, /* B */
373+ { 0, 1, 0, 0, 3, 0, 2, 1 }, /* R */
374+ { 0, 1, 0, 3, 3, 0, 2, 1 }, /* G */
375+ { 0, 1, 0, 6, 2, 0, 1, 1 }, /* B */
373376 },
374377 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL,
375378 },
@@ -379,9 +382,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
379382 .log2_chroma_w = 0,
380383 .log2_chroma_h = 0,
381384 .comp = {
382− { 0, 3, 4, 0, 0 }, /* R */
383− { 0, 3, 2, 0, 1 }, /* G */
384− { 0, 3, 1, 0, 0 }, /* B */
385+ { 0, 4, 3, 0, 1, 3, 0, 4 }, /* R */
386+ { 0, 4, 1, 0, 2, 3, 1, 2 }, /* G */
387+ { 0, 4, 0, 0, 1, 3, 0, 1 }, /* B */
385388 },
386389 .flags = AV_PIX_FMT_FLAG_BITSTREAM | AV_PIX_FMT_FLAG_RGB,
387390 },
@@ -391,9 +394,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
391394 .log2_chroma_w = 0,
392395 .log2_chroma_h = 0,
393396 .comp = {
394− { 0, 0, 1, 0, 0 }, /* R */
395− { 0, 0, 1, 1, 1 }, /* G */
396− { 0, 0, 1, 3, 0 }, /* B */
397+ { 0, 1, 0, 0, 1, 0, 0, 1 }, /* R */
398+ { 0, 1, 0, 1, 2, 0, 1, 1 }, /* G */
399+ { 0, 1, 0, 3, 1, 0, 0, 1 }, /* B */
397400 },
398401 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL,
399402 },
@@ -403,9 +406,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
403406 .log2_chroma_w = 0,
404407 .log2_chroma_h = 0,
405408 .comp = {
406− { 0, 0, 1, 6, 1 }, /* R */
407− { 0, 0, 1, 3, 2 }, /* G */
408− { 0, 0, 1, 0, 2 }, /* B */
409+ { 0, 1, 0, 6, 2, 0, 1, 1 }, /* R */
410+ { 0, 1, 0, 3, 3, 0, 2, 1 }, /* G */
411+ { 0, 1, 0, 0, 3, 0, 2, 1 }, /* B */
409412 },
410413 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL,
411414 },
@@ -415,9 +418,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
415418 .log2_chroma_w = 0,
416419 .log2_chroma_h = 0,
417420 .comp = {
418− { 0, 3, 1, 0, 0 }, /* R */
419− { 0, 3, 2, 0, 1 }, /* G */
420− { 0, 3, 4, 0, 0 }, /* B */
421+ { 0, 4, 0, 0, 1, 3, 0, 1 }, /* R */
422+ { 0, 4, 1, 0, 2, 3, 1, 2 }, /* G */
423+ { 0, 4, 3, 0, 1, 3, 0, 4 }, /* B */
421424 },
422425 .flags = AV_PIX_FMT_FLAG_BITSTREAM | AV_PIX_FMT_FLAG_RGB,
423426 },
@@ -427,9 +430,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
427430 .log2_chroma_w = 0,
428431 .log2_chroma_h = 0,
429432 .comp = {
430− { 0, 0, 1, 3, 0 }, /* R */
431− { 0, 0, 1, 1, 1 }, /* G */
432− { 0, 0, 1, 0, 0 }, /* B */
433+ { 0, 1, 0, 3, 1, 0, 0, 1 }, /* R */
434+ { 0, 1, 0, 1, 2, 0, 1, 1 }, /* G */
435+ { 0, 1, 0, 0, 1, 0, 0, 1 }, /* B */
433436 },
434437 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL,
435438 },
@@ -439,9 +442,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
439442 .log2_chroma_w = 1,
440443 .log2_chroma_h = 1,
441444 .comp = {
442− { 0, 0, 1, 0, 7 }, /* Y */
443− { 1, 1, 1, 0, 7 }, /* U */
444− { 1, 1, 2, 0, 7 }, /* V */
445+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
446+ { 1, 2, 0, 0, 8, 1, 7, 1 }, /* U */
447+ { 1, 2, 1, 0, 8, 1, 7, 2 }, /* V */
445448 },
446449 .flags = AV_PIX_FMT_FLAG_PLANAR,
447450 },
@@ -451,9 +454,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
451454 .log2_chroma_w = 1,
452455 .log2_chroma_h = 1,
453456 .comp = {
454− { 0, 0, 1, 0, 7 }, /* Y */
455− { 1, 1, 2, 0, 7 }, /* U */
456− { 1, 1, 1, 0, 7 }, /* V */
457+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
458+ { 1, 2, 1, 0, 8, 1, 7, 2 }, /* U */
459+ { 1, 2, 0, 0, 8, 1, 7, 1 }, /* V */
457460 },
458461 .flags = AV_PIX_FMT_FLAG_PLANAR,
459462 },
@@ -463,10 +466,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
463466 .log2_chroma_w = 0,
464467 .log2_chroma_h = 0,
465468 .comp = {
466− { 0, 3, 2, 0, 7 }, /* R */
467− { 0, 3, 3, 0, 7 }, /* G */
468− { 0, 3, 4, 0, 7 }, /* B */
469− { 0, 3, 1, 0, 7 }, /* A */
469+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* R */
470+ { 0, 4, 2, 0, 8, 3, 7, 3 }, /* G */
471+ { 0, 4, 3, 0, 8, 3, 7, 4 }, /* B */
472+ { 0, 4, 0, 0, 8, 3, 7, 1 }, /* A */
470473 },
471474 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
472475 },
@@ -476,10 +479,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
476479 .log2_chroma_w = 0,
477480 .log2_chroma_h = 0,
478481 .comp = {
479− { 0, 3, 1, 0, 7 }, /* R */
480− { 0, 3, 2, 0, 7 }, /* G */
481− { 0, 3, 3, 0, 7 }, /* B */
482− { 0, 3, 4, 0, 7 }, /* A */
482+ { 0, 4, 0, 0, 8, 3, 7, 1 }, /* R */
483+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* G */
484+ { 0, 4, 2, 0, 8, 3, 7, 3 }, /* B */
485+ { 0, 4, 3, 0, 8, 3, 7, 4 }, /* A */
483486 },
484487 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
485488 },
@@ -489,10 +492,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
489492 .log2_chroma_w = 0,
490493 .log2_chroma_h = 0,
491494 .comp = {
492− { 0, 3, 4, 0, 7 }, /* R */
493− { 0, 3, 3, 0, 7 }, /* G */
494− { 0, 3, 2, 0, 7 }, /* B */
495− { 0, 3, 1, 0, 7 }, /* A */
495+ { 0, 4, 3, 0, 8, 3, 7, 4 }, /* R */
496+ { 0, 4, 2, 0, 8, 3, 7, 3 }, /* G */
497+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* B */
498+ { 0, 4, 0, 0, 8, 3, 7, 1 }, /* A */
496499 },
497500 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
498501 },
@@ -502,10 +505,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
502505 .log2_chroma_w = 0,
503506 .log2_chroma_h = 0,
504507 .comp = {
505− { 0, 3, 3, 0, 7 }, /* R */
506− { 0, 3, 2, 0, 7 }, /* G */
507− { 0, 3, 1, 0, 7 }, /* B */
508− { 0, 3, 4, 0, 7 }, /* A */
508+ { 0, 4, 2, 0, 8, 3, 7, 3 }, /* R */
509+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* G */
510+ { 0, 4, 0, 0, 8, 3, 7, 1 }, /* B */
511+ { 0, 4, 3, 0, 8, 3, 7, 4 }, /* A */
509512 },
510513 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
511514 },
@@ -515,9 +518,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
515518 .log2_chroma_w= 0,
516519 .log2_chroma_h= 0,
517520 .comp = {
518− { 0, 3, 2, 0, 7 }, /* R */
519− { 0, 3, 3, 0, 7 }, /* G */
520− { 0, 3, 4, 0, 7 }, /* B */
521+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* R */
522+ { 0, 4, 2, 0, 8, 3, 7, 3 }, /* G */
523+ { 0, 4, 3, 0, 8, 3, 7, 4 }, /* B */
521524 },
522525 .flags = AV_PIX_FMT_FLAG_RGB,
523526 },
@@ -527,9 +530,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
527530 .log2_chroma_w= 0,
528531 .log2_chroma_h= 0,
529532 .comp = {
530− { 0, 3, 1, 0, 7 }, /* R */
531− { 0, 3, 2, 0, 7 }, /* G */
532− { 0, 3, 3, 0, 7 }, /* B */
533+ { 0, 4, 0, 0, 8, 3, 7, 1 }, /* R */
534+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* G */
535+ { 0, 4, 2, 0, 8, 3, 7, 3 }, /* B */
533536 },
534537 .flags = AV_PIX_FMT_FLAG_RGB,
535538 },
@@ -539,9 +542,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
539542 .log2_chroma_w= 0,
540543 .log2_chroma_h= 0,
541544 .comp = {
542− { 0, 3, 4, 0, 7 }, /* R */
543− { 0, 3, 3, 0, 7 }, /* G */
544− { 0, 3, 2, 0, 7 }, /* B */
545+ { 0, 4, 3, 0, 8, 3, 7, 4 }, /* R */
546+ { 0, 4, 2, 0, 8, 3, 7, 3 }, /* G */
547+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* B */
545548 },
546549 .flags = AV_PIX_FMT_FLAG_RGB,
547550 },
@@ -551,9 +554,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
551554 .log2_chroma_w= 0,
552555 .log2_chroma_h= 0,
553556 .comp = {
554− { 0, 3, 3, 0, 7 }, /* R */
555− { 0, 3, 2, 0, 7 }, /* G */
556− { 0, 3, 1, 0, 7 }, /* B */
557+ { 0, 4, 2, 0, 8, 3, 7, 3 }, /* R */
558+ { 0, 4, 1, 0, 8, 3, 7, 2 }, /* G */
559+ { 0, 4, 0, 0, 8, 3, 7, 1 }, /* B */
557560 },
558561 .flags = AV_PIX_FMT_FLAG_RGB,
559562 },
@@ -563,7 +566,7 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
563566 .log2_chroma_w = 0,
564567 .log2_chroma_h = 0,
565568 .comp = {
566− { 0, 1, 1, 0, 15 }, /* Y */
569+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
567570 },
568571 .flags = AV_PIX_FMT_FLAG_BE,
569572 .alias = "y16be",
@@ -574,7 +577,7 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 4 unmodified lines
574577 .log2_chroma_w = 0,
575578 .log2_chroma_h = 0,
576579 .comp = {
577− { 0, 1, 1, 0, 15 }, /* Y */
580+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
578581 },
579582 .alias = "y16le",
580583 },
@@ -584,9 +587,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
584587 .log2_chroma_w = 0,
585588 .log2_chroma_h = 1,
586589 .comp = {
587− { 0, 0, 1, 0, 7 }, /* Y */
588− { 1, 0, 1, 0, 7 }, /* U */
589− { 2, 0, 1, 0, 7 }, /* V */
590+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
591+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
592+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
590593 },
591594 .flags = AV_PIX_FMT_FLAG_PLANAR,
592595 },
@@ -596,9 +599,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
596599 .log2_chroma_w = 0,
597600 .log2_chroma_h = 1,
598601 .comp = {
599− { 0, 0, 1, 0, 7 }, /* Y */
600− { 1, 0, 1, 0, 7 }, /* U */
601− { 2, 0, 1, 0, 7 }, /* V */
602+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
603+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
604+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
602605 },
603606 .flags = AV_PIX_FMT_FLAG_PLANAR,
604607 },
@@ -608,9 +611,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
608611 .log2_chroma_w = 0,
609612 .log2_chroma_h = 1,
610613 .comp = {
611− { 0, 1, 1, 0, 9 }, /* Y */
612− { 1, 1, 1, 0, 9 }, /* U */
613− { 2, 1, 1, 0, 9 }, /* V */
614+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
615+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
616+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
614617 },
615618 .flags = AV_PIX_FMT_FLAG_PLANAR,
616619 },
@@ -620,9 +623,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
620623 .log2_chroma_w = 0,
621624 .log2_chroma_h = 1,
622625 .comp = {
623− { 0, 1, 1, 0, 9 }, /* Y */
624− { 1, 1, 1, 0, 9 }, /* U */
625− { 2, 1, 1, 0, 9 }, /* V */
626+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
627+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
628+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
626629 },
627630 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
628631 },
@@ -632,9 +635,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
632635 .log2_chroma_w = 0,
633636 .log2_chroma_h = 1,
634637 .comp = {
635− { 0, 1, 1, 0, 11 }, /* Y */
636− { 1, 1, 1, 0, 11 }, /* U */
637− { 2, 1, 1, 0, 11 }, /* V */
638+ { 0, 2, 0, 0, 12, 1, 11, 1 }, /* Y */
639+ { 1, 2, 0, 0, 12, 1, 11, 1 }, /* U */
640+ { 2, 2, 0, 0, 12, 1, 11, 1 }, /* V */
638641 },
639642 .flags = AV_PIX_FMT_FLAG_PLANAR,
640643 },
@@ -644,9 +647,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
644647 .log2_chroma_w = 0,
645648 .log2_chroma_h = 1,
646649 .comp = {
647− { 0, 1, 1, 0, 11 }, /* Y */
648− { 1, 1, 1, 0, 11 }, /* U */
649− { 2, 1, 1, 0, 11 }, /* V */
650+ { 0, 2, 0, 0, 12, 1, 11, 1 }, /* Y */
651+ { 1, 2, 0, 0, 12, 1, 11, 1 }, /* U */
652+ { 2, 2, 0, 0, 12, 1, 11, 1 }, /* V */
650653 },
651654 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
652655 },
@@ -656,10 +659,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
656659 .log2_chroma_w = 1,
657660 .log2_chroma_h = 1,
658661 .comp = {
659− { 0, 0, 1, 0, 7 }, /* Y */
660− { 1, 0, 1, 0, 7 }, /* U */
661− { 2, 0, 1, 0, 7 }, /* V */
662− { 3, 0, 1, 0, 7 }, /* A */
662+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
663+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
664+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
665+ { 3, 1, 0, 0, 8, 0, 7, 1 }, /* A */
663666 },
664667 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
665668 },
@@ -669,10 +672,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
669672 .log2_chroma_w = 1,
670673 .log2_chroma_h = 0,
671674 .comp = {
672− { 0, 0, 1, 0, 7 }, /* Y */
673− { 1, 0, 1, 0, 7 }, /* U */
674− { 2, 0, 1, 0, 7 }, /* V */
675− { 3, 0, 1, 0, 7 }, /* A */
675+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
676+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
677+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
678+ { 3, 1, 0, 0, 8, 0, 7, 1 }, /* A */
676679 },
677680 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
678681 },
@@ -682,10 +685,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
682685 .log2_chroma_w = 0,
683686 .log2_chroma_h = 0,
684687 .comp = {
685− { 0, 0, 1, 0, 7 }, /* Y */
686− { 1, 0, 1, 0, 7 }, /* U */
687− { 2, 0, 1, 0, 7 }, /* V */
688− { 3, 0, 1, 0, 7 }, /* A */
688+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
689+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* U */
690+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* V */
691+ { 3, 1, 0, 0, 8, 0, 7, 1 }, /* A */
689692 },
690693 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
691694 },
@@ -695,10 +698,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
695698 .log2_chroma_w = 1,
696699 .log2_chroma_h = 1,
697700 .comp = {
698− { 0, 1, 1, 0, 8 }, /* Y */
699− { 1, 1, 1, 0, 8 }, /* U */
700− { 2, 1, 1, 0, 8 }, /* V */
701− { 3, 1, 1, 0, 8 }, /* A */
701+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
702+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
703+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
704+ { 3, 2, 0, 0, 9, 1, 8, 1 }, /* A */
702705 },
703706 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
704707 },
@@ -708,10 +711,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
708711 .log2_chroma_w = 1,
709712 .log2_chroma_h = 1,
710713 .comp = {
711− { 0, 1, 1, 0, 8 }, /* Y */
712− { 1, 1, 1, 0, 8 }, /* U */
713− { 2, 1, 1, 0, 8 }, /* V */
714− { 3, 1, 1, 0, 8 }, /* A */
714+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
715+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
716+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
717+ { 3, 2, 0, 0, 9, 1, 8, 1 }, /* A */
715718 },
716719 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
717720 },
@@ -721,10 +724,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
721724 .log2_chroma_w = 1,
722725 .log2_chroma_h = 0,
723726 .comp = {
724− { 0, 1, 1, 0, 8 }, /* Y */
725− { 1, 1, 1, 0, 8 }, /* U */
726− { 2, 1, 1, 0, 8 }, /* V */
727− { 3, 1, 1, 0, 8 }, /* A */
727+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
728+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
729+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
730+ { 3, 2, 0, 0, 9, 1, 8, 1 }, /* A */
728731 },
729732 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
730733 },
@@ -734,10 +737,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
734737 .log2_chroma_w = 1,
735738 .log2_chroma_h = 0,
736739 .comp = {
737− { 0, 1, 1, 0, 8 }, /* Y */
738− { 1, 1, 1, 0, 8 }, /* U */
739− { 2, 1, 1, 0, 8 }, /* V */
740− { 3, 1, 1, 0, 8 }, /* A */
740+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
741+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
742+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
743+ { 3, 2, 0, 0, 9, 1, 8, 1 }, /* A */
741744 },
742745 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
743746 },
@@ -747,10 +750,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
747750 .log2_chroma_w = 0,
748751 .log2_chroma_h = 0,
749752 .comp = {
750− { 0, 1, 1, 0, 8 }, /* Y */
751− { 1, 1, 1, 0, 8 }, /* U */
752− { 2, 1, 1, 0, 8 }, /* V */
753− { 3, 1, 1, 0, 8 }, /* A */
753+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
754+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
755+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
756+ { 3, 2, 0, 0, 9, 1, 8, 1 }, /* A */
754757 },
755758 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
756759 },
@@ -760,10 +763,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
760763 .log2_chroma_w = 0,
761764 .log2_chroma_h = 0,
762765 .comp = {
763− { 0, 1, 1, 0, 8 }, /* Y */
764− { 1, 1, 1, 0, 8 }, /* U */
765− { 2, 1, 1, 0, 8 }, /* V */
766− { 3, 1, 1, 0, 8 }, /* A */
766+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
767+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
768+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
769+ { 3, 2, 0, 0, 9, 1, 8, 1 }, /* A */
767770 },
768771 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
769772 },
@@ -773,10 +776,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
773776 .log2_chroma_w = 1,
774777 .log2_chroma_h = 1,
775778 .comp = {
776− { 0, 1, 1, 0, 9 }, /* Y */
777− { 1, 1, 1, 0, 9 }, /* U */
778− { 2, 1, 1, 0, 9 }, /* V */
779− { 3, 1, 1, 0, 9 }, /* A */
779+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
780+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
781+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
782+ { 3, 2, 0, 0, 10, 1, 9, 1 }, /* A */
780783 },
781784 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
782785 },
@@ -786,10 +789,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
786789 .log2_chroma_w = 1,
787790 .log2_chroma_h = 1,
788791 .comp = {
789− { 0, 1, 1, 0, 9 }, /* Y */
790− { 1, 1, 1, 0, 9 }, /* U */
791− { 2, 1, 1, 0, 9 }, /* V */
792− { 3, 1, 1, 0, 9 }, /* A */
792+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
793+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
794+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
795+ { 3, 2, 0, 0, 10, 1, 9, 1 }, /* A */
793796 },
794797 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
795798 },
@@ -799,10 +802,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
799802 .log2_chroma_w = 1,
800803 .log2_chroma_h = 0,
801804 .comp = {
802− { 0, 1, 1, 0, 9 }, /* Y */
803− { 1, 1, 1, 0, 9 }, /* U */
804− { 2, 1, 1, 0, 9 }, /* V */
805− { 3, 1, 1, 0, 9 }, /* A */
805+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
806+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
807+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
808+ { 3, 2, 0, 0, 10, 1, 9, 1 }, /* A */
806809 },
807810 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
808811 },
@@ -812,10 +815,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
812815 .log2_chroma_w = 1,
813816 .log2_chroma_h = 0,
814817 .comp = {
815− { 0, 1, 1, 0, 9 }, /* Y */
816− { 1, 1, 1, 0, 9 }, /* U */
817− { 2, 1, 1, 0, 9 }, /* V */
818− { 3, 1, 1, 0, 9 }, /* A */
818+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
819+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
820+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
821+ { 3, 2, 0, 0, 10, 1, 9, 1 }, /* A */
819822 },
820823 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
821824 },
@@ -825,10 +828,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
825828 .log2_chroma_w = 0,
826829 .log2_chroma_h = 0,
827830 .comp = {
828− { 0, 1, 1, 0, 9 }, /* Y */
829− { 1, 1, 1, 0, 9 }, /* U */
830− { 2, 1, 1, 0, 9 }, /* V */
831− { 3, 1, 1, 0, 9 }, /* A */
831+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
832+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
833+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
834+ { 3, 2, 0, 0, 10, 1, 9, 1 }, /* A */
832835 },
833836 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
834837 },
@@ -838,10 +841,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
838841 .log2_chroma_w = 0,
839842 .log2_chroma_h = 0,
840843 .comp = {
841− { 0, 1, 1, 0, 9 }, /* Y */
842− { 1, 1, 1, 0, 9 }, /* U */
843− { 2, 1, 1, 0, 9 }, /* V */
844− { 3, 1, 1, 0, 9 }, /* A */
844+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
845+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
846+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
847+ { 3, 2, 0, 0, 10, 1, 9, 1 }, /* A */
845848 },
846849 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
847850 },
@@ -851,10 +854,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
851854 .log2_chroma_w = 1,
852855 .log2_chroma_h = 1,
853856 .comp = {
854− { 0, 1, 1, 0, 15 }, /* Y */
855− { 1, 1, 1, 0, 15 }, /* U */
856− { 2, 1, 1, 0, 15 }, /* V */
857− { 3, 1, 1, 0, 15 }, /* A */
857+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
858+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
859+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
860+ { 3, 2, 0, 0, 16, 1, 15, 1 }, /* A */
858861 },
859862 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
860863 },
@@ -864,10 +867,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
864867 .log2_chroma_w = 1,
865868 .log2_chroma_h = 1,
866869 .comp = {
867− { 0, 1, 1, 0, 15 }, /* Y */
868− { 1, 1, 1, 0, 15 }, /* U */
869− { 2, 1, 1, 0, 15 }, /* V */
870− { 3, 1, 1, 0, 15 }, /* A */
870+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
871+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
872+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
873+ { 3, 2, 0, 0, 16, 1, 15, 1 }, /* A */
871874 },
872875 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
873876 },
@@ -877,10 +880,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
877880 .log2_chroma_w = 1,
878881 .log2_chroma_h = 0,
879882 .comp = {
880− { 0, 1, 1, 0, 15 }, /* Y */
881− { 1, 1, 1, 0, 15 }, /* U */
882− { 2, 1, 1, 0, 15 }, /* V */
883− { 3, 1, 1, 0, 15 }, /* A */
883+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
884+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
885+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
886+ { 3, 2, 0, 0, 16, 1, 15, 1 }, /* A */
884887 },
885888 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
886889 },
@@ -890,10 +893,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
890893 .log2_chroma_w = 1,
891894 .log2_chroma_h = 0,
892895 .comp = {
893− { 0, 1, 1, 0, 15 }, /* Y */
894− { 1, 1, 1, 0, 15 }, /* U */
895− { 2, 1, 1, 0, 15 }, /* V */
896− { 3, 1, 1, 0, 15 }, /* A */
896+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
897+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
898+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
899+ { 3, 2, 0, 0, 16, 1, 15, 1 }, /* A */
897900 },
898901 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
899902 },
@@ -903,10 +906,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
903906 .log2_chroma_w = 0,
904907 .log2_chroma_h = 0,
905908 .comp = {
906− { 0, 1, 1, 0, 15 }, /* Y */
907− { 1, 1, 1, 0, 15 }, /* U */
908− { 2, 1, 1, 0, 15 }, /* V */
909− { 3, 1, 1, 0, 15 }, /* A */
909+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
910+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
911+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
912+ { 3, 2, 0, 0, 16, 1, 15, 1 }, /* A */
910913 },
911914 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
912915 },
@@ -916,10 +919,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
916919 .log2_chroma_w = 0,
917920 .log2_chroma_h = 0,
918921 .comp = {
919− { 0, 1, 1, 0, 15 }, /* Y */
920− { 1, 1, 1, 0, 15 }, /* U */
921− { 2, 1, 1, 0, 15 }, /* V */
922− { 3, 1, 1, 0, 15 }, /* A */
922+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
923+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
924+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
925+ { 3, 2, 0, 0, 16, 1, 15, 1 }, /* A */
923926 },
924927 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA,
925928 },
@@ -967,9 +970,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 41 unmodified lines
967970 .log2_chroma_w = 0,
968971 .log2_chroma_h = 0,
969972 .comp = {
970− { 0, 5, 1, 0, 15 }, /* R */
971− { 0, 5, 3, 0, 15 }, /* G */
972− { 0, 5, 5, 0, 15 }, /* B */
973+ { 0, 6, 0, 0, 16, 5, 15, 1 }, /* R */
974+ { 0, 6, 2, 0, 16, 5, 15, 3 }, /* G */
975+ { 0, 6, 4, 0, 16, 5, 15, 5 }, /* B */
973976 },
974977 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BE,
975978 },
@@ -979,9 +982,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
979982 .log2_chroma_w = 0,
980983 .log2_chroma_h = 0,
981984 .comp = {
982− { 0, 5, 1, 0, 15 }, /* R */
983− { 0, 5, 3, 0, 15 }, /* G */
984− { 0, 5, 5, 0, 15 }, /* B */
985+ { 0, 6, 0, 0, 16, 5, 15, 1 }, /* R */
986+ { 0, 6, 2, 0, 16, 5, 15, 3 }, /* G */
987+ { 0, 6, 4, 0, 16, 5, 15, 5 }, /* B */
985988 },
986989 .flags = AV_PIX_FMT_FLAG_RGB,
987990 },
@@ -991,10 +994,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
991994 .log2_chroma_w = 0,
992995 .log2_chroma_h = 0,
993996 .comp = {
994− { 0, 7, 1, 0, 15 }, /* R */
995− { 0, 7, 3, 0, 15 }, /* G */
996− { 0, 7, 5, 0, 15 }, /* B */
997− { 0, 7, 7, 0, 15 }, /* A */
997+ { 0, 8, 0, 0, 16, 7, 15, 1 }, /* R */
998+ { 0, 8, 2, 0, 16, 7, 15, 3 }, /* G */
999+ { 0, 8, 4, 0, 16, 7, 15, 5 }, /* B */
1000+ { 0, 8, 6, 0, 16, 7, 15, 7 }, /* A */
9981001 },
9991002 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
10001003 },
@@ -1004,10 +1007,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
10041007 .log2_chroma_w = 0,
10051008 .log2_chroma_h = 0,
10061009 .comp = {
1007− { 0, 7, 1, 0, 15 }, /* R */
1008− { 0, 7, 3, 0, 15 }, /* G */
1009− { 0, 7, 5, 0, 15 }, /* B */
1010− { 0, 7, 7, 0, 15 }, /* A */
1010+ { 0, 8, 0, 0, 16, 7, 15, 1 }, /* R */
1011+ { 0, 8, 2, 0, 16, 7, 15, 3 }, /* G */
1012+ { 0, 8, 4, 0, 16, 7, 15, 5 }, /* B */
1013+ { 0, 8, 6, 0, 16, 7, 15, 7 }, /* A */
10111014 },
10121015 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
10131016 },
@@ -1017,9 +1020,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
10171020 .log2_chroma_w = 0,
10181021 .log2_chroma_h = 0,
10191022 .comp = {
1020− { 0, 1, 0, 3, 4 }, /* R */
1021− { 0, 1, 1, 5, 5 }, /* G */
1022− { 0, 1, 1, 0, 4 }, /* B */
1023+ { 0, 2, -1, 3, 5, 1, 4, 0 }, /* R */
1024+ { 0, 2, 0, 5, 6, 1, 5, 1 }, /* G */
1025+ { 0, 2, 0, 0, 5, 1, 4, 1 }, /* B */
10231026 },
10241027 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
10251028 },
@@ -1029,9 +1032,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
10291032 .log2_chroma_w = 0,
10301033 .log2_chroma_h = 0,
10311034 .comp = {
1032− { 0, 1, 2, 3, 4 }, /* R */
1033− { 0, 1, 1, 5, 5 }, /* G */
1034− { 0, 1, 1, 0, 4 }, /* B */
1035+ { 0, 2, 1, 3, 5, 1, 4, 2 }, /* R */
1036+ { 0, 2, 0, 5, 6, 1, 5, 1 }, /* G */
1037+ { 0, 2, 0, 0, 5, 1, 4, 1 }, /* B */
10351038 },
10361039 .flags = AV_PIX_FMT_FLAG_RGB,
10371040 },
@@ -1041,9 +1044,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
10411044 .log2_chroma_w = 0,
10421045 .log2_chroma_h = 0,
10431046 .comp = {
1044− { 0, 1, 0, 2, 4 }, /* R */
1045− { 0, 1, 1, 5, 4 }, /* G */
1046− { 0, 1, 1, 0, 4 }, /* B */
1047+ { 0, 2, -1, 2, 5, 1, 4, 0 }, /* R */
1048+ { 0, 2, 0, 5, 5, 1, 4, 1 }, /* G */
1049+ { 0, 2, 0, 0, 5, 1, 4, 1 }, /* B */
10471050 },
10481051 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
10491052 },
@@ -1053,9 +1056,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
10531056 .log2_chroma_w = 0,
10541057 .log2_chroma_h = 0,
10551058 .comp = {
1056− { 0, 1, 2, 2, 4 }, /* R */
1057− { 0, 1, 1, 5, 4 }, /* G */
1058− { 0, 1, 1, 0, 4 }, /* B */
1059+ { 0, 2, 1, 2, 5, 1, 4, 2 }, /* R */
1060+ { 0, 2, 0, 5, 5, 1, 4, 1 }, /* G */
1061+ { 0, 2, 0, 0, 5, 1, 4, 1 }, /* B */
10591062 },
10601063 .flags = AV_PIX_FMT_FLAG_RGB,
10611064 },
@@ -1065,9 +1068,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
10651068 .log2_chroma_w = 0,
10661069 .log2_chroma_h = 0,
10671070 .comp = {
1068− { 0, 1, 0, 0, 3 }, /* R */
1069− { 0, 1, 1, 4, 3 }, /* G */
1070− { 0, 1, 1, 0, 3 }, /* B */
1071+ { 0, 2, -1, 0, 4, 1, 3, 0 }, /* R */
1072+ { 0, 2, 0, 4, 4, 1, 3, 1 }, /* G */
1073+ { 0, 2, 0, 0, 4, 1, 3, 1 }, /* B */
10711074 },
10721075 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
10731076 },
@@ -1077,9 +1080,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
10771080 .log2_chroma_w = 0,
10781081 .log2_chroma_h = 0,
10791082 .comp = {
1080− { 0, 1, 2, 0, 3 }, /* R */
1081− { 0, 1, 1, 4, 3 }, /* G */
1082− { 0, 1, 1, 0, 3 }, /* B */
1083+ { 0, 2, 1, 0, 4, 1, 3, 2 }, /* R */
1084+ { 0, 2, 0, 4, 4, 1, 3, 1 }, /* G */
1085+ { 0, 2, 0, 0, 4, 1, 3, 1 }, /* B */
10831086 },
10841087 .flags = AV_PIX_FMT_FLAG_RGB,
10851088 },
@@ -1089,9 +1092,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
10891092 .log2_chroma_w = 0,
10901093 .log2_chroma_h = 0,
10911094 .comp = {
1092− { 0, 5, 5, 0, 15 }, /* R */
1093− { 0, 5, 3, 0, 15 }, /* G */
1094− { 0, 5, 1, 0, 15 }, /* B */
1095+ { 0, 6, 4, 0, 16, 5, 15, 5 }, /* R */
1096+ { 0, 6, 2, 0, 16, 5, 15, 3 }, /* G */
1097+ { 0, 6, 0, 0, 16, 5, 15, 1 }, /* B */
10951098 },
10961099 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
10971100 },
@@ -1101,9 +1104,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
11011104 .log2_chroma_w = 0,
11021105 .log2_chroma_h = 0,
11031106 .comp = {
1104− { 0, 5, 5, 0, 15 }, /* R */
1105− { 0, 5, 3, 0, 15 }, /* G */
1106− { 0, 5, 1, 0, 15 }, /* B */
1107+ { 0, 6, 4, 0, 16, 5, 15, 5 }, /* R */
1108+ { 0, 6, 2, 0, 16, 5, 15, 3 }, /* G */
1109+ { 0, 6, 0, 0, 16, 5, 15, 1 }, /* B */
11071110 },
11081111 .flags = AV_PIX_FMT_FLAG_RGB,
11091112 },
@@ -1113,10 +1116,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
11131116 .log2_chroma_w = 0,
11141117 .log2_chroma_h = 0,
11151118 .comp = {
1116− { 0, 7, 5, 0, 15 }, /* R */
1117− { 0, 7, 3, 0, 15 }, /* G */
1118− { 0, 7, 1, 0, 15 }, /* B */
1119− { 0, 7, 7, 0, 15 }, /* A */
1119+ { 0, 8, 4, 0, 16, 7, 15, 5 }, /* R */
1120+ { 0, 8, 2, 0, 16, 7, 15, 3 }, /* G */
1121+ { 0, 8, 0, 0, 16, 7, 15, 1 }, /* B */
1122+ { 0, 8, 6, 0, 16, 7, 15, 7 }, /* A */
11201123 },
11211124 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
11221125 },
@@ -1126,10 +1129,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
11261129 .log2_chroma_w = 0,
11271130 .log2_chroma_h = 0,
11281131 .comp = {
1129− { 0, 7, 5, 0, 15 }, /* R */
1130− { 0, 7, 3, 0, 15 }, /* G */
1131− { 0, 7, 1, 0, 15 }, /* B */
1132− { 0, 7, 7, 0, 15 }, /* A */
1132+ { 0, 8, 4, 0, 16, 7, 15, 5 }, /* R */
1133+ { 0, 8, 2, 0, 16, 7, 15, 3 }, /* G */
1134+ { 0, 8, 0, 0, 16, 7, 15, 1 }, /* B */
1135+ { 0, 8, 6, 0, 16, 7, 15, 7 }, /* A */
11331136 },
11341137 .flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
11351138 },
@@ -1139,9 +1142,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
11391142 .log2_chroma_w = 0,
11401143 .log2_chroma_h = 0,
11411144 .comp = {
1142− { 0, 1, 1, 0, 4 }, /* R */
1143− { 0, 1, 1, 5, 5 }, /* G */
1144− { 0, 1, 0, 3, 4 }, /* B */
1145+ { 0, 2, 0, 0, 5, 1, 4, 1 }, /* R */
1146+ { 0, 2, 0, 5, 6, 1, 5, 1 }, /* G */
1147+ { 0, 2, -1, 3, 5, 1, 4, 0 }, /* B */
11451148 },
11461149 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
11471150 },
@@ -1151,9 +1154,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
11511154 .log2_chroma_w = 0,
11521155 .log2_chroma_h = 0,
11531156 .comp = {
1154− { 0, 1, 1, 0, 4 }, /* R */
1155− { 0, 1, 1, 5, 5 }, /* G */
1156− { 0, 1, 2, 3, 4 }, /* B */
1157+ { 0, 2, 0, 0, 5, 1, 4, 1 }, /* R */
1158+ { 0, 2, 0, 5, 6, 1, 5, 1 }, /* G */
1159+ { 0, 2, 1, 3, 5, 1, 4, 2 }, /* B */
11571160 },
11581161 .flags = AV_PIX_FMT_FLAG_RGB,
11591162 },
@@ -1163,9 +1166,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
11631166 .log2_chroma_w = 0,
11641167 .log2_chroma_h = 0,
11651168 .comp = {
1166− { 0, 1, 1, 0, 4 }, /* R */
1167− { 0, 1, 1, 5, 4 }, /* G */
1168− { 0, 1, 0, 2, 4 }, /* B */
1169+ { 0, 2, 0, 0, 5, 1, 4, 1 }, /* R */
1170+ { 0, 2, 0, 5, 5, 1, 4, 1 }, /* G */
1171+ { 0, 2, -1, 2, 5, 1, 4, 0 }, /* B */
11691172 },
11701173 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
11711174 },
@@ -1175,9 +1178,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
11751178 .log2_chroma_w = 0,
11761179 .log2_chroma_h = 0,
11771180 .comp = {
1178− { 0, 1, 1, 0, 4 }, /* R */
1179− { 0, 1, 1, 5, 4 }, /* G */
1180− { 0, 1, 2, 2, 4 }, /* B */
1181+ { 0, 2, 0, 0, 5, 1, 4, 1 }, /* R */
1182+ { 0, 2, 0, 5, 5, 1, 4, 1 }, /* G */
1183+ { 0, 2, 1, 2, 5, 1, 4, 2 }, /* B */
11811184 },
11821185 .flags = AV_PIX_FMT_FLAG_RGB,
11831186 },
@@ -1187,9 +1190,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
11871190 .log2_chroma_w = 0,
11881191 .log2_chroma_h = 0,
11891192 .comp = {
1190− { 0, 1, 1, 0, 3 }, /* R */
1191− { 0, 1, 1, 4, 3 }, /* G */
1192− { 0, 1, 0, 0, 3 }, /* B */
1193+ { 0, 2, 0, 0, 4, 1, 3, 1 }, /* R */
1194+ { 0, 2, 0, 4, 4, 1, 3, 1 }, /* G */
1195+ { 0, 2, -1, 0, 4, 1, 3, 0 }, /* B */
11931196 },
11941197 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB,
11951198 },
@@ -1199,9 +1202,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
11991202 .log2_chroma_w = 0,
12001203 .log2_chroma_h = 0,
12011204 .comp = {
1202− { 0, 1, 1, 0, 3 }, /* R */
1203− { 0, 1, 1, 4, 3 }, /* G */
1204− { 0, 1, 2, 0, 3 }, /* B */
1205+ { 0, 2, 0, 0, 4, 1, 3, 1 }, /* R */
1206+ { 0, 2, 0, 4, 4, 1, 3, 1 }, /* G */
1207+ { 0, 2, 1, 0, 4, 1, 3, 2 }, /* B */
12051208 },
12061209 .flags = AV_PIX_FMT_FLAG_RGB,
12071210 },
@@ -1238,9 +1241,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 30 unmodified lines
12381241 .log2_chroma_w = 1,
12391242 .log2_chroma_h = 1,
12401243 .comp = {
1241− { 0, 1, 1, 0, 8 }, /* Y */
1242− { 1, 1, 1, 0, 8 }, /* U */
1243− { 2, 1, 1, 0, 8 }, /* V */
1244+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
1245+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
1246+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
12441247 },
12451248 .flags = AV_PIX_FMT_FLAG_PLANAR,
12461249 },
@@ -1250,9 +1253,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
12501253 .log2_chroma_w = 1,
12511254 .log2_chroma_h = 1,
12521255 .comp = {
1253− { 0, 1, 1, 0, 8 }, /* Y */
1254− { 1, 1, 1, 0, 8 }, /* U */
1255− { 2, 1, 1, 0, 8 }, /* V */
1256+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
1257+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
1258+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
12561259 },
12571260 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
12581261 },
@@ -1262,9 +1265,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
12621265 .log2_chroma_w = 1,
12631266 .log2_chroma_h = 1,
12641267 .comp = {
1265− { 0, 1, 1, 0, 9 }, /* Y */
1266− { 1, 1, 1, 0, 9 }, /* U */
1267− { 2, 1, 1, 0, 9 }, /* V */
1268+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
1269+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
1270+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
12681271 },
12691272 .flags = AV_PIX_FMT_FLAG_PLANAR,
12701273 },
@@ -1274,9 +1277,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
12741277 .log2_chroma_w = 1,
12751278 .log2_chroma_h = 1,
12761279 .comp = {
1277− { 0, 1, 1, 0, 9 }, /* Y */
1278− { 1, 1, 1, 0, 9 }, /* U */
1279− { 2, 1, 1, 0, 9 }, /* V */
1280+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
1281+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
1282+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
12801283 },
12811284 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
12821285 },
@@ -1286,9 +1289,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
12861289 .log2_chroma_w = 1,
12871290 .log2_chroma_h = 1,
12881291 .comp = {
1289− { 0, 1, 1, 0, 11 }, /* Y */
1290− { 1, 1, 1, 0, 11 }, /* U */
1291− { 2, 1, 1, 0, 11 }, /* V */
1292+ { 0, 2, 0, 0, 12, 1, 11, 1 }, /* Y */
1293+ { 1, 2, 0, 0, 12, 1, 11, 1 }, /* U */
1294+ { 2, 2, 0, 0, 12, 1, 11, 1 }, /* V */
12921295 },
12931296 .flags = AV_PIX_FMT_FLAG_PLANAR,
12941297 },
@@ -1298,9 +1301,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
12981301 .log2_chroma_w = 1,
12991302 .log2_chroma_h = 1,
13001303 .comp = {
1301− { 0, 1, 1, 0, 11 }, /* Y */
1302− { 1, 1, 1, 0, 11 }, /* U */
1303− { 2, 1, 1, 0, 11 }, /* V */
1304+ { 0, 2, 0, 0, 12, 1, 11, 1 }, /* Y */
1305+ { 1, 2, 0, 0, 12, 1, 11, 1 }, /* U */
1306+ { 2, 2, 0, 0, 12, 1, 11, 1 }, /* V */
13041307 },
13051308 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
13061309 },
@@ -1310,9 +1313,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
13101313 .log2_chroma_w = 1,
13111314 .log2_chroma_h = 1,
13121315 .comp = {
1313− { 0, 1, 1, 0, 13 }, /* Y */
1314− { 1, 1, 1, 0, 13 }, /* U */
1315− { 2, 1, 1, 0, 13 }, /* V */
1316+ { 0, 2, 0, 0, 14, 1, 13, 1 }, /* Y */
1317+ { 1, 2, 0, 0, 14, 1, 13, 1 }, /* U */
1318+ { 2, 2, 0, 0, 14, 1, 13, 1 }, /* V */
13161319 },
13171320 .flags = AV_PIX_FMT_FLAG_PLANAR,
13181321 },
@@ -1322,9 +1325,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
13221325 .log2_chroma_w = 1,
13231326 .log2_chroma_h = 1,
13241327 .comp = {
1325− { 0, 1, 1, 0, 13 }, /* Y */
1326− { 1, 1, 1, 0, 13 }, /* U */
1327− { 2, 1, 1, 0, 13 }, /* V */
1328+ { 0, 2, 0, 0, 14, 1, 13, 1 }, /* Y */
1329+ { 1, 2, 0, 0, 14, 1, 13, 1 }, /* U */
1330+ { 2, 2, 0, 0, 14, 1, 13, 1 }, /* V */
13281331 },
13291332 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
13301333 },
@@ -1334,9 +1337,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
13341337 .log2_chroma_w = 1,
13351338 .log2_chroma_h = 1,
13361339 .comp = {
1337− { 0, 1, 1, 0, 15 }, /* Y */
1338− { 1, 1, 1, 0, 15 }, /* U */
1339− { 2, 1, 1, 0, 15 }, /* V */
1340+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
1341+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
1342+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
13401343 },
13411344 .flags = AV_PIX_FMT_FLAG_PLANAR,
13421345 },
@@ -1346,9 +1349,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
13461349 .log2_chroma_w = 1,
13471350 .log2_chroma_h = 1,
13481351 .comp = {
1349− { 0, 1, 1, 0, 15 }, /* Y */
1350− { 1, 1, 1, 0, 15 }, /* U */
1351− { 2, 1, 1, 0, 15 }, /* V */
1352+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
1353+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
1354+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
13521355 },
13531356 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
13541357 },
@@ -1358,9 +1361,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
13581361 .log2_chroma_w = 1,
13591362 .log2_chroma_h = 0,
13601363 .comp = {
1361− { 0, 1, 1, 0, 8 }, /* Y */
1362− { 1, 1, 1, 0, 8 }, /* U */
1363− { 2, 1, 1, 0, 8 }, /* V */
1364+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
1365+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
1366+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
13641367 },
13651368 .flags = AV_PIX_FMT_FLAG_PLANAR,
13661369 },
@@ -1370,9 +1373,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
13701373 .log2_chroma_w = 1,
13711374 .log2_chroma_h = 0,
13721375 .comp = {
1373− { 0, 1, 1, 0, 8 }, /* Y */
1374− { 1, 1, 1, 0, 8 }, /* U */
1375− { 2, 1, 1, 0, 8 }, /* V */
1376+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
1377+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
1378+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
13761379 },
13771380 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
13781381 },
@@ -1382,9 +1385,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
13821385 .log2_chroma_w = 1,
13831386 .log2_chroma_h = 0,
13841387 .comp = {
1385− { 0, 1, 1, 0, 9 }, /* Y */
1386− { 1, 1, 1, 0, 9 }, /* U */
1387− { 2, 1, 1, 0, 9 }, /* V */
1388+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
1389+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
1390+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
13881391 },
13891392 .flags = AV_PIX_FMT_FLAG_PLANAR,
13901393 },
@@ -1394,9 +1397,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
13941397 .log2_chroma_w = 1,
13951398 .log2_chroma_h = 0,
13961399 .comp = {
1397− { 0, 1, 1, 0, 9 }, /* Y */
1398− { 1, 1, 1, 0, 9 }, /* U */
1399− { 2, 1, 1, 0, 9 }, /* V */
1400+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
1401+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
1402+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
14001403 },
14011404 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
14021405 },
@@ -1406,9 +1409,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
14061409 .log2_chroma_w = 1,
14071410 .log2_chroma_h = 0,
14081411 .comp = {
1409− { 0, 1, 1, 0, 11 }, /* Y */
1410− { 1, 1, 1, 0, 11 }, /* U */
1411− { 2, 1, 1, 0, 11 }, /* V */
1412+ { 0, 2, 0, 0, 12, 1, 11, 1 }, /* Y */
1413+ { 1, 2, 0, 0, 12, 1, 11, 1 }, /* U */
1414+ { 2, 2, 0, 0, 12, 1, 11, 1 }, /* V */
14121415 },
14131416 .flags = AV_PIX_FMT_FLAG_PLANAR,
14141417 },
@@ -1418,9 +1421,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
14181421 .log2_chroma_w = 1,
14191422 .log2_chroma_h = 0,
14201423 .comp = {
1421− { 0, 1, 1, 0, 11 }, /* Y */
1422− { 1, 1, 1, 0, 11 }, /* U */
1423− { 2, 1, 1, 0, 11 }, /* V */
1424+ { 0, 2, 0, 0, 12, 1, 11, 1 }, /* Y */
1425+ { 1, 2, 0, 0, 12, 1, 11, 1 }, /* U */
1426+ { 2, 2, 0, 0, 12, 1, 11, 1 }, /* V */
14241427 },
14251428 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
14261429 },
@@ -1430,9 +1433,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
14301433 .log2_chroma_w = 1,
14311434 .log2_chroma_h = 0,
14321435 .comp = {
1433− { 0, 1, 1, 0, 13 }, /* Y */
1434− { 1, 1, 1, 0, 13 }, /* U */
1435− { 2, 1, 1, 0, 13 }, /* V */
1436+ { 0, 2, 0, 0, 14, 1, 13, 1 }, /* Y */
1437+ { 1, 2, 0, 0, 14, 1, 13, 1 }, /* U */
1438+ { 2, 2, 0, 0, 14, 1, 13, 1 }, /* V */
14361439 },
14371440 .flags = AV_PIX_FMT_FLAG_PLANAR,
14381441 },
@@ -1442,9 +1445,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
14421445 .log2_chroma_w = 1,
14431446 .log2_chroma_h = 0,
14441447 .comp = {
1445− { 0, 1, 1, 0, 13 }, /* Y */
1446− { 1, 1, 1, 0, 13 }, /* U */
1447− { 2, 1, 1, 0, 13 }, /* V */
1448+ { 0, 2, 0, 0, 14, 1, 13, 1 }, /* Y */
1449+ { 1, 2, 0, 0, 14, 1, 13, 1 }, /* U */
1450+ { 2, 2, 0, 0, 14, 1, 13, 1 }, /* V */
14481451 },
14491452 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
14501453 },
@@ -1454,9 +1457,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
14541457 .log2_chroma_w = 1,
14551458 .log2_chroma_h = 0,
14561459 .comp = {
1457− { 0, 1, 1, 0, 15 }, /* Y */
1458− { 1, 1, 1, 0, 15 }, /* U */
1459− { 2, 1, 1, 0, 15 }, /* V */
1460+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
1461+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
1462+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
14601463 },
14611464 .flags = AV_PIX_FMT_FLAG_PLANAR,
14621465 },
@@ -1466,9 +1469,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
14661469 .log2_chroma_w = 1,
14671470 .log2_chroma_h = 0,
14681471 .comp = {
1469− { 0, 1, 1, 0, 15 }, /* Y */
1470− { 1, 1, 1, 0, 15 }, /* U */
1471− { 2, 1, 1, 0, 15 }, /* V */
1472+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
1473+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
1474+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
14721475 },
14731476 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
14741477 },
@@ -1478,9 +1481,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
14781481 .log2_chroma_w = 0,
14791482 .log2_chroma_h = 0,
14801483 .comp = {
1481− { 0, 1, 1, 0, 15 }, /* Y */
1482− { 1, 1, 1, 0, 15 }, /* U */
1483− { 2, 1, 1, 0, 15 }, /* V */
1484+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
1485+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
1486+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
14841487 },
14851488 .flags = AV_PIX_FMT_FLAG_PLANAR,
14861489 },
@@ -1490,9 +1493,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
14901493 .log2_chroma_w = 0,
14911494 .log2_chroma_h = 0,
14921495 .comp = {
1493− { 0, 1, 1, 0, 15 }, /* Y */
1494− { 1, 1, 1, 0, 15 }, /* U */
1495− { 2, 1, 1, 0, 15 }, /* V */
1496+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* Y */
1497+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* U */
1498+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* V */
14961499 },
14971500 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
14981501 },
@@ -1502,9 +1505,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
15021505 .log2_chroma_w = 0,
15031506 .log2_chroma_h = 0,
15041507 .comp = {
1505− { 0, 1, 1, 0, 9 }, /* Y */
1506− { 1, 1, 1, 0, 9 }, /* U */
1507− { 2, 1, 1, 0, 9 }, /* V */
1508+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
1509+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
1510+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
15081511 },
15091512 .flags = AV_PIX_FMT_FLAG_PLANAR,
15101513 },
@@ -1514,9 +1517,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
15141517 .log2_chroma_w = 0,
15151518 .log2_chroma_h = 0,
15161519 .comp = {
1517− { 0, 1, 1, 0, 9 }, /* Y */
1518− { 1, 1, 1, 0, 9 }, /* U */
1519− { 2, 1, 1, 0, 9 }, /* V */
1520+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
1521+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* U */
1522+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* V */
15201523 },
15211524 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
15221525 },
@@ -1526,9 +1529,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
15261529 .log2_chroma_w = 0,
15271530 .log2_chroma_h = 0,
15281531 .comp = {
1529− { 0, 1, 1, 0, 8 }, /* Y */
1530− { 1, 1, 1, 0, 8 }, /* U */
1531− { 2, 1, 1, 0, 8 }, /* V */
1532+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
1533+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
1534+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
15321535 },
15331536 .flags = AV_PIX_FMT_FLAG_PLANAR,
15341537 },
@@ -1538,9 +1541,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
15381541 .log2_chroma_w = 0,
15391542 .log2_chroma_h = 0,
15401543 .comp = {
1541− { 0, 1, 1, 0, 8 }, /* Y */
1542− { 1, 1, 1, 0, 8 }, /* U */
1543− { 2, 1, 1, 0, 8 }, /* V */
1544+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
1545+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* U */
1546+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* V */
15441547 },
15451548 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
15461549 },
@@ -1550,9 +1553,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
15501553 .log2_chroma_w = 0,
15511554 .log2_chroma_h = 0,
15521555 .comp = {
1553− { 0, 1, 1, 0, 11 }, /* Y */
1554− { 1, 1, 1, 0, 11 }, /* U */
1555− { 2, 1, 1, 0, 11 }, /* V */
1556+ { 0, 2, 0, 0, 12, 1, 11, 1 }, /* Y */
1557+ { 1, 2, 0, 0, 12, 1, 11, 1 }, /* U */
1558+ { 2, 2, 0, 0, 12, 1, 11, 1 }, /* V */
15561559 },
15571560 .flags = AV_PIX_FMT_FLAG_PLANAR,
15581561 },
@@ -1562,9 +1565,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
15621565 .log2_chroma_w = 0,
15631566 .log2_chroma_h = 0,
15641567 .comp = {
1565− { 0, 1, 1, 0, 11 }, /* Y */
1566− { 1, 1, 1, 0, 11 }, /* U */
1567− { 2, 1, 1, 0, 11 }, /* V */
1568+ { 0, 2, 0, 0, 12, 1, 11, 1 }, /* Y */
1569+ { 1, 2, 0, 0, 12, 1, 11, 1 }, /* U */
1570+ { 2, 2, 0, 0, 12, 1, 11, 1 }, /* V */
15681571 },
15691572 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
15701573 },
@@ -1574,9 +1577,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
15741577 .log2_chroma_w = 0,
15751578 .log2_chroma_h = 0,
15761579 .comp = {
1577− { 0, 1, 1, 0, 13 }, /* Y */
1578− { 1, 1, 1, 0, 13 }, /* U */
1579− { 2, 1, 1, 0, 13 }, /* V */
1580+ { 0, 2, 0, 0, 14, 1, 13, 1 }, /* Y */
1581+ { 1, 2, 0, 0, 14, 1, 13, 1 }, /* U */
1582+ { 2, 2, 0, 0, 14, 1, 13, 1 }, /* V */
15801583 },
15811584 .flags = AV_PIX_FMT_FLAG_PLANAR,
15821585 },
@@ -1586,9 +1589,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
15861589 .log2_chroma_w = 0,
15871590 .log2_chroma_h = 0,
15881591 .comp = {
1589− { 0, 1, 1, 0, 13 }, /* Y */
1590− { 1, 1, 1, 0, 13 }, /* U */
1591− { 2, 1, 1, 0, 13 }, /* V */
1592+ { 0, 2, 0, 0, 14, 1, 13, 1 }, /* Y */
1593+ { 1, 2, 0, 0, 14, 1, 13, 1 }, /* U */
1594+ { 2, 2, 0, 0, 14, 1, 13, 1 }, /* V */
15921595 },
15931596 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR,
15941597 },
@@ -1614,8 +1617,8 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 19 unmodified lines
16141617 .name = "ya8",
16151618 .nb_components = 2,
16161619 .comp = {
1617− { 0, 1, 1, 0, 7 }, /* Y */
1618− { 0, 1, 2, 0, 7 }, /* A */
1620+ { 0, 2, 0, 0, 8, 1, 7, 1 }, /* Y */
1621+ { 0, 2, 1, 0, 8, 1, 7, 2 }, /* A */
16191622 },
16201623 .flags = AV_PIX_FMT_FLAG_ALPHA,
16211624 .alias = "gray8a",
@@ -1624,8 +1627,8 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 2 unmodified lines
16241627 .name = "ya16le",
16251628 .nb_components = 2,
16261629 .comp = {
1627− { 0, 3, 1, 0, 15 }, /* Y */
1628− { 0, 3, 3, 0, 15 }, /* A */
1630+ { 0, 4, 0, 0, 16, 3, 15, 1 }, /* Y */
1631+ { 0, 4, 2, 0, 16, 3, 15, 3 }, /* A */
16291632 },
16301633 .flags = AV_PIX_FMT_FLAG_ALPHA,
16311634 },
@@ -1633,8 +1636,8 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 1 unmodified line
16331636 .name = "ya16be",
16341637 .nb_components = 2,
16351638 .comp = {
1636− { 0, 3, 1, 0, 15 }, /* Y */
1637− { 0, 3, 3, 0, 15 }, /* A */
1639+ { 0, 4, 0, 0, 16, 3, 15, 1 }, /* Y */
1640+ { 0, 4, 2, 0, 16, 3, 15, 3 }, /* A */
16381641 },
16391642 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_ALPHA,
16401643 },
@@ -1648,9 +1651,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 7 unmodified lines
16481651 .log2_chroma_w = 0,
16491652 .log2_chroma_h = 0,
16501653 .comp = {
1651− { 2, 0, 1, 0, 7 }, /* R */
1652− { 0, 0, 1, 0, 7 }, /* G */
1653− { 1, 0, 1, 0, 7 }, /* B */
1654+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* R */
1655+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* G */
1656+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* B */
16541657 },
16551658 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
16561659 },
@@ -1660,9 +1663,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
16601663 .log2_chroma_w = 0,
16611664 .log2_chroma_h = 0,
16621665 .comp = {
1663− { 2, 1, 1, 0, 8 }, /* R */
1664− { 0, 1, 1, 0, 8 }, /* G */
1665− { 1, 1, 1, 0, 8 }, /* B */
1666+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* R */
1667+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* G */
1668+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* B */
16661669 },
16671670 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
16681671 },
@@ -1672,9 +1675,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
16721675 .log2_chroma_w = 0,
16731676 .log2_chroma_h = 0,
16741677 .comp = {
1675− { 2, 1, 1, 0, 8 }, /* R */
1676− { 0, 1, 1, 0, 8 }, /* G */
1677− { 1, 1, 1, 0, 8 }, /* B */
1678+ { 2, 2, 0, 0, 9, 1, 8, 1 }, /* R */
1679+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* G */
1680+ { 1, 2, 0, 0, 9, 1, 8, 1 }, /* B */
16781681 },
16791682 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
16801683 },
@@ -1684,9 +1687,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
16841687 .log2_chroma_w = 0,
16851688 .log2_chroma_h = 0,
16861689 .comp = {
1687− { 2, 1, 1, 0, 9 }, /* R */
1688− { 0, 1, 1, 0, 9 }, /* G */
1689− { 1, 1, 1, 0, 9 }, /* B */
1690+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* R */
1691+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* G */
1692+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* B */
16901693 },
16911694 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
16921695 },
@@ -1696,9 +1699,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
16961699 .log2_chroma_w = 0,
16971700 .log2_chroma_h = 0,
16981701 .comp = {
1699− { 2, 1, 1, 0, 9 }, /* R */
1700− { 0, 1, 1, 0, 9 }, /* G */
1701− { 1, 1, 1, 0, 9 }, /* B */
1702+ { 2, 2, 0, 0, 10, 1, 9, 1 }, /* R */
1703+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* G */
1704+ { 1, 2, 0, 0, 10, 1, 9, 1 }, /* B */
17021705 },
17031706 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
17041707 },
@@ -1708,9 +1711,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
17081711 .log2_chroma_w = 0,
17091712 .log2_chroma_h = 0,
17101713 .comp = {
1711− { 2, 1, 1, 0, 11 }, /* R */
1712− { 0, 1, 1, 0, 11 }, /* G */
1713− { 1, 1, 1, 0, 11 }, /* B */
1714+ { 2, 2, 0, 0, 12, 1, 11, 1 }, /* R */
1715+ { 0, 2, 0, 0, 12, 1, 11, 1 }, /* G */
1716+ { 1, 2, 0, 0, 12, 1, 11, 1 }, /* B */
17141717 },
17151718 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
17161719 },
@@ -1720,9 +1723,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
17201723 .log2_chroma_w = 0,
17211724 .log2_chroma_h = 0,
17221725 .comp = {
1723− { 2, 1, 1, 0, 11 }, /* R */
1724− { 0, 1, 1, 0, 11 }, /* G */
1725− { 1, 1, 1, 0, 11 }, /* B */
1726+ { 2, 2, 0, 0, 12, 1, 11, 1 }, /* R */
1727+ { 0, 2, 0, 0, 12, 1, 11, 1 }, /* G */
1728+ { 1, 2, 0, 0, 12, 1, 11, 1 }, /* B */
17261729 },
17271730 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
17281731 },
@@ -1732,9 +1735,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
17321735 .log2_chroma_w = 0,
17331736 .log2_chroma_h = 0,
17341737 .comp = {
1735− { 2, 1, 1, 0, 13 }, /* R */
1736− { 0, 1, 1, 0, 13 }, /* G */
1737− { 1, 1, 1, 0, 13 }, /* B */
1738+ { 2, 2, 0, 0, 14, 1, 13, 1 }, /* R */
1739+ { 0, 2, 0, 0, 14, 1, 13, 1 }, /* G */
1740+ { 1, 2, 0, 0, 14, 1, 13, 1 }, /* B */
17381741 },
17391742 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
17401743 },
@@ -1744,9 +1747,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
17441747 .log2_chroma_w = 0,
17451748 .log2_chroma_h = 0,
17461749 .comp = {
1747− { 2, 1, 1, 0, 13 }, /* R */
1748− { 0, 1, 1, 0, 13 }, /* G */
1749− { 1, 1, 1, 0, 13 }, /* B */
1750+ { 2, 2, 0, 0, 14, 1, 13, 1 }, /* R */
1751+ { 0, 2, 0, 0, 14, 1, 13, 1 }, /* G */
1752+ { 1, 2, 0, 0, 14, 1, 13, 1 }, /* B */
17501753 },
17511754 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
17521755 },
@@ -1756,9 +1759,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
17561759 .log2_chroma_w = 0,
17571760 .log2_chroma_h = 0,
17581761 .comp = {
1759− { 2, 1, 1, 0, 15 }, /* R */
1760− { 0, 1, 1, 0, 15 }, /* G */
1761− { 1, 1, 1, 0, 15 }, /* B */
1762+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* R */
1763+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* G */
1764+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* B */
17621765 },
17631766 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
17641767 },
@@ -1768,9 +1771,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
17681771 .log2_chroma_w = 0,
17691772 .log2_chroma_h = 0,
17701773 .comp = {
1771− { 2, 1, 1, 0, 15 }, /* R */
1772− { 0, 1, 1, 0, 15 }, /* G */
1773− { 1, 1, 1, 0, 15 }, /* B */
1774+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* R */
1775+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* G */
1776+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* B */
17741777 },
17751778 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB,
17761779 },
@@ -1780,10 +1783,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
17801783 .log2_chroma_w = 0,
17811784 .log2_chroma_h = 0,
17821785 .comp = {
1783− { 2, 0, 1, 0, 7 }, /* R */
1784− { 0, 0, 1, 0, 7 }, /* G */
1785− { 1, 0, 1, 0, 7 }, /* B */
1786− { 3, 0, 1, 0, 7 }, /* A */
1786+ { 2, 1, 0, 0, 8, 0, 7, 1 }, /* R */
1787+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* G */
1788+ { 1, 1, 0, 0, 8, 0, 7, 1 }, /* B */
1789+ { 3, 1, 0, 0, 8, 0, 7, 1 }, /* A */
17871790 },
17881791 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB |
17891792 AV_PIX_FMT_FLAG_ALPHA,
@@ -1794,10 +1797,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 4 unmodified lines
17941797 .log2_chroma_w = 0,
17951798 .log2_chroma_h = 0,
17961799 .comp = {
1797− { 2, 1, 1, 0, 15 }, /* R */
1798− { 0, 1, 1, 0, 15 }, /* G */
1799− { 1, 1, 1, 0, 15 }, /* B */
1800− { 3, 1, 1, 0, 15 }, /* A */
1800+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* R */
1801+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* G */
1802+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* B */
1803+ { 3, 2, 0, 0, 16, 1, 15, 1 }, /* A */
18011804 },
18021805 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB |
18031806 AV_PIX_FMT_FLAG_ALPHA,
@@ -1808,10 +1811,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 4 unmodified lines
18081811 .log2_chroma_w = 0,
18091812 .log2_chroma_h = 0,
18101813 .comp = {
1811− { 2, 1, 1, 0, 15 }, /* R */
1812− { 0, 1, 1, 0, 15 }, /* G */
1813− { 1, 1, 1, 0, 15 }, /* B */
1814− { 3, 1, 1, 0, 15 }, /* A */
1814+ { 2, 2, 0, 0, 16, 1, 15, 1 }, /* R */
1815+ { 0, 2, 0, 0, 16, 1, 15, 1 }, /* G */
1816+ { 1, 2, 0, 0, 16, 1, 15, 1 }, /* B */
1817+ { 3, 2, 0, 0, 16, 1, 15, 1 }, /* A */
18151818 },
18161819 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR |
18171820 AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA,
@@ -1828,9 +1831,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 10 unmodified lines
18281831 .log2_chroma_w = 0,
18291832 .log2_chroma_h = 0,
18301833 .comp = {
1831− { 0, 5, 1, 4, 11 }, /* X */
1832− { 0, 5, 3, 4, 11 }, /* Y */
1833− { 0, 5, 5, 4, 11 }, /* Z */
1834+ { 0, 6, 0, 4, 12, 5, 11, 1 }, /* X */
1835+ { 0, 6, 2, 4, 12, 5, 11, 3 }, /* Y */
1836+ { 0, 6, 4, 4, 12, 5, 11, 5 }, /* Z */
18341837 },
18351838 /*.flags = -- not used*/
18361839 },
@@ -1840,9 +1843,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
18401843 .log2_chroma_w = 0,
18411844 .log2_chroma_h = 0,
18421845 .comp = {
1843− { 0, 5, 1, 4, 11 }, /* X */
1844− { 0, 5, 3, 4, 11 }, /* Y */
1845− { 0, 5, 5, 4, 11 }, /* Z */
1846+ { 0, 6, 0, 4, 12, 5, 11, 1 }, /* X */
1847+ { 0, 6, 2, 4, 12, 5, 11, 3 }, /* Y */
1848+ { 0, 6, 4, 4, 12, 5, 11, 5 }, /* Z */
18461849 },
18471850 .flags = AV_PIX_FMT_FLAG_BE,
18481851 },
@@ -1852,9 +1855,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
18521855 .log2_chroma_w= 0, \
18531856 .log2_chroma_h= 0, \
18541857 .comp = { \
1855− {0,0,0,0,1}, \
1856− {0,0,0,0,3}, \
1857− {0,0,0,0,1}, \
1858+ {0,1,0,0,2,0,1,1},\
1859+ {0,1,0,0,4,0,3,1},\
1860+ {0,1,0,0,2,0,1,1},\
18581861 }, \
18591862
18601863 #define BAYER16_DESC_COMMON \
@@ -1862,9 +1865,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 1 unmodified line
18621865 .log2_chroma_w= 0, \
18631866 .log2_chroma_h= 0, \
18641867 .comp = { \
1865− {0,1,0,0, 3}, \
1866− {0,1,0,0, 7}, \
1867− {0,1,0,0, 3}, \
1868+ {0,2,0,0,4,1,3,1},\
1869+ {0,2,0,0,8,1,7,1},\
1870+ {0,2,0,0,4,1,3,1},\
18681871 }, \
18691872
18701873 [AV_PIX_FMT_BAYER_BGGR8] = {
@@ -1933,9 +1936,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 62 unmodified lines
19331936 .log2_chroma_w = 1,
19341937 .log2_chroma_h = 0,
19351938 .comp = {
1936− { 0, 0, 1, 0, 7 }, /* Y */
1937− { 1, 1, 1, 0, 7 }, /* U */
1938− { 1, 1, 2, 0, 7 }, /* V */
1939+ { 0, 1, 0, 0, 8, 0, 7, 1 }, /* Y */
1940+ { 1, 2, 0, 0, 8, 1, 7, 1 }, /* U */
1941+ { 1, 2, 1, 0, 8, 1, 7, 2 }, /* V */
19391942 },
19401943 .flags = AV_PIX_FMT_FLAG_PLANAR,
19411944 },
@@ -1945,9 +1948,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
19451948 .log2_chroma_w = 1,
19461949 .log2_chroma_h = 0,
19471950 .comp = {
1948− { 0, 1, 1, 0, 9 }, /* Y */
1949− { 1, 3, 1, 0, 9 }, /* U */
1950− { 1, 3, 3, 0, 9 }, /* V */
1951+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
1952+ { 1, 4, 0, 0, 10, 3, 9, 1 }, /* U */
1953+ { 1, 4, 2, 0, 10, 3, 9, 3 }, /* V */
19511954 },
19521955 .flags = AV_PIX_FMT_FLAG_PLANAR,
19531956 },
@@ -1957,9 +1960,9 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
19571960 .log2_chroma_w = 1,
19581961 .log2_chroma_h = 0,
19591962 .comp = {
1960− { 0, 1, 1, 0, 9 }, /* Y */
1961− { 1, 3, 1, 0, 9 }, /* U */
1962− { 1, 3, 3, 0, 9 }, /* V */
1963+ { 0, 2, 0, 0, 10, 1, 9, 1 }, /* Y */
1964+ { 1, 4, 0, 0, 10, 3, 9, 1 }, /* U */
1965+ { 1, 4, 2, 0, 10, 3, 9, 3 }, /* V */
19631966 },
19641967 .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_BE,
19651968 },
@@ -1981,10 +1984,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 15 unmodified lines
19811984 .log2_chroma_w = 0,
19821985 .log2_chroma_h = 0,
19831986 .comp = {
1984− { 0, 7, 3, 0, 15 }, /* Y */
1985− { 0, 7, 5, 0, 15 }, /* U */
1986− { 0, 7, 7, 0, 15 }, /* V */
1987− { 0, 7, 1, 0, 15 }, /* A */
1987+ { 0, 8, 2, 0, 16, 7, 15, 3 }, /* Y */
1988+ { 0, 8, 4, 0, 16, 7, 15, 5 }, /* U */
1989+ { 0, 8, 6, 0, 16, 7, 15, 7 }, /* V */
1990+ { 0, 8, 0, 0, 16, 7, 15, 1 }, /* A */
19881991 },
19891992 .flags = AV_PIX_FMT_FLAG_ALPHA,
19901993 },
@@ -1994,14 +1997,17 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { · 3 unmodified lines
19941997 .log2_chroma_w = 0,
19951998 .log2_chroma_h = 0,
19961999 .comp = {
1997− { 0, 7, 3, 0, 15 }, /* Y */
1998− { 0, 7, 5, 0, 15 }, /* U */
1999− { 0, 7, 7, 0, 15 }, /* V */
2000− { 0, 7, 1, 0, 15 }, /* A */
2000+ { 0, 8, 2, 0, 16, 7, 15, 3 }, /* Y */
2001+ { 0, 8, 4, 0, 16, 7, 15, 5 }, /* U */
2002+ { 0, 8, 6, 0, 16, 7, 15, 7 }, /* V */
2003+ { 0, 8, 0, 0, 16, 7, 15, 1 }, /* A */
20012004 },
20022005 .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_ALPHA,
20032006 },
20042007 };
2008+#if FF_API_PLUS1_MINUS1
2009+FF_ENABLE_DEPRECATION_WARNINGS
2010+#endif
20052011
20062012 static const char *color_range_names[AVCOL_RANGE_NB] = {
20072013 "unknown", "tv", "pc",
@@ -2082,7 +2088,7 @@ int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc) · 74 unmodified lines
20822088
20832089 for (c = 0; c < pixdesc->nb_components; c++) {
20842090 int s = c == 1 || c == 2 ? 0 : log2_pixels;
2085− bits += (pixdesc->comp[c].depth_minus1 + 1) << s;
2091+ bits += pixdesc->comp[c].depth << s;
20862092 }
20872093
20882094 return bits >> log2_pixels;
libavutil/pixdesc.h+18−6
@@ -26,6 +26,7 @@ · 25 unmodified lines
2626
2727 #include "attributes.h"
2828 #include "pixfmt.h"
29+#include "version.h"
2930
3031 typedef struct AVComponentDescriptor {
3132 /**
@@ -34,16 +35,16 @@ typedef struct AVComponentDescriptor { · 2 unmodified lines
3435 int plane;
3536
3637 /**
37− * Number of elements between 2 horizontally consecutive pixels minus 1.
38+ * Number of elements between 2 horizontally consecutive pixels.
3839 * Elements are bits for bitstream formats, bytes otherwise.
3940 */
40− int step_minus1;
41+ int step;
4142
4243 /**
43− * Number of elements before the component of the first pixel plus 1.
44+ * Number of elements before the component of the first pixel.
4445 * Elements are bits for bitstream formats, bytes otherwise.
4546 */
46− int offset_plus1;
47+ int offset;
4748
4849 /**
4950 * Number of least significant bits that must be shifted away
@@ -52,9 +53,20 @@ typedef struct AVComponentDescriptor { · 2 unmodified lines
5253 int shift;
5354
5455 /**
55− * Number of bits in the component minus 1.
56+ * Number of bits in the component.
5657 */
57− int depth_minus1;
58+ int depth;
59+
60+#if FF_API_PLUS1_MINUS1
61+ /** deprecated, use step instead */
62+ attribute_deprecated int step_minus1;
63+
64+ /** deprecated, use depth instead */
65+ attribute_deprecated int depth_minus1;
66+
67+ /** deprecated, use offset instead */
68+ attribute_deprecated int offset_plus1;
69+#endif
5870 } AVComponentDescriptor;
5971
6072 /**
libavutil/version.h+4−0
@@ -105,6 +105,10 @@ · 104 unmodified lines
105105 #ifndef FF_API_FRAME_QP
106106 #define FF_API_FRAME_QP (LIBAVUTIL_VERSION_MAJOR < 56)
107107 #endif
108+#ifndef FF_API_PLUS1_MINUS1
109+#define FF_API_PLUS1_MINUS1 (LIBAVUTIL_VERSION_MAJOR < 56)
110+#endif
111+
108112
109113 /**
110114 * @}
libswscale/output.c+2−2
@@ -1845,7 +1845,7 @@ yuv2gbrp_full_X_c(SwsContext *c, const int16_t *lumFilter, · 1844 unmodified lines
18451845 int i;
18461846 int hasAlpha = (desc->flags & AV_PIX_FMT_FLAG_ALPHA) && alpSrc;
18471847 uint16_t **dest16 = (uint16_t**)dest;
1848− int SH = 22 + 7 - desc->comp[0].depth_minus1;
1848+ int SH = 22 + 8 - desc->comp[0].depth;
18491849 int A = 0; // init to silence warning
18501850
18511851 for (i = 0; i < dstW; i++) {
@@ -2073,7 +2073,7 @@ av_cold void ff_sws_init_output_funcs(SwsContext *c, · 221 unmodified lines
20732073 *yuv2planeX = isBE(dstFormat) ? yuv2planeX_16BE_c : yuv2planeX_16LE_c;
20742074 *yuv2plane1 = isBE(dstFormat) ? yuv2plane1_16BE_c : yuv2plane1_16LE_c;
20752075 } else if (is9_OR_10BPS(dstFormat)) {
2076− if (desc->comp[0].depth_minus1 == 8) {
2076+ if (desc->comp[0].depth == 9) {
20772077 *yuv2planeX = isBE(dstFormat) ? yuv2planeX_9BE_c : yuv2planeX_9LE_c;
20782078 *yuv2plane1 = isBE(dstFormat) ? yuv2plane1_9BE_c : yuv2plane1_9LE_c;
20792079 } else if (desc->comp[0].depth_minus1 == 9) {
libswscale/swscale.c+3−3
@@ -87,7 +87,7 @@ static void hScale16To19_c(SwsContext *c, int16_t *_dst, int dstW, · 86 unmodified lines
8787 int i;
8888 int32_t *dst = (int32_t *) _dst;
8989 const uint16_t *src = (const uint16_t *) _src;
90− int bits = desc->comp[0].depth_minus1;
90+ int bits = desc->comp[0].depth - 1;
9191 int sh = bits - 4;
9292
9393 if((isAnyRGB(c->srcFormat) || c->srcFormat==AV_PIX_FMT_PAL8) && desc->comp[0].depth_minus1<15)
@@ -113,7 +113,7 @@ static void hScale16To15_c(SwsContext *c, int16_t *dst, int dstW, · 19 unmodified lines
113113 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(c->srcFormat);
114114 int i;
115115 const uint16_t *src = (const uint16_t *) _src;
116− int sh = desc->comp[0].depth_minus1;
116+ int sh = desc->comp[0].depth - 1;
117117
118118 if(sh<15)
119119 sh= isAnyRGB(c->srcFormat) || c->srcFormat==AV_PIX_FMT_PAL8 ? 13 : desc->comp[0].depth_minus1;
@@ -796,7 +796,7 @@ static int swscale(SwsContext *c, const uint8_t *src[], · 676 unmodified lines
796796 if (is16BPS(dstFormat) || isNBPS(dstFormat)) {
797797 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(dstFormat);
798798 fillPlane16(dst[3], dstStride[3], length, height, lastDstY,
799− 1, desc->comp[3].depth_minus1,
799+ 1, desc->comp[3].depth,
800800 isBE(dstFormat));
801801 } else
802802 fillPlane(dst[3], dstStride[3], length, height, lastDstY, 255);
libswscale/swscale_internal.h+3−3
@@ -651,14 +651,14 @@ static av_always_inline int is16BPS(enum AVPixelFormat pix_fmt) · 650 unmodified lines
651651 {
652652 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
653653 av_assert0(desc);
654− return desc->comp[0].depth_minus1 == 15;
654+ return desc->comp[0].depth == 16;
655655 }
656656
657657 static av_always_inline int is9_OR_10BPS(enum AVPixelFormat pix_fmt)
658658 {
659659 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
660660 av_assert0(desc);
661− return desc->comp[0].depth_minus1 >= 8 && desc->comp[0].depth_minus1 <= 13;
661+ return desc->comp[0].depth >= 9 && desc->comp[0].depth <= 14;
662662 }
663663
664664 #define isNBPS(x) is9_OR_10BPS(x)
@@ -928,7 +928,7 @@ static inline void fillPlane16(uint8_t *plane, int stride, int width, int height · 263 unmodified lines
928928 {
929929 int i, j;
930930 uint8_t *ptr = plane + stride * y;
931− int v = alpha ? 0xFFFF>>(15-bits) : (1<<bits);
931+ int v = alpha ? 0xFFFF>>(16-bits) : (1<<(bits-1));
932932 for (i = 0; i < height; i++) {
933933 #define FILL(wfunc) \
934934 for (j = 0; j < width; j++) {\
libswscale/swscale_unscaled.c+5−5
@@ -1417,7 +1417,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[], · 1416 unmodified lines
14171417 if (!src[plane] || (plane == 1 && !src[2])) {
14181418 if (is16BPS(c->dstFormat) || isNBPS(c->dstFormat)) {
14191419 fillPlane16(dst[plane], dstStride[plane], length, height, y,
1420− plane == 3, desc_dst->comp[plane].depth_minus1,
1420+ plane == 3, desc_dst->comp[plane].depth,
14211421 isBE(c->dstFormat));
14221422 } else {
14231423 fillPlane(dst[plane], dstStride[plane], length, height, y,
@@ -1427,8 +1427,8 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[], · 3 unmodified lines
14271427 if(isNBPS(c->srcFormat) || isNBPS(c->dstFormat)
14281428 || (is16BPS(c->srcFormat) != is16BPS(c->dstFormat))
14291429 ) {
1430− const int src_depth = desc_src->comp[plane].depth_minus1 + 1;
1431− const int dst_depth = desc_dst->comp[plane].depth_minus1 + 1;
1430+ const int src_depth = desc_src->comp[plane].depth;
1431+ const int dst_depth = desc_dst->comp[plane].depth;
14321432 const uint16_t *srcPtr2 = (const uint16_t *) srcPtr;
14331433 uint16_t *dstPtr2 = (uint16_t*)dstPtr;
14341434
@@ -1543,7 +1543,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[], · 108 unmodified lines
15431543 } else {
15441544 if (is16BPS(c->srcFormat) && is16BPS(c->dstFormat))
15451545 length *= 2;
1546− else if (!desc_src->comp[0].depth_minus1)
1546+ else if (desc_src->comp[0].depth == 1)
15471547 length >>= 3; // monowhite/black
15481548 for (i = 0; i < height; i++) {
15491549 memcpy(dstPtr, srcPtr, length);
@@ -1648,7 +1648,7 @@ void ff_get_unscaled_swscale(SwsContext *c) · 98 unmodified lines
16481648 dstFormat == AV_PIX_FMT_BGRA64LE || dstFormat == AV_PIX_FMT_BGRA64BE))
16491649 c->swscale = planarRgb16ToRgb16Wrapper;
16501650
1651− if (av_pix_fmt_desc_get(srcFormat)->comp[0].depth_minus1 == 7 &&
1651+ if (av_pix_fmt_desc_get(srcFormat)->comp[0].depth == 8 &&
16521652 isPackedRGB(srcFormat) && dstFormat == AV_PIX_FMT_GBRP)
16531653 c->swscale = rgbToPlanarRgbWrapper;
16541654
libswscale/utils.c+2−2
@@ -1335,10 +1335,10 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, · 1334 unmodified lines
13351335
13361336 FF_ALLOCZ_OR_GOTO(c, c->formatConvBuffer, FFALIGN(srcW*2+78, 16) * 2, fail);
13371337
1338− c->srcBpc = 1 + desc_src->comp[0].depth_minus1;
1338+ c->srcBpc = desc_src->comp[0].depth;
13391339 if (c->srcBpc < 8)
13401340 c->srcBpc = 8;
1341− c->dstBpc = 1 + desc_dst->comp[0].depth_minus1;
1341+ c->dstBpc = desc_dst->comp[0].depth;
13421342 if (c->dstBpc < 8)
13431343 c->dstBpc = 8;
13441344 if (isAnyRGB(srcFormat) || srcFormat == AV_PIX_FMT_PAL8)

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