[jpege_vepu2]: Enlarge multi-core stream buffer

The original buffer size is too small for complex image and it will
cause iommu pagefault.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I3b2f1fb81cfb007fe6718a73c9eaca7d3951806c
This commit is contained in:
Herman Chen 2023-03-10 08:32:20 +08:00
parent 6ff8ad3358
commit fe529b520b

View file

@ -195,7 +195,7 @@ MPP_RET hal_jpege_vepu2_get_task(void *hal, HalEncTask *task)
if (ctx->type == VPU_CLIENT_VEPU2_JPEG && !ctx->cfg->split.split_mode) {
RK_U32 width = ctx->cfg->prep.width;
RK_U32 height = ctx->cfg->prep.height;
RK_U32 buf_size = width * height / 4;
RK_U32 buf_size = width * height / 2;
/* small image do not need to split into four segments */
if (width * height <= 1280 * 720 && (height <= 720 || width <= 720))