TcVnPixelFormat

Contains detailed information about the pixel format.

Syntax

Definition:

struct TcVnPixelFormat
{
    UCHAR              bSupported : 1;
    UCHAR              bSigned : 1;
    UCHAR              bPlanar : 1;
    UCHAR              bFloat : 1;
    BYTE               nChannels;
    ETcVnPixelEncoding ePixelEncoding;
    ETcVnPixelPackMode ePixelPackMode;
    USHORT             nElementSize;
    USHORT             nTotalSize;
};

Parameters

Name

Type

Description

bSupported

UCHAR : 1

If false, the pixel format is not supported.

bSigned

UCHAR : 1

If true, pixel intensities are signed values.

bPlanar

UCHAR : 1

If true, the image channels are stored planar instead of interleaved (e.g. RRRRRGGGGGBBBBB instead of RGBRGBRGBRGBRGB).

bFloat

UCHAR : 1

If true, the pixel format is floating point.

nChannels

BYTE

Number of channels

ePixelEncoding

ETcVnPixelEncoding

Pixel encoding

ePixelPackMode

ETcVnPixelPackMode

Pixel pack mode

nElementSize

USHORT

Size (bit) of a single pixel channel

nTotalSize

USHORT

Size (bit) of all pixel channels