msm: vidc: Updating H264 decoder internal buffer size calculation

For H264 decoder, resolutions with non-multiple of 16 were
calculating less internal buffer size. Updated calculation
to handle such scenarios.

Change-Id: I3c07b843cc898a584aba4c9f26627898a7427fe8
Signed-off-by: Shivendra Kakrania <shiven@codeaurora.org>
This commit is contained in:
Shivendra Kakrania 2019-05-22 11:55:12 -07:00
parent 3e941211c2
commit 74650362eb

View File

@ -110,7 +110,7 @@
((((width + 15) >> 4) << 7))
#define SIZE_H264D_LB_RECON_DMA_METADATA_WR(width, height) \
(ALIGN(height, 8) * 32)
(ALIGN(height, 16) * 32)
#define SIZE_H264D_QP(width, height) \
(((width + 63) >> 6) * ((height + 63) >> 6) * 128)