summaryrefslogtreecommitdiff
authorshihong.zheng <shihong.zheng@amlogic.com>2020-07-20 07:04:48 (GMT)
committer Shihong Zheng <shihong.zheng@amlogic.com>2020-08-10 12:05:11 (GMT)
commit8d0812e5d1dfefff6f6d60bd5bed4d377125402c (patch)
treee95aaaadc8e2f231dbbe9d044c313982547ab103
parent3425d4bde7feb317a7cbf5e8957808868eb8a3e6 (diff)
downloadmedia_modules-8d0812e5d1dfefff6f6d60bd5bed4d377125402c.zip
media_modules-8d0812e5d1dfefff6f6d60bd5bed4d377125402c.tar.gz
media_modules-8d0812e5d1dfefff6f6d60bd5bed4d377125402c.tar.bz2
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 <shihong.zheng@amlogic.com>
Diffstat
-rw-r--r--drivers/frame_provider/decoder/utils/vdec.c6
1 files changed, 0 insertions, 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;