History

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.

Jan Ekström committed 2 years ago

Commit 29561c81 parent 924402f4 files · +11 −1Browse files

Unified · Split

4 files
  1. doc/APIchanges +4 −0
  2. libavutil/pixdesc.c +3 −0
  3. libavutil/pixfmt.h +3 −0
  4. libavutil/version.h +1 −1
doc/APIchanges+4−0
@@ -2,6 +2,10 @@ The last version increases of all libraries were on 2024-03-07 · 1 unmodified line
2 2
3API changes, most recent first:3API changes, most recent first:
4 4
52024-04-03 - xxxxxxxxxx - lavu 59.13.100 - pixfmt.h
6 Add AVCOL_SPC_IPT_C2, AVCOL_SPC_YCGCO_RE and AVCOL_SPC_YCGCO_RO
7 to map new matrix coefficients defined by H.273 v3.
8
52024-04-xx - xxxxxxxxxx - lavu 59.12.100 - dovi_meta.h92024-04-xx - xxxxxxxxxx - lavu 59.12.100 - dovi_meta.h
6 Add AVDOVIMetadata.ext_block_{offset,size}, AVDOVIMetadata.num_ext_blocks,10 Add AVDOVIMetadata.ext_block_{offset,size}, AVDOVIMetadata.num_ext_blocks,
7 AVDOVIDmData and AVDOVIDmLevel{1..6,8..11,254..255}, av_dovi_get_ext()11 AVDOVIDmData and AVDOVIDmLevel{1..6,8..11,254..255}, av_dovi_get_ext()
libavutil/pixdesc.c+3−0
@@ -2854,6 +2854,9 @@ static const char * const color_space_names[] = { · 2853 unmodified lines
2854 [AVCOL_SPC_CHROMA_DERIVED_NCL] = "chroma-derived-nc",2854 [AVCOL_SPC_CHROMA_DERIVED_NCL] = "chroma-derived-nc",
2855 [AVCOL_SPC_CHROMA_DERIVED_CL] = "chroma-derived-c",2855 [AVCOL_SPC_CHROMA_DERIVED_CL] = "chroma-derived-c",
2856 [AVCOL_SPC_ICTCP] = "ictcp",2856 [AVCOL_SPC_ICTCP] = "ictcp",
2857 [AVCOL_SPC_IPT_C2] = "ipt-c2",
2858 [AVCOL_SPC_YCGCO_RE] = "ycgco-re",
2859 [AVCOL_SPC_YCGCO_RO] = "ycgco-ro",
2857};2860};
2858 2861
2859static const char * const chroma_location_names[] = {2862static const char * const chroma_location_names[] = {
libavutil/pixfmt.h+3−0
@@ -623,6 +623,9 @@ enum AVColorSpace { · 622 unmodified lines
623 AVCOL_SPC_CHROMA_DERIVED_NCL = 12, ///< Chromaticity-derived non-constant luminance system623 AVCOL_SPC_CHROMA_DERIVED_NCL = 12, ///< Chromaticity-derived non-constant luminance system
624 AVCOL_SPC_CHROMA_DERIVED_CL = 13, ///< Chromaticity-derived constant luminance system624 AVCOL_SPC_CHROMA_DERIVED_CL = 13, ///< Chromaticity-derived constant luminance system
625 AVCOL_SPC_ICTCP = 14, ///< ITU-R BT.2100-0, ICtCp625 AVCOL_SPC_ICTCP = 14, ///< ITU-R BT.2100-0, ICtCp
626 AVCOL_SPC_IPT_C2 = 15, ///< SMPTE ST 2128, IPT-C2
627 AVCOL_SPC_YCGCO_RE = 16, ///< YCgCo-R, even addition of bits
628 AVCOL_SPC_YCGCO_RO = 17, ///< YCgCo-R, odd addition of bits
626 AVCOL_SPC_NB ///< Not part of ABI629 AVCOL_SPC_NB ///< Not part of ABI
627};630};
628 631
libavutil/version.h+1−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
79 */79 */
80 80
81#define LIBAVUTIL_VERSION_MAJOR 5981#define LIBAVUTIL_VERSION_MAJOR 59
82#define LIBAVUTIL_VERSION_MINOR 1282#define LIBAVUTIL_VERSION_MINOR 13
83#define LIBAVUTIL_VERSION_MICRO 10083#define LIBAVUTIL_VERSION_MICRO 100
84 84
85#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \85#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \

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