video: driver: Optimize encoder bin buffer size

Reduce bin buffer size to detect buffer overflows in first
stage, which allows frame to be re-encoded with a different QP.

Change-Id: Ifaa5f744491ba35ceee164afeae7d9de90f81e18
Signed-off-by: Mihir Ganu <quic_mganu@quicinc.com>
This commit is contained in:
Mihir Ganu
2022-05-24 15:57:41 -07:00
parent 6756aa4f73
commit 444e7763ee

View File

@@ -1449,7 +1449,7 @@ _yuv_bufcount_min, is_opb, num_vpp_pipes) \
if (work_mode == HFI_WORKMODE_2) \
{ \
total_bitbin_buffers = 3; \
bitbin_size = bitstream_size * 17 / 10; \
bitbin_size = bitstream_size * 12 / 10; \
bitbin_size = HFI_ALIGN(bitbin_size, \
VENUS_DMA_ALIGNMENT); \
} \