Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Side by Side Diff: include/core/SkImageInfo.h

Issue 1241723005: Add Rec709 YUV color space support to GrYUVtoRGBEffect. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Tricksy floatses. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gm/yuvtorgbeffect.cpp ('k') | src/gpu/effects/GrYUVtoRGBEffect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkImageInfo_DEFINED 8 #ifndef SkImageInfo_DEFINED
9 #define SkImageInfo_DEFINED 9 #define SkImageInfo_DEFINED
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 /** 136 /**
137 * Describes the color space a YUV pixel. 137 * Describes the color space a YUV pixel.
138 */ 138 */
139 enum SkYUVColorSpace { 139 enum SkYUVColorSpace {
140 /** Standard JPEG color space. */ 140 /** Standard JPEG color space. */
141 kJPEG_SkYUVColorSpace, 141 kJPEG_SkYUVColorSpace,
142 /** SDTV standard Rec. 601 color space. Uses "studio swing" [16, 235] color 142 /** SDTV standard Rec. 601 color space. Uses "studio swing" [16, 235] color
143 range. See http://en.wikipedia.org/wiki/Rec._601 for details. */ 143 range. See http://en.wikipedia.org/wiki/Rec._601 for details. */
144 kRec601_SkYUVColorSpace, 144 kRec601_SkYUVColorSpace,
145 /** HDTV standard Rec. 709 color space. Uses "studio swing" [16, 235] color
146 range. See http://en.wikipedia.org/wiki/Rec._709 for details. */
147 kRec709_SkYUVColorSpace,
145 148
146 kLastEnum_SkYUVColorSpace = kRec601_SkYUVColorSpace 149 kLastEnum_SkYUVColorSpace = kRec709_SkYUVColorSpace
147 }; 150 };
148 151
149 /////////////////////////////////////////////////////////////////////////////// 152 ///////////////////////////////////////////////////////////////////////////////
150 153
151 enum SkColorProfileType { 154 enum SkColorProfileType {
152 kLinear_SkColorProfileType, 155 kLinear_SkColorProfileType,
153 kSRGB_SkColorProfileType, 156 kSRGB_SkColorProfileType,
154 157
155 kLastEnum_SkColorProfileType = kSRGB_SkColorProfileType 158 kLastEnum_SkColorProfileType = kSRGB_SkColorProfileType
156 }; 159 };
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 , fHeight(height) 315 , fHeight(height)
313 , fColorType(ct) 316 , fColorType(ct)
314 , fAlphaType(at) 317 , fAlphaType(at)
315 , fProfileType(pt) 318 , fProfileType(pt)
316 {} 319 {}
317 320
318 SkColorProfileType fProfileType; 321 SkColorProfileType fProfileType;
319 }; 322 };
320 323
321 #endif 324 #endif
OLDNEW
« no previous file with comments | « gm/yuvtorgbeffect.cpp ('k') | src/gpu/effects/GrYUVtoRGBEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698