OSDN Git Service

[media] vivid: Y offset should depend on quant. range
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 27 Jan 2015 16:46:17 +0000 (13:46 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 29 Jan 2015 20:03:19 +0000 (18:03 -0200)
commitafad4dd50acbe6457413ec6a68708433d9824d37
tree835a43b4e5a9af0406da01ab2f55eca33d2a1478
parentcb88d7384e5e05f90c1daa7750bdb467fd026261
[media] vivid: Y offset should depend on quant. range

When converting to or from Y'CbCr and R'G'B' the Y offset depends
on the quantization range: it's 0 for full and 16 for limited range.
But in the code it was hardcoded to 16. This messed up the brightness
of the generated pattern.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-tpg.c