]> git.karo-electronics.de Git - linux-beck.git/commit
[media] vivid: Fix YUV555 and YUV565 handling
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Sat, 16 Jul 2016 09:26:23 +0000 (06:26 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 21 Oct 2016 17:50:58 +0000 (15:50 -0200)
commit7a20f3985fb6eb74c93e5f36cf1d375a3b013d77
treec57f4298d19ff346d881a7898a586ac7b61a4ccd
parentca2b32da5988159d4d997aac9e4a87447046aedf
[media] vivid: Fix YUV555 and YUV565 handling

precalculate_color() had a optimization that avoided duplicated
conversion for YUV formats. This optimization did not take into
consideration YUV444, YUV555, YUV565 or limited range quantization.

This patch keeps the optimization, but fixes the wrong handling.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c