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).

Weiterführende Informationen

Das Enum ETcVnPixelEncoding wird in der Struktur TcVnPixelFormat verwendet. Durch Abfragen der Pixelformatinformationen eines Bildes erhält man so Auskunft über das Pixel-Encoding. Häufiger Anwendungsfall ist die Abfrage auf ein Bayer Pattern, um herauszufinden ob ein Bild z. B. noch in ein RGB Format konvertiert werden muss.