Configurable properties of a video scaler channel
#include <vid.h>
typedef struct {
unsigned short size;
unsigned short reserved0;
unsigned flags;
unsigned format;
disp_color_t chroma_key0;
unsigned reserved1;
unsigned chroma_flags;
disp_color_t chroma_key_mask;
disp_color_t chroma_mode;
int x1, y1;
int x2, y2;
int src_width, src_height;
unsigned fmt_index;
short brightness;
short contrast;
disp_vid_alpha_t alpha [DISP_VID_MAX_ALPHA];
unsigned reserved [8];
} disp_vid_channel_props_t;
The disp_vid_channel_props_t structure describes the
configurable properties of a video scaler channel.
The members include:
- size
- The size of this structure.
- reserved0, reserved1, reserved
- Reserved, don't examine or modify.
- flags
- A combination of the following bits:
- DISP_VID_FLAG_ENABLE -- enable the video viewport.
- DISP_VID_FLAG_CHROMA_ENABLE -- perform chroma-keying.
- DISP_VID_FLAG_DOUBLE_BUFFER -- perform
double-buffering.
- format
- The format of the frame data.
- chroma_key0
- The chroma-key color.
- chroma_flags
- The chroma-key comparison operation.
- chroma_key_mask
- Colors are masked with this before chroma comparison.
- chroma_mode
- The type of chroma key match to perform:
- DISP_VID_CHROMA_FLAG_DST -- perform chroma test on
desktop data.
- DISP_VID_CHROMA_FLAG_SRC -- perform chroma test on
video frame data.
- x1, y1
- The top left corner of video viewport in display coordinates.
- x2, y2
- The bottom right corner of video viewport in display coordinates.
- src_width, src_height
- The dimensions of the video source data.
- fmt_index
- Selects the format of the source frame data.
- brightness
- Brightness adjustment, where 0x7fff is normal, 0 the darkest,
and 0xffff the brightest.
- contrast
- Contrast adjustment, where 0x7fff is normal, 0 the minimum,
and 0xffff the maximum.
- alpha
- An array of regions of the video viewport to be blended with desktop.
For more information, see
disp_vid_alpha_t.
Photon
disp_vid_alpha_t,
disp_vidfuncs_t