diff options
author | rileya <rileya@chromium.org> | 2014-09-12 17:45:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-12 17:45:58 -0700 |
commit | abaef86f2b37d8a939506a2076da07f6db456951 (patch) | |
tree | e206bd6ee9f049c43c0ba9033c8417bb5008258c /tests/ImageGeneratorTest.cpp | |
parent | 94c415170b6f62fa80b598fe30bf2f99f0aecf6a (diff) |
Add support for the Rec601 YUV color space to GrYUVtoRGBEffect.
R=bsalomon@google.com, senorblanco@chromium.org, sugoi@chromium.org, reed@google.com
Author: rileya@chromium.org
Review URL: https://codereview.chromium.org/516463005
Diffstat (limited to 'tests/ImageGeneratorTest.cpp')
-rw-r--r-- | tests/ImageGeneratorTest.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/ImageGeneratorTest.cpp b/tests/ImageGeneratorTest.cpp index aaf149b37c..1f960ea9e9 100644 --- a/tests/ImageGeneratorTest.cpp +++ b/tests/ImageGeneratorTest.cpp @@ -16,16 +16,19 @@ DEF_TEST(ImageGenerator, reporter) { sizes[2] = SkISize::Make( 50, 50); void* planes[3] = { NULL }; size_t rowBytes[3] = { 0 }; + SkYUVColorSpace colorSpace; // Check that the YUV decoding API does not cause any crashes - ig.getYUV8Planes(sizes, NULL, NULL); - ig.getYUV8Planes(sizes, planes, NULL); - ig.getYUV8Planes(sizes, NULL, rowBytes); - ig.getYUV8Planes(sizes, planes, rowBytes); + ig.getYUV8Planes(sizes, NULL, NULL, &colorSpace); + ig.getYUV8Planes(sizes, NULL, NULL, NULL); + ig.getYUV8Planes(sizes, planes, NULL, NULL); + ig.getYUV8Planes(sizes, NULL, rowBytes, NULL); + ig.getYUV8Planes(sizes, planes, rowBytes, NULL); + ig.getYUV8Planes(sizes, planes, rowBytes, &colorSpace); int dummy; planes[0] = planes[1] = planes[2] = &dummy; rowBytes[0] = rowBytes[1] = rowBytes[2] = 250; - ig.getYUV8Planes(sizes, planes, rowBytes); + ig.getYUV8Planes(sizes, planes, rowBytes, &colorSpace); } |