DescriptionIncrease YUV video clamping
The current clamping is not enough to avoid bleeding issues. This is
exposed when changing the background color in CreateEdgeBleedPass from
black to gray. The reason it works now is because interpolating U/V
textures from black (YUV = 0, 0, 0) to green (YUV = 149, 43, 21) will
still result in saturated green pixels (RGB = 0, 255, 0). All YUV values
in the range (149, 0-43, 0-21) will end up as RGB = (0, 255, 0).
The current clamping is not enough, because the calculation
'0.5f / quad->tex_size.width()' is using the Y texture size, the highest
resolution plane, but the U/V texture size is only half of that. This CL
adds individual sizes for the Y/A and U/V textures.
BUG=429640, 467283
Committed: https://crrev.com/4be817dd606efdba1614d32608ddd6e16bfa687d
Cr-Commit-Position: refs/heads/master@{#320567}
Committed: https://crrev.com/7364ff94a2bd814dd198f609f8d5bacabe1d563b
Cr-Commit-Position: refs/heads/master@{#322541}
Patch Set 1 : Change background to gray in bleed test #Patch Set 2 : Increase clamp to 0.99 #Patch Set 3 : Increase clamp to 1.0 #
Total comments: 6
Patch Set 4 : change tex_size instead #Patch Set 5 : individual ya and uv texture size #
Total comments: 3
Patch Set 6 : rebase #
Messages
Total messages: 37 (10 generated)
|