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/enc_qsv.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/enc_qsv.c')
-rw-r--r-- | libhb/enc_qsv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index 53b87eb3b..1ad8223ff 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -714,9 +714,9 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) pv->param.videoParam->AsyncDepth = job->qsv.async_depth; // set and enable colorimetry (video signal information) - pv->param.videoSignalInfo.ColourPrimaries = job->color_prim; - pv->param.videoSignalInfo.TransferCharacteristics = job->color_transfer; - pv->param.videoSignalInfo.MatrixCoefficients = job->color_matrix; + pv->param.videoSignalInfo.ColourPrimaries = hb_output_color_prim(job); + pv->param.videoSignalInfo.TransferCharacteristics = hb_output_color_transfer(job); + pv->param.videoSignalInfo.MatrixCoefficients = hb_output_color_matrix(job); pv->param.videoSignalInfo.ColourDescriptionPresent = 1; // parse user-specified encoder options, if present @@ -764,9 +764,9 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) // reload colorimetry in case values were set in encoder_options if (pv->param.videoSignalInfo.ColourDescriptionPresent) { - job->color_prim = pv->param.videoSignalInfo.ColourPrimaries; - job->color_transfer = pv->param.videoSignalInfo.TransferCharacteristics; - job->color_matrix = pv->param.videoSignalInfo.MatrixCoefficients; + job->color_prim_override = pv->param.videoSignalInfo.ColourPrimaries; + job->color_transfer_override = pv->param.videoSignalInfo.TransferCharacteristics; + job->color_matrix_override = pv->param.videoSignalInfo.MatrixCoefficients; } // sanitize values that may exceed the Media SDK variable size |