diff options
author | Damiano Galassi <[email protected]> | 2016-11-25 11:42:01 +0100 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2016-12-21 01:16:29 -0500 |
commit | a920bf446a6fe5eba43656ed3807e25ee4691a4e (patch) | |
tree | e52aa3dc2b346293038dd18894bddcbe605d5d61 /libhb/decavcodec.c | |
parent | 71079db99f4c2b02d45d229bee84907fb814de0b (diff) |
libhb: add new color tags for Bt 2020 and SMPTE ST 2084
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r-- | libhb/decavcodec.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index ae5544158..8a12b620d 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1783,6 +1783,8 @@ static int get_color_prim(int color_primaries, hb_geometry_t geometry, hb_ration case AVCOL_PRI_SMPTE170M: case AVCOL_PRI_SMPTE240M: return HB_COLR_PRI_SMPTEC; + case AVCOL_PRI_BT2020: + return HB_COLR_PRI_BT2020; default: { if ((geometry.width >= 1280 || geometry.height >= 720)|| @@ -1805,6 +1807,8 @@ static int get_color_transfer(int color_trc) { case AVCOL_TRC_SMPTE240M: return HB_COLR_TRA_SMPTE240M; + case AVCOL_TRC_SMPTEST2084: + return HB_COLR_TRA_SMPTEST2084; default: // ITU BT.601, BT.709, anything else return HB_COLR_TRA_BT709; @@ -1824,6 +1828,10 @@ static int get_color_matrix(int colorspace, hb_geometry_t geometry) return HB_COLR_MAT_SMPTE170M; case AVCOL_SPC_SMPTE240M: return HB_COLR_MAT_SMPTE240M; + case AVCOL_SPC_BT2020_NCL: + return HB_COLR_MAT_BT2020_NCL; + case AVCOL_SPC_BT2020_CL: + return HB_COLR_MAT_BT2020_CL; default: { if ((geometry.width >= 1280 || geometry.height >= 720)|| |