WICJpegYCrCbSubsamplingOption enumeration (wincodec.h)

Specifies the JPEG YCrCB subsampling options.

Syntax

typedef enum WICJpegYCrCbSubsamplingOption {
  WICJpegYCrCbSubsamplingDefault = 0,
  WICJpegYCrCbSubsampling420 = 0x1,
  WICJpegYCrCbSubsampling422 = 0x2,
  WICJpegYCrCbSubsampling444 = 0x3,
  WICJpegYCrCbSubsampling440 = 0x4,
  WICJPEGYCRCBSUBSAMPLING_FORCE_DWORD = 0x7fffffff
} ;

Constants

 
WICJpegYCrCbSubsamplingDefault
Value: 0
The default subsampling option.
WICJpegYCrCbSubsampling420
Value: 0x1
Subsampling option that uses both horizontal and vertical decimation.
WICJpegYCrCbSubsampling422
Value: 0x2
Subsampling option that uses horizontal decimation .
WICJpegYCrCbSubsampling444
Value: 0x3
Subsampling option that uses no decimation.
WICJpegYCrCbSubsampling440
Value: 0x4
Subsampling option that uses 2x vertical downsampling only. This option is only available in Windows 8.1 and later.
WICJPEGYCRCBSUBSAMPLING_FORCE_DWORD
Value: 0x7fffffff

Remarks

The native JPEG encoder uses WICJpegYCrCbSubsampling420.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
Header wincodec.h