]> git.baikalelectronics.ru Git - kernel.git/commit
media: allegro: start a GOP with an IDR frame
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 16 Mar 2020 15:26:25 +0000 (16:26 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 20 Mar 2020 08:11:50 +0000 (09:11 +0100)
commitc49ba5f24ec546561c98051855aa03be2b951dd8
tree73f2a583445dd64b9de33a53a6bc3cf19a571828
parent5829adde15fe414666cae16bf96d55285e060aba
media: allegro: start a GOP with an IDR frame

When creating a channel, freq_idr defines the number of frames between
IDR frames in the coded stream. In V4L2, the period between IDR frames
shall be taken from the GOP_SIZE control.

Set the IDR frame frequency equal to the GOP size and let every GOP
start with an IDR frame.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c