linux/drivers/media/platform/coda
Lucas Stach f964c409f7 [media] coda: clamp frame sequence counters to 16 bit
This is already done for one side of the comparison with the expectation
that the HW counter rolls over at the 16 bit boundary. This is true when
decoding a h.264 stream, but doesn't hold for at least MJPEG. As we don't
know the exact wrap-around point for this format just clamp the HW counter
to the same 16 bits. This should be enough to detect most of the errors
and saves us from doing different comparisons based on the decoded format.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-07-17 10:50:55 -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: clamp frame sequence counters to 16 bit 2015-07-17 10:50:55 -03:00
coda-common.c genalloc: rename of_get_named_gen_pool() to of_gen_pool_get() 2015-06-30 19:45:01 -07:00
coda-h264.c [media] coda: include header for memcpy 2014-08-21 15:25:23 -05:00
coda-jpeg.c [media] coda: Add tracing support 2015-04-10 10:12:31 -03:00
coda.h [media] coda: Set last buffer flag and fix EOS event 2015-05-12 03:54:07 -03:00
Makefile [media] coda: Add tracing support 2015-04-10 10:12:31 -03:00
trace.h [media] coda: remove extraneous TRACE_SYSTEM_STRING 2015-06-09 18:36:04 -03:00