diff options
author | sugoi <sugoi@chromium.org> | 2015-02-13 11:47:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-13 11:47:11 -0800 |
commit | e6eddf7dd85add7da41f22f2643bdd573ad1f1cf (patch) | |
tree | 571a5fdab1fd5f3e38799d2292334a453ef17b63 /src/gpu/effects/GrYUVtoRGBEffect.h | |
parent | 0864908ca50049d3d907fc5c3749bc8a436b4738 (diff) |
YUV scale fix
There was a scaling mistake visible in some JPEG images because the ratio between Y, U and V planes were assumed to be the same ratios as the ratio between texture sizes, which was wrong because texture have a minimum size of 16 and are rounded up to the next POT. Since the ratios between Y and UV planes are generally 1, 2 or 4, rounding up to the next POT would generally preserve this ratio, so that this bug was not very visible, apart from very small jpeg images of 8 or less pixels in either width or height.
BUG=457954
Review URL: https://codereview.chromium.org/922273002
Diffstat (limited to 'src/gpu/effects/GrYUVtoRGBEffect.h')
-rw-r--r-- | src/gpu/effects/GrYUVtoRGBEffect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.h b/src/gpu/effects/GrYUVtoRGBEffect.h index 4c057bd0ac..2a2e74a26d 100644 --- a/src/gpu/effects/GrYUVtoRGBEffect.h +++ b/src/gpu/effects/GrYUVtoRGBEffect.h @@ -18,7 +18,7 @@ namespace GrYUVtoRGBEffect { * Creates an effect that performs color conversion from YUV to RGB */ GrFragmentProcessor* Create(GrTexture* yTexture, GrTexture* uTexture, GrTexture* vTexture, - SkYUVColorSpace colorSpace); + SkISize sizes[3], SkYUVColorSpace colorSpace); }; #endif |