1
0

video-driver: Updating H264 Decoder CMD_BUF size calculation.

Internal Buffer(CMD_BUF) size calculation is changed from (3 * 4) to 48
in firmware for H264 decoder. Aligning with same calculation in driver.

Change-Id: I974bca7d2e128cee24bf237b6f9ea606f386031d
Este cometimento está contido em:
Sachu George
2022-06-29 01:45:06 +05:30
cometido por Darshana Patil
ascendente ea38b901b7
cometimento b79ec844f2

Ver ficheiro

@@ -371,7 +371,7 @@ typedef HFI_U32 HFI_BOOL;
{ \
HFI_U32 _height = HFI_ALIGN(frame_height, \
BUFFER_ALIGNMENT_32_BYTES); \
_size = MIN((((_height + 15) >> 4) * 3 * 4), H264D_MAX_SLICE) *\
_size = MIN((((_height + 15) >> 4) * 48), H264D_MAX_SLICE) *\
SIZE_H264D_BSE_CMD_PER_BUF; \
} while (0)
@@ -380,7 +380,7 @@ typedef HFI_U32 HFI_BOOL;
{ \
HFI_U32 _height = HFI_ALIGN(frame_height, \
BUFFER_ALIGNMENT_32_BYTES); \
_size = MIN((((_height + 15) >> 4) * 3 * 4), H264D_MAX_SLICE) * \
_size = MIN((((_height + 15) >> 4) * 48), H264D_MAX_SLICE) * \
SIZE_H264D_VPP_CMD_PER_BUF; \
if (_size > VPP_CMD_MAX_SIZE) { _size = VPP_CMD_MAX_SIZE; } \
} while (0)