Skip to content

Commit

Permalink
--vpp-colorspaceの調整。 ( #134 )
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed May 14, 2023
1 parent 5aa31b7 commit 8b6c49c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion QSVPipeline/rgy_filter_colorspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,16 @@ RGY_ERR ColorspaceOpCtrl::setHDR2SDR(const VideoVUIInfo &in, const VideoVUIInfo
if (csp_to2.matrix == RGY_MATRIX_UNSPECIFIED) {
csp_to2 = csp_to2.to(RGY_MATRIX_BT709).to(RGY_TRANSFER_BT709).to(RGY_PRIM_BT709);
}
const auto csp_from2 = csp_to2.to(RGY_PRIM_BT2020).to(RGY_TRANSFER_LINEAR).to(RGY_MATRIX_RGB);
auto csp_from2 = csp_to1;
if (csp_from2.matrix == RGY_MATRIX_UNSPECIFIED) {
csp_from2 = csp_from2.to(RGY_MATRIX_RGB);
}
if (csp_from2.transfer == RGY_TRANSFER_UNSPECIFIED) {
csp_from2 = csp_from2.to(RGY_TRANSFER_LINEAR);
}
if (csp_from2.transfer == RGY_PRIM_UNSPECIFIED) {
csp_from2 = csp_from2.to(RGY_PRIM_BT2020);
}
CHECK(setPath(csp_from2, csp_to2, sdr_source_peak, approx_gamma, scene_ref, height));
return RGY_ERR_NONE;
}
Expand Down

0 comments on commit 8b6c49c

Please sign in to comment.