1 // Licensed under the Apache License, Version 2.0
2 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
4 // All files in the project carrying such notice may not be copied, modified, or distributed
5 // except according to those terms.
6 // Mappings for the contents of d2d1effects_1.h
7 DEFINE_GUID!{CLSID_D2D1YCbCr,
8     0x99503cc1, 0x66c7, 0x45c9, 0xa8, 0x75, 0x8a, 0xd8, 0xa7, 0x91, 0x44, 0x01}
9 ENUM!{enum D2D1_YCBCR_PROP {
10     D2D1_YCBCR_PROP_CHROMA_SUBSAMPLING = 0,
11     D2D1_YCBCR_PROP_TRANSFORM_MATRIX = 1,
12     D2D1_YCBCR_PROP_INTERPOLATION_MODE = 2,
13     D2D1_YCBCR_PROP_FORCE_DWORD = 0xffffffff,
14 }}
15 ENUM!{enum D2D1_YCBCR_CHROMA_SUBSAMPLING {
16     D2D1_YCBCR_CHROMA_SUBSAMPLING_AUTO = 0,
17     D2D1_YCBCR_CHROMA_SUBSAMPLING_420 = 1,
18     D2D1_YCBCR_CHROMA_SUBSAMPLING_422 = 2,
19     D2D1_YCBCR_CHROMA_SUBSAMPLING_444 = 3,
20     D2D1_YCBCR_CHROMA_SUBSAMPLING_440 = 4,
21     D2D1_YCBCR_CHROMA_SUBSAMPLING_FORCE_DWORD = 0xffffffff,
22 }}
23 ENUM!{enum D2D1_YCBCR_INTERPOLATION_MODE {
24     D2D1_YCBCR_INTERPOLATION_MODE_NEAREST_NEIGHBOR = 0,
25     D2D1_YCBCR_INTERPOLATION_MODE_LINEAR = 1,
26     D2D1_YCBCR_INTERPOLATION_MODE_CUBIC = 2,
27     D2D1_YCBCR_INTERPOLATION_MODE_MULTI_SAMPLE_LINEAR = 3,
28     D2D1_YCBCR_INTERPOLATION_MODE_ANISOTROPIC = 4,
29     D2D1_YCBCR_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC = 5,
30     D2D1_YCBCR_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff,
31 }}
32