aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJammy Huang <[email protected]>2022-02-10 17:29:45 +0800
committerHans Verkuil <[email protected]>2022-02-22 09:41:11 +0100
commit61b31d7884858232b5805dc48526242fbb7b6726 (patch)
tree50ce34b11a52d397a3a091b4c413e92ea5c23a3c /tools/perf/scripts/python
parent22443acce88a0b2e84d45c1ebc4b9d92f159f843 (diff)
media: aspeed: Use full swing as JFIF to fix incorrect color
Current settings for video capture rgb-2-yuv is BT.601(studio swing), but JFIF uses BT.601(full swing) to deocde. This mismatch will lead to incorrect color. For example, input RGB value, (0, 0, 255), will become (16, 16, 235) after jpg decoded. Add an enum, aspeed_video_capture_format, to define VR008[7:6] capture format and correct default settings for video capture to fix the problem. VR008[7:6] decides the data format for video capture as below: * 00: CCIR601 studio swing compliant YUV format * 01: CCIR601 full swing compliant YUV format * 10: RGB format * 11: Gray color mode Signed-off-by: Jammy Huang <[email protected]> Reviewed-by: Paul Menzel <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions