Adding linear interpolation to rgb->yuv conversion
authorsugoi <sugoi@chromium.org>
Fri, 6 Mar 2015 13:16:52 +0000 (05:16 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 6 Mar 2015 13:16:52 +0000 (05:16 -0800)
commit4ab3dbb636d07d03df1190c8a2b0a730e30e0d29
treeac3dae56208e9bec344333e4dd87a1d35c87907c
parent55f0b18ee079b1517f43c08c70f91e1a21928d23
Adding linear interpolation to rgb->yuv conversion

When the UV planes are smaller than the Y plane, doing the upscaling in nearest mode was creating artefacts, so I changed it to use linear interpolation to fix the issue.

BUG=460380

Committed: https://skia.googlesource.com/skia/+/cd9d42c5167a50f1bf20e969343556d61354171b

Review URL: https://codereview.chromium.org/973563002
src/gpu/SkGr.cpp
src/gpu/effects/GrYUVtoRGBEffect.cpp