This byte represents 4 reserved bits followed by 4 alpha_channel_type bits. alpha_channel_type currently has 3 differents defined values: 0 (no alpha), 1 (8b alpha), and 2 (16b alpha), all the other values are reserved. The 4 initial reserved bits are expected to be 0.
Showing the changes to libavcodec (1 of 17 files). Show all
Unified · Split
| @@ -775,15 +775,7 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 774 unmodified lines | |||
| 775 | pict->color_trc, valid_trc, 0); | 775 | pict->color_trc, valid_trc, 0); |
| 776 | *buf++ = int_from_list_or_default(avctx, "frame colorspace", | 776 | *buf++ = int_from_list_or_default(avctx, "frame colorspace", |
| 777 | pict->colorspace, valid_colorspace, 0); | 777 | pict->colorspace, valid_colorspace, 0); |
| 778 | if (avctx->profile >= AV_PROFILE_PRORES_4444) { | 778 | *buf++ = ctx->need_alpha ? 0x2 /* 16-bit alpha */ : 0; |
| 779 | if (avctx->pix_fmt == AV_PIX_FMT_YUV444P10) { | ||
| 780 | *buf++ = 0xA0;/* src b64a and no alpha */ | ||
| 781 | } else { | ||
| 782 | *buf++ = 0xA2;/* src b64a and 16b alpha */ | ||
| 783 | } | ||
| 784 | } else { | ||
| 785 | *buf++ = 32;/* src v210 and no alpha */ | ||
| 786 | } | ||
| 787 | *buf++ = 0; /* reserved */ | 779 | *buf++ = 0; /* reserved */ |
| 788 | *buf++ = 3; /* luma and chroma matrix present */ | 780 | *buf++ = 3; /* luma and chroma matrix present */ |
| 789 | 781 | ||