diff options
author | Pengfei Qu <Pengfei.Qu@intel.com> | 2016-08-23 10:07:46 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2016-08-23 11:20:51 +0800 |
commit | be8f4d39d393baca0b19e7b8097079d2e703c8fb (patch) | |
tree | 9a14bfc4430a65c4dd23494ce1227926c59f118d | |
parent | ce6fc460d6047633cace3dc43df532708c1eb021 (diff) |
HEVC ENC:set the initial QP threshold to avoid the low quality in the first GOP
Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
(cherry picked from commit 76bedafc8141224c882281c7bf7c1cd77c3c128c)
-rw-r--r-- | src/gen9_mfc_hevc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gen9_mfc_hevc.c b/src/gen9_mfc_hevc.c index 05682ed..b3ee327 100644 --- a/src/gen9_mfc_hevc.c +++ b/src/gen9_mfc_hevc.c @@ -2333,9 +2333,9 @@ static void intel_hcpe_brc_init(struct encode_state *encode_state, mfc_context->bit_rate_control_context[HEVC_SLICE_I].QpPrimeY = mfc_context->bit_rate_control_context[HEVC_SLICE_P].QpPrimeY; mfc_context->bit_rate_control_context[HEVC_SLICE_B].QpPrimeY = mfc_context->bit_rate_control_context[HEVC_SLICE_I].QpPrimeY; - BRC_CLIP(mfc_context->bit_rate_control_context[HEVC_SLICE_I].QpPrimeY, 1, 51); - BRC_CLIP(mfc_context->bit_rate_control_context[HEVC_SLICE_P].QpPrimeY, 1, 51); - BRC_CLIP(mfc_context->bit_rate_control_context[HEVC_SLICE_B].QpPrimeY, 1, 51); + BRC_CLIP(mfc_context->bit_rate_control_context[HEVC_SLICE_I].QpPrimeY, 1, 36); + BRC_CLIP(mfc_context->bit_rate_control_context[HEVC_SLICE_P].QpPrimeY, 1, 40); + BRC_CLIP(mfc_context->bit_rate_control_context[HEVC_SLICE_B].QpPrimeY, 1, 45); } int intel_hcpe_update_hrd(struct encode_state *encode_state, |