From 8d0812e5d1dfefff6f6d60bd5bed4d377125402c Mon Sep 17 00:00:00 2001 From: "shihong.zheng" Date: Mon, 20 Jul 2020 15:04:48 +0800 Subject: [PATCH] vdec: reduce and adjust amvdec canvas num. [2/2] PD#SWPL-29996 Problem: canvas saving in video decoder. Solution: reduce and adjust the range of amvdec canvas index. Verify: S905X2 Change-Id: I82b251191fda4fa729e225b2973a85b8230916e6 Signed-off-by: shihong.zheng --- drivers/frame_provider/decoder/utils/vdec.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/frame_provider/decoder/utils/vdec.c b/drivers/frame_provider/decoder/utils/vdec.c index 5370927..5d819f8 100644 --- a/drivers/frame_provider/decoder/utils/vdec.c +++ b/drivers/frame_provider/decoder/utils/vdec.c @@ -516,9 +516,6 @@ static int get_canvas_ex(int type, int id) flags = vdec_canvas_lock(vdec_core); for (i = 0; i < CANVAS_MAX_SIZE; i++) { - /*0x10-0x15 has been used by rdma*/ - if ((i >= 0x10) && (i <= 0x15)) - continue; if ((canvas_stat[i].type == type) && (canvas_stat[i].id & (1 << id)) == 0) { canvas_stat[i].canvas_used_flag++; @@ -534,9 +531,6 @@ static int get_canvas_ex(int type, int id) } for (i = 0; i < CANVAS_MAX_SIZE; i++) { - /*0x10-0x15 has been used by rdma*/ - if ((i >= 0x10) && (i <= 0x15)) - continue; if (canvas_stat[i].type == 0) { canvas_stat[i].type = type; canvas_stat[i].canvas_used_flag = 1; -- 2.20.1