[Libva] [PATCH 2/2] HEVC10 ENC: enable cbr
Pengfei Qu
Pengfei.Qu at intel.com
Wed Aug 31 09:13:36 UTC 2016
---
src/gen9_mfc_hevc.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/gen9_mfc_hevc.c b/src/gen9_mfc_hevc.c
index 6021a7e..ba48968 100644
--- a/src/gen9_mfc_hevc.c
+++ b/src/gen9_mfc_hevc.c
@@ -2279,6 +2279,14 @@ static void intel_hcpe_brc_init(struct encode_state *encode_state,
int ratio_max = 32;
int ratio = 8;
double buffer_size = 0;
+ int bpp = 1;
+
+ if((pSequenceParameter->seq_fields.bits.bit_depth_luma_minus8 > 0) ||
+ (pSequenceParameter->seq_fields.bits.bit_depth_chroma_minus8 > 0))
+ bpp = 2;
+
+ qp1_size = qp1_size * bpp;
+ qp51_size = qp51_size * bpp;
if (!encode_state->misc_param[VAEncMiscParameterTypeHRD] || !encode_state->misc_param[VAEncMiscParameterTypeHRD]->buffer)
return;
--
2.7.4
More information about the Libva
mailing list