media: mtk-vcodec: reset segment data then trig decoder
authorRui Wang <gtk_ruiwang@mediatek.com>
Tue, 11 Feb 2020 05:55:32 +0000 (06:55 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 2 Mar 2020 14:22:30 +0000 (15:22 +0100)
commitdea42fb79f4fa6a2b08124b217b2850e7e9bbf3e
tree9cfed6c2bd29d1c02f1dd6fa90f86e1e524f6154
parent18e2565d7d154ddc7458e05cab67ef6f43b8f640
media: mtk-vcodec: reset segment data then trig decoder

VP9 bitstream specification indicate segment data should reset to
default when meet key frames, intra only frames or enable error
resilience mode. So memset segmentation map buffer before every
decode process is not appropriate.

Reset segment data only when needed, then start decoder hardware

Signed-off-by: Rui Wang <gtk_ruiwang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c