aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pixdesc.c
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2024-03-29 00:42:10 +0200
committerJan Ekström <jeebjp@gmail.com>2024-04-03 21:31:35 +0300
commit29561c8e2d4ccecaa93afcaed73678e3f6011b0a (patch)
tree4b01d497d51f1fe5a03a98c7d1e46e6f196cbe5f /libavutil/pixdesc.c
parent924402f783d7d056eefa5c065504fbae2731235b (diff)
downloadffmpeg-29561c8e2d4ccecaa93afcaed73678e3f6011b0a.tar.gz
avutil/pix{desc,fmt}: add new matrix coefficients from H.273 v3
* SMPTE ST 2128 IPT-C2 defines the coefficients utilized in DoVi Profile 5. Profile 5 can thus now be represented in VUI as {AVCOL_RANGE_JPEG, AVCOL_PRI_BT2020, AVCOL_TRC_SMPTE2084, AVCOL_SPC_IPT_C2, AVCHROMA_LOC_LEFT} (although other chroma sample locations are allowed). AVCOL_TRC_SMPTE2084 should in this case be interpreted as 'PQ with reshaping'. * YCgCo-Re and YCgCo-Ro define the bitexact YCgCo-R, where the number of bits added to a source RGB bit depth is 2 (i.e., even) and 1 (i.e., odd), respectively.
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r--libavutil/pixdesc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index 9c708520b1..1c0bcf2232 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -2854,6 +2854,9 @@ static const char * const color_space_names[] = {
[AVCOL_SPC_CHROMA_DERIVED_NCL] = "chroma-derived-nc",
[AVCOL_SPC_CHROMA_DERIVED_CL] = "chroma-derived-c",
[AVCOL_SPC_ICTCP] = "ictcp",
+ [AVCOL_SPC_IPT_C2] = "ipt-c2",
+ [AVCOL_SPC_YCGCO_RE] = "ycgco-re",
+ [AVCOL_SPC_YCGCO_RO] = "ycgco-ro",
};
static const char * const chroma_location_names[] = {