ImageEn, unit iewic

TIEWICWriter.Subsampling

TIEWICWriter.Subsampling


Declaration

property Subsampling: integer;


Description

This parameter only applies to RGB images. It enables additional compression in the chroma space, preserving luminance detail at the expense of color detail:
Value Description
3 4: 4: 4 encoding preserves full chroma resolution
2 4: 2: 2 encoding reduces chroma resolution to 1/2 of luminance resolution
1 4: 2: 0 encoding reduces chroma resolution to 1/4 of luminance resolution
0 4: 0: 0 encoding discards all chroma content, preserving luminance only. Because the codec uses a slightly modified definition of luminance to improve performance, it is preferred to convert an RGB image to monochrome before encoding rather than use this chroma subsampling mode

Any value greater than 3 returns an error. The default value is 3.

UseCodecOptions must be true.
You must set this property before each PutFrame call.