Capabilities of a video capture unit
typedef struct {
unsigned flags;
unsigned input_format;
int frame_width;
int frame_height;
int frame_rate;
unsigned output_format;
unsigned reserved[10];
} disp_vcap_channel_caps_t;
The disp_vcap_channel_caps_t structure describes the
capabilities of a video capture unit.
The members include:
- flags
- Flags that describe the capabilities:
- DISP_VCAP_CAP_SOURCE_TUNER --
can capture video from a TV tuner.
- DISP_VCAP_CAP_SOURCE_SVIDEO --
can capture video from an S-Video connector.
- DISP_VCAP_CAP_SOURCE_COMPOSITE --
can capture video from an Composite video connector.
- DISP_VCAP_CAP_BRIGHTNESS_ADJUST --
brightness can be adjusted.
- DISP_VCAP_CAP_CONTRAST_ADJUST --
contrast can be adjusted.
- DISP_VCAP_CAP_SATURATION_ADJUST --
saturation can be adjusted.
- DISP_VCAP_CAP_HUE_ADJUST --
green Hue can be adjusted.
- DISP_VCAP_CAP_AUDIO_SOURCE_MUTE --
audio can be muted.
- DISP_VCAP_CAP_AUDIO_SOURCE_TUNER --
audio can be routed from a TV tuner through the capture unit.
- DISP_VCAP_CAP_AUDIO_SOURCE_EXTERNAL --
audio can be routed from an external line in through the capture unit.
- DISP_VCAP_CAP_DOWNSCALING --
the capture unit can scale video frames downwards.
- DISP_VCAP_CAP_UPSCALING --
the capture unit can scale video frames upwards.
- DISP_VCAP_CAP_CROPPING --
the capture unit can crop frames prior to scaling.
- DISP_VCAP_CAP_DOUBLE_BUFFER --
the capture unit can alternate its output between two buffers.
- input_format
- The format of the incoming video signal; one of:
- DISP_TV_SIGNAL_NTSC
- DISP_TV_SIGNAL_NTSC_JAPAN
- DISP_TV_SIGNAL_PAL
- DISP_TV_SIGNAL_PAL_M
- DISP_TV_SIGNAL_PAL_N
- DISP_TV_SIGNAL_PAL_N_COMBO
- DISP_TV_SIGNAL_SECAM
- frame_width
- The width of the output frames, in pixels, prior to scaling.
- frame_height
- The height of the output frames, in scanlines, prior to scaling.
- frame_rate
- The frequency of frames output, in Hz (e.g. 30 for NTSC).
- output_format
- The data format of the frames output by the scaler unit; see
"Pixel formats"
in the Writing a Graphics Driver chapter.
Photon
disp_vcapfuncs_t