diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2020-12-03 12:01:04 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-01-27 16:13:41 +0100 |
commit | be7f41f2f10c8605ba4b9a5515cf449006470b90 (patch) | |
tree | dfead49df537e875af06605ff93e9a4675b876e9 /drivers/media/platform/allegro-dvt | |
parent | 4132dcbf5ccd8857d0be3ef80d2a8b70662fbc40 (diff) | |
download | linux-be7f41f2f10c8605ba4b9a5515cf449006470b90.tar.gz |
media: allegro: increase offset in CAPTURE buffer
The HEVC Non-VCL NAL units require more space than the H.264 Non-VCL NAL
units. Therefore, the driver needs to reserve more space in front of the
actual coded data that is written by the hardware codec.
Increase the offset that shall be used by the hardware codec from 64
bytes to 128 bytes which is as arbitrary as before.
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>
Diffstat (limited to 'drivers/media/platform/allegro-dvt')
-rw-r--r-- | drivers/media/platform/allegro-dvt/allegro-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/allegro-dvt/allegro-core.c b/drivers/media/platform/allegro-dvt/allegro-core.c index 81f68b67016f..bb024cff4c7c 100644 --- a/drivers/media/platform/allegro-dvt/allegro-core.c +++ b/drivers/media/platform/allegro-dvt/allegro-core.c @@ -90,7 +90,7 @@ * because it needs to write SPS/PPS NAL units. The encoder writes the actual * frame data after the offset. */ -#define ENCODER_STREAM_OFFSET SZ_64 +#define ENCODER_STREAM_OFFSET SZ_128 #define SIZE_MACROBLOCK 16 |