D2D1_YCBCR_CHROMA_SUBSAMPLING enumeration (d2d1effects_1.h)

Specifies the chroma subsampling of the input chroma image used by the YCbCr effect.

Syntax

typedef enum D2D1_YCBCR_CHROMA_SUBSAMPLING {
  D2D1_YCBCR_CHROMA_SUBSAMPLING_AUTO = 0,
  D2D1_YCBCR_CHROMA_SUBSAMPLING_420 = 1,
  D2D1_YCBCR_CHROMA_SUBSAMPLING_422 = 2,
  D2D1_YCBCR_CHROMA_SUBSAMPLING_444 = 3,
  D2D1_YCBCR_CHROMA_SUBSAMPLING_440 = 4,
  D2D1_YCBCR_CHROMA_SUBSAMPLING_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_YCBCR_CHROMA_SUBSAMPLING_AUTO
Value: 0
This mode attempts to infer the chroma subsampling from the bounds of the input images. When this option is selected,
the smaller plane is upsampled to the size of the larger plane and this effect’s output rectangle is the intersection of the two planes.
When using this mode, care should be taken when applying effects to the input planes that change the image bounds, such as the border transform,
so that the desired size ratio between the planes is maintained.
D2D1_YCBCR_CHROMA_SUBSAMPLING_420
Value: 1
The chroma plane is horizontally subsampled by 1/2 and vertically subsampled by 1/2.
When this option is selected, the chroma plane is horizontally and vertically upsampled by 2x and this effect's output rectangle is the intersection of the two planes.
D2D1_YCBCR_CHROMA_SUBSAMPLING_422
Value: 2
The chroma plane is horizontally subsampled by 1/2. When this option is selected,
the chroma plane is horizontally upsampled by 2x and this effect's output rectangle is the intersection of the two planes.
D2D1_YCBCR_CHROMA_SUBSAMPLING_444
Value: 3
The chroma plane is not subsampled. When this option is selected this effect’s output rectangle is the intersection of the two planes.
D2D1_YCBCR_CHROMA_SUBSAMPLING_440
Value: 4
The chroma plane is vertically subsampled by 1/2. When this option is selected, the chroma plane is vertically upsampled by 2x and this effect's
output rectangle is the intersection of the two planes.
D2D1_YCBCR_CHROMA_SUBSAMPLING_FORCE_DWORD
Value: 0xffffffff

Requirements

Requirement Value
Header d2d1effects_1.h