DescriptionTowards deleting YUV to RGB computation redundancy
Make the GetTransferMatrix and GetRangeAdjustMatrix functions part of
gfx::ColorSpace instead of gfx::ColorSpaceTransform, and call them from
GLRenderer to compute the YUV to RGB matrix and offset.
Do not actually use the new computation results yet, because they break
pixel tests. Rather, add a DCHECK that the new results are very close to
the previous values being used (within 1/255.f).
Fix the transfer matrix for SMPTE170M to have Kb=0.114 instead of 0.144.
Change the definition of gfx::ColorSpace::CreateJPEG to use the Rec601
transfer matrix, not Rec709. This is necessary for the resulting YUV to
RGB conversion to match the previous behavior.
BUG=667966
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2670773002
Cr-Commit-Position: refs/heads/master@{#447893}
Committed: https://chromium.googlesource.com/chromium/src/+/5f73187dc5b79607d4110d9d0519d1a474f01ee7
Patch Set 1 #
Total comments: 18
Patch Set 2 : Review feedback #Patch Set 3 : Add unittest #Patch Set 4 : Explicitly mark constants as float #
Dependent Patchsets: Messages
Total messages: 29 (19 generated)
|