linux/drivers/media/platform/coda
Philipp Zabel ad532d37b2 [media] coda: allocate bitstream buffer from REQBUFS, size depends on the format
Allocating the bitstream buffer only when the format is set allows to guarantee
that at least two frames fit into the bitstream buffer. For small frame sizes
a smaller bitstream buffer can be allocated. Since the bitstream buffer size now
depends on the format, replace CODA_MAX_FRAME_SIZE with ctx->bitstream.size
where appropriate and remove the now unused constant.
Since REQBUFS can be called multiple times, but the format can't be changed
unless REQBUFS 0 was called before, we can just keep the allocated context and
bitstream buffers if REQBUFS is called multiple times with a non-zero buffer
count.

[fixed a resource leak preventing repeatedly decoding]

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-04-10 10:07:58 -03:00
..
coda_regs.h [media] coda: fix encoder rate control parameter masks 2015-02-02 09:58:49 -02:00
coda-bit.c [media] coda: allocate bitstream buffer from REQBUFS, size depends on the format 2015-04-10 10:07:58 -03:00
coda-common.c [media] coda: allocate bitstream buffer from REQBUFS, size depends on the format 2015-04-10 10:07:58 -03:00
coda-h264.c [media] coda: include header for memcpy 2014-08-21 15:25:23 -05:00
coda-jpeg.c [media] coda: drop JPEG buffers not framed by SOI and EOI markers 2014-10-28 15:41:07 -02:00
coda.h [media] coda: allocate bitstream buffer from REQBUFS, size depends on the format 2015-04-10 10:07:58 -03:00
Makefile [media] coda: add CODA7541 JPEG support 2014-10-28 15:03:16 -02:00