| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |