diff options
author | John Stebbins <[email protected]> | 2019-03-15 17:35:12 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-04-08 07:44:09 -0600 |
commit | 219b2540dc3ae2bb80f634b7df25f228f3a679ed (patch) | |
tree | bd06a7b6945343399c08c35f1539538eb1c2f5e1 /libhb/common.c | |
parent | be581837296bc947df6ffe83dbabde137e92e039 (diff) |
libhb: change preset key to VideoColorMatrixCodeOverride
Reserve VideoColorMatrixCode for doing color conversion.
VideoColorMatrixCodeOverride sets color flags without transforming video
frame colors.
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c index 761862911..fa19a9435 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -3791,6 +3791,9 @@ static void job_setup(hb_job_t * job, hb_title_t * title) job->color_transfer = title->color_transfer; job->color_matrix = title->color_matrix; job->color_range = title->color_range; + job->color_prim_override = HB_COLR_PRI_UNDEF; + job->color_transfer_override = HB_COLR_TRA_UNDEF; + job->color_matrix_override = HB_COLR_MAT_UNDEF; job->mux = HB_MUX_MP4; @@ -3809,6 +3812,30 @@ static void job_setup(hb_job_t * job, hb_title_t * title) #endif } +int hb_output_color_prim(hb_job_t * job) +{ + if (job->color_prim_override != HB_COLR_PRI_UNDEF) + return job->color_prim_override; + else + return job->color_prim; +} + +int hb_output_color_transfer(hb_job_t * job) +{ + if (job->color_transfer_override != HB_COLR_TRA_UNDEF) + return job->color_transfer_override; + else + return job->color_transfer; +} + +int hb_output_color_matrix(hb_job_t * job) +{ + if (job->color_matrix_override != HB_COLR_MAT_UNDEF) + return job->color_matrix_override; + else + return job->color_matrix; +} + static void job_clean( hb_job_t * job ) { if (job) |