diff options
author | 2014-09-12 17:45:58 -0700 | |
---|---|---|
committer | 2014-09-12 17:45:58 -0700 | |
commit | abaef86f2b37d8a939506a2076da07f6db456951 (patch) | |
tree | e206bd6ee9f049c43c0ba9033c8417bb5008258c /include/core/SkImageInfo.h | |
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 'include/core/SkImageInfo.h')
-rw-r--r-- | include/core/SkImageInfo.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h index 6204cb3b81..7fedfa1a4a 100644 --- a/include/core/SkImageInfo.h +++ b/include/core/SkImageInfo.h @@ -133,6 +133,21 @@ bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, /////////////////////////////////////////////////////////////////////////////// /** + * Describes the color space a YUV pixel. + */ +enum SkYUVColorSpace { + /** Standard JPEG color space. */ + kJPEG_SkYUVColorSpace, + /** SDTV standard Rec. 601 color space. Uses "studio swing" [16, 235] color + range. See http://en.wikipedia.org/wiki/Rec._601 for details. */ + kRec601_SkYUVColorSpace, + + kLastEnum_SkYUVColorSpace = kRec601_SkYUVColorSpace +}; + +/////////////////////////////////////////////////////////////////////////////// + +/** * Describe an image's dimensions and pixel type. */ struct SkImageInfo { |