Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PgScalerProps_t

Data structure that describes video overlay scaler properties

Synopsis:

typedef struct  {
    unsigned        size;
    unsigned        flags;
    PgColor_t       color_key;
    unsigned        reserved0;
    PgColor_t       color_key_mask;
    PhRect_t        viewport;
    PhDim_t         src_dim;
    unsigned        format;
    int             brightness;
    int             contrast;
    PgVideoAlpha_t  alpha[4];
    unsigned        reserved[10];
} PgScalerProps_t;

Description:

The PgScalerProps_t structure describes video overlay scaler properties. It includes:

size
The size of this structure; set this to:
sizeof (PgScalerProps_t)
  
flags
The flags include:
color_key
The chroma-key color (of type PgColor_t) to use when Pg_SCALER_PROP_CHROMA_ENABLE and Pg_SCALER_PROP_CHROMA_SPECIFY_KEY_MASK are set in the flags member.
color_key_mask
Not implemented.
viewport
A PhRect_t structure that stores the location and dimension, in desktop coordinates, of the video scaler output viewport.
src_dim
A PhDim_t structure that defines the width and height of the video data frames before scaling.
format
The format of the video frame data. This is analogous to the format member of the PgScalerCaps_t structure.
brightness
The brightness of the video output viewport. The range is 127 to -127, where 0 specifies normal brightness.
contrast
The contrast of the video output viewport. The range is 127 to -127, where 0 specifies normal contrast.
alpha[4]
Not implemented.

Classification:

Photon

See also:

PgColor_t, PgConfigScalerChannel(), PgCreateVideoChannel(), PgDestroyVideoChannel(), PgGetOverlayChromaColor(), PgGetScalerCapabilities(), PgNextVideoFrame(), PgScalerCaps_t, PgVideoChannel_t, PhDim_t, PhRect_t

Video overlay in the Raw Drawing and Animation chapter of the Photon Programmer's Guide