diff options
author | Damiano Galassi <[email protected]> | 2021-01-24 17:16:19 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2021-01-24 17:16:19 +0100 |
commit | 0ec5e726dce7603f8389fa770d67db323167df80 (patch) | |
tree | a26cb3facb607a30bd4d92254a9bb4a4420ad05b /libhb/hb_json.c | |
parent | 781749e9634b7fd4468d1c456c0059f80c06a404 (diff) |
libhb: change the color-matrix cli option behavior. Set the color info at the begin of the pipeline. Fix a typo in the preset key that prevented it from working.
Diffstat (limited to 'libhb/hb_json.c')
-rw-r--r-- | libhb/hb_json.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libhb/hb_json.c b/libhb/hb_json.c index 3a40205a6..829b7fb01 100644 --- a/libhb/hb_json.c +++ b/libhb/hb_json.c @@ -672,21 +672,6 @@ hb_dict_t* hb_job_to_dict( const hb_job_t * job ) hb_value_int(job->color_transfer)); hb_dict_set(video_dict, "ColorMatrix", hb_value_int(job->color_matrix)); - if (job->color_prim_override != HB_COLR_PRI_UNDEF) - { - hb_dict_set(video_dict, "ColorPrimariesOverride", - hb_value_int(job->color_prim_override)); - } - if (job->color_transfer_override != HB_COLR_TRA_UNDEF) - { - hb_dict_set(video_dict, "ColorTransferOverride", - hb_value_int(job->color_transfer_override)); - } - if (job->color_matrix_override != HB_COLR_MAT_UNDEF) - { - hb_dict_set(video_dict, "ColorMatrixOverride", - hb_value_int(job->color_matrix_override)); - } if (job->vquality > HB_INVALID_VIDEO_QUALITY) { @@ -1059,13 +1044,11 @@ hb_job_t* hb_dict_to_job( hb_handle_t * h, hb_dict_t *dict ) // TwoPass, Turbo, // ColorFormat, ColorRange, // ColorPrimaries, ColorTransfer, ColorMatrix, - // ColorPrimariesOverride, ColorTransferOverride, ColorMatrixOverride, // QSV {Decode, AsyncDepth}} "s:{s:o, s?F, s?i, s?s, s?s, s?s, s?s, s?s," " s?b, s?b," " s?i, s?i," " s?i, s?i, s?i," - " s?i, s?i, s?i," " s?{s?b, s?i}}," // Audio {CopyMask, FallbackEncoder, AudioList} "s?{s?o, s?o, s?o}," @@ -1113,9 +1096,6 @@ hb_job_t* hb_dict_to_job( hb_handle_t * h, hb_dict_t *dict ) "ColorPrimaries", unpack_i(&job->color_prim), "ColorTransfer", unpack_i(&job->color_transfer), "ColorMatrix", unpack_i(&job->color_matrix), - "ColorPrimariesOverride", unpack_i(&job->color_prim_override), - "ColorTransferOverride", unpack_i(&job->color_transfer_override), - "ColorMatrixOverride", unpack_i(&job->color_matrix_override), "QSV", "Decode", unpack_b(&job->qsv.decode), "AsyncDepth", unpack_i(&job->qsv.async_depth), |