General capabilities of a video scaler
#include <vid.h>
typedef struct {
unsigned short size;
unsigned short reserved0;
unsigned flags;
unsigned format;
int src_max_x;
int src_max_y;
int max_mag_factor_x;
int max_mag_factor_y;
int max_shrink_factor_x;
int max_shrink_factor_y;
unsigned reserved [8];
} disp_vid_channel_caps_t;
The disp_vid_channel_caps_t structure describes the
general capabilities of a video scaler for a given format.
The members include:
- size
- The size of this structure.
- reserved0, reserved
- Reserved, don't examine or modify.
- flags
- Flags that indicate the capabilities:
- DISP_VID_CAP_SRC_CHROMA_KEY -- the video viewport
supports chroma-keying on frame data.
- DISP_VID_CAP_DST_CHROMA_KEY -- the video viewport
supports chroma-keying on desktop data.
- DISP_VID_CAP_BUSMASTER -- the scaler device can
bus-master the data from system RAM.
- DISP_VID_CAP_DOUBLE_BUFFER -- the scaler channel
can be double-buffered.
- DISP_VID_CAP_BRIGHTNESS_ADJUST -- the brightness
of the video viewport can be adjusted.
- DISP_VID_CAP_CONTRAST_ADJUST -- the contrast of
the video viewport can be adjusted.
- format
- The pixel format; see
"Pixel formats"
in the Writing a Graphics Driver chapter.
- src_max_x, src_max_y
- The maximum width and height of source frames.
- max_mag_factor_x, max_mag_factor_y
- The magnification -- -1 means cannot scale upwards.
- max_shrink_factor_x, max_shrink_factor_y
- 1 means cannot scale downwards.
Photon
disp_vidfuncs_t