Skip to content

Commit

Permalink
HEVCエンコードで入力がfull rangeの場合にfull rangeのフラグを設定するように。 ( #93 )
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Nov 7, 2023
1 parent d584110 commit 56d9e04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions VCECore/vce_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2261,6 +2261,9 @@ RGY_ERR VCECore::initEncoder(VCEParam *prm) {
if (prm->deblockFilter.has_value()) {
m_params.SetParam(AMF_VIDEO_ENCODER_HEVC_DE_BLOCKING_FILTER_DISABLE, !prm->deblockFilter.value());
}
if (m_encVUI.colorrange == RGY_COLORRANGE_FULL) {
m_params.SetParam(AMF_VIDEO_ENCODER_HEVC_NOMINAL_RANGE, (amf_int64)AMF_VIDEO_ENCODER_HEVC_NOMINAL_RANGE_FULL);
}

m_params.SetParam(AMF_VIDEO_ENCODER_HEVC_INSERT_HEADER, true);
} else if (prm->codec == RGY_CODEC_AV1) {
Expand Down

0 comments on commit 56d9e04

Please sign in to comment.