ETcVnPixelEncoding
Offers pixel encodings.
Syntax
Definition:
TYPE ETcVnPixelEncoding :
(
TCVN_PE_NONE := 0,
TCVN_PE_BAYER_GR := 1,
TCVN_PE_BAYER_RG := 2,
TCVN_PE_BAYER_GB := 3,
TCVN_PE_BAYER_BG := 4,
TCVN_PE_YUV_411_UYYVYY := 5,
TCVN_PE_YUV_422_UYVY := 6,
TCVN_PE_YUV_422_YUYV := 7,
TCVN_PE_YCBCR_411_CBYYCRYY := 8,
TCVN_PE_YCBCR_422_CBYCRY := 9,
TCVN_PE_YCBCR_422_YCBYCR := 10
)BYTE;
END_TYPE
Values
Name |
Description |
---|---|
TCVN_PE_NONE |
No encoding available, i.e. every pixel value is independent of other pixels. |
TCVN_PE_BAYER_GR |
Pixels are encoded as a BayerGR pattern. |
TCVN_PE_BAYER_RG |
Pixels are encoded as a BayerRG pattern. |
TCVN_PE_BAYER_GB |
Pixels are encoded as a BayerGB pattern. |
TCVN_PE_BAYER_BG |
Pixels are encoded as a BayerBG pattern. |
TCVN_PE_YUV_411_UYYVYY |
Pixels are encoded as YUV411 (UYYVYY). |
TCVN_PE_YUV_422_UYVY |
Pixels are encoded as YUV422 (UYVY). |
TCVN_PE_YUV_422_YUYV |
Pixels are encoded as YUV422 (YUYV). |
TCVN_PE_YCBCR_411_CBYYCRYY |
Pixels are encoded as YCbCr411 (CbYYCrYY). |
TCVN_PE_YCBCR_422_CBYCRY |
Pixels are encoded as YCbCr422 (CbYCrY). |
TCVN_PE_YCBCR_422_YCBYCR |
Pixels are encoded as YCbCr422 (YCbYCr). |
Further information
The enum ETcVnPixelEncoding
is used in the structure TcVnPixelFormat. Information about the pixel encoding can be obtained by querying the pixel format information of an image. A frequent use case is the query for a Bayer pattern in order to find out whether a picture still needs to be converted into an RGB format, for example.