[Libva] [HEVC10bit ENC V2 5/5] HEVC10 ENC: enable cbr
Pengfei Qu
Pengfei.Qu at intel.com
Fri Sep 2 07:01:42 UTC 2016
Signed-off-by: Pengfei Qu <Pengfei.Qu at intel.com>
---
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 019dadf..f95d4f1 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