OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrYUVtoRGBEffect_DEFINED | 8 #ifndef GrYUVtoRGBEffect_DEFINED |
9 #define GrYUVtoRGBEffect_DEFINED | 9 #define GrYUVtoRGBEffect_DEFINED |
10 | 10 |
11 class GrEffect; | 11 class GrEffect; |
12 class GrTexture; | 12 class GrTexture; |
13 | 13 |
14 namespace GrYUVtoRGBEffect { | 14 namespace GrYUVtoRGBEffect { |
15 enum YUVColorSpace { | |
rileya (GONE FROM CHROMIUM)
2014/08/28 01:03:28
Is there a better place for this enum to live?
bsalomon
2014/08/28 13:33:26
Not sure about whether there is a more natural pla
| |
16 /** Standard JPEG color space. */ | |
17 kJPEG, | |
Stephen White
2014/08/28 15:11:06
This should be kJPEG_YUVColorSpace according to Sk
rileya (GONE FROM CHROMIUM)
2014/08/28 21:05:57
Yeah, in the long term rec709 should be supported.
| |
18 /** SDTV standard Rec. 601 color space. Uses "studio swing" [16, 235] co lor | |
19 range. See http://en.wikipedia.org/wiki/Rec._601 for details. */ | |
20 kRec601 | |
21 }; | |
22 | |
15 /** | 23 /** |
16 * Creates an effect that performs color conversion from YUV to RGB | 24 * Creates an effect that performs color conversion from YUV to RGB |
17 */ | 25 */ |
18 GrEffect* Create(GrTexture* yTexture, GrTexture* uTexture, GrTexture* vTextu re); | 26 GrEffect* Create(GrTexture* yTexture, GrTexture* uTexture, GrTexture* vTextu re, |
27 YUVColorSpace type); | |
19 }; | 28 }; |
20 | 29 |
21 #endif | 30 #endif |
OLD | NEW |