diff options
author | Damiano Galassi <[email protected]> | 2021-01-25 09:34:23 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2021-01-25 09:34:23 +0100 |
commit | 818dbfe932eb2c6c484bd09fee04c5748963a1be (patch) | |
tree | 13dcd86d190ab72ca2c047a93142c63b283603fd /libhb/common.c | |
parent | c543768a0874e7d896d9815c7a204c0c28d6b0f8 (diff) |
libhb: revert part of the previous colormatrix override commit.
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 a270f03e0..cda3683ee 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -3841,6 +3841,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; @@ -3859,6 +3862,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) |