Browse Source

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 <[email protected]>
Mihir Ganu 3 years ago
parent
commit
444e7763ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver/variant/iris3/inc/hfi_buffer_iris3.h

+ 1 - 1
driver/variant/iris3/inc/hfi_buffer_iris3.h

@@ -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); \
 		} \