summaryrefslogtreecommitdiffstats
path: root/libhb/encx264.c
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-11-25 11:42:01 +0100
committerBradley Sepos <[email protected]>2016-12-21 01:16:29 -0500
commita920bf446a6fe5eba43656ed3807e25ee4691a4e (patch)
treee52aa3dc2b346293038dd18894bddcbe605d5d61 /libhb/encx264.c
parent71079db99f4c2b02d45d229bee84907fb814de0b (diff)
libhb: add new color tags for Bt 2020 and SMPTE ST 2084
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r--libhb/encx264.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c
index d5adfdd10..f5b587277 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -369,13 +369,20 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
/* set up the VUI color model & gamma to match what the COLR atom
* set in muxmp4.c says. See libhb/muxmp4.c for notes. */
- if( job->color_matrix_code == 4 )
+ if( job->color_matrix_code == 5 )
{
// Custom
param.vui.i_colorprim = job->color_prim;
param.vui.i_transfer = job->color_transfer;
param.vui.i_colmatrix = job->color_matrix;
}
+ else if( job->color_matrix_code == 4 )
+ {
+ // ITU BT.2020 UHD content
+ param.vui.i_colorprim = HB_COLR_PRI_BT2020;
+ param.vui.i_transfer = HB_COLR_TRA_BT709;
+ param.vui.i_colmatrix = HB_COLR_MAT_BT2020_NCL;
+ }
else if( job->color_matrix_code == 3 )
{
// ITU BT.709 HD content