]> git.baikalelectronics.ru Git - kernel.git/commit
media: amphion: adjust the encoder's value range of gop size
authorMing Qian <ming.qian@nxp.com>
Fri, 15 Jul 2022 07:38:00 +0000 (09:38 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 30 Aug 2022 13:01:06 +0000 (15:01 +0200)
commitcd9a41d2248e3eeb805b49f441578be6cfd3e803
tree2563544f3982a43c88e1b5c9c4aabf33655dd5a5
parent66db83b5088d74bff87b1fde9bffe6c30133d706
media: amphion: adjust the encoder's value range of gop size

adjust the value range of gop size from [0, 65535] to [1, 8000].
when the gop size is set to a too large value,
it may affect the encoded picture quality.
so constrain it to a reasonable range.

Fixes: 29c41a7cef9a7 ("media: amphion: add v4l2 m2m vpu encoder stateful driver")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/venc.c