linux/drivers/media/platform/coda
Lucas Stach c3d996fb03 media: coda: limit queueing into internal bitstream buffer
The ringbuffer used to hold the bitstream is very conservatively sized,
as keyframes can get very large and still need to fit into this buffer.
This means that the buffer is way oversized for the average stream to
the extend that it will hold a few hundred frames when the video data
is compressing well.

The current strategy of queueing as much bitstream data as possible
leads to large delays when draining the decoder. In order to keep the
drain latency to a reasonable bound, try to only queue a full reorder
window of buffers. We can't always hit this low target for very well
compressible video data, as we might end up with less than the minimum
amount of data that needs to be available to the bitstream prefetcher,
so we must take this into account and allow more buffers to be queued
in this case.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-11-23 05:27:05 -05:00
..
coda_regs.h media: coda: jpeg: explicitly disable thumbnails in SEQ_INIT 2018-07-04 08:29:31 -04:00
coda-bit.c media: coda: limit queueing into internal bitstream buffer 2018-11-23 05:27:05 -05:00
coda-common.c media: coda: always hold back decoder jobs until we have enough bitstream payload 2018-11-23 05:26:24 -05:00
coda-gdi.c [media] coda: add macroblock tiling support 2015-07-17 11:28:59 -03:00
coda-h264.c media: coda: add SPS fixup code for frame sizes that are not multiples of 16 2018-07-27 06:58:54 -04:00
coda-jpeg.c [media] coda: relax coda_jpeg_check_buffer for trailing bytes 2015-12-23 14:02:14 -02:00
coda.h media: coda: always hold back decoder jobs until we have enough bitstream payload 2018-11-23 05:26:24 -05:00
imx-vdoa.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
imx-vdoa.h [media] coda: add i.MX6 VDOA driver 2017-01-31 08:10:18 -02:00
Makefile [media] coda: add i.MX6 VDOA driver 2017-01-31 08:10:18 -02:00
trace.h media: coda: store unmasked fifo position in meta 2018-11-23 05:21:37 -05:00