[Previous] [Contents] [Index] [Next]

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

disp_vcap_channel_props_t

Configurable properties of a video capture unit

Synopsis:

typedef struct {
    unsigned    size;
    unsigned    flags;
    unsigned    video_source;
    unsigned    audio_source;
    unsigned    input_format;
    unsigned    output_format;
    int         tuner_channel;
    int         Fif;
    short       dst_width;
    short       dst_height;
    short       crop_top;
    short       crop_bottom;
    short       crop_left;
    short       crop_right; 
    short       brightness;
    short       contrast;
    short       u_saturation;
    short       v_saturation;
    short       hue;
    short       reserved;
    unsigned    update_flags;
    int         scaler_index;
    unsigned    reserved2[6];
} disp_vcap_channel_props_t;

Description:

The disp_vcap_channel_props_t describes the configurable properties of a video capture unit. The members include:

size
Filled in with sizeof (disp_vcap_channel_props_t) on instantiation.
flags
Valid flags are:
video_source
The source of the video signal to be captured:

If something other than one of the above is specified, the driver should default to something reasonable.

audio_source
The source of the audio signal that's routed through the capture unit:
input_format
The encoding of the incoming signal to be captured:
output_format
The format of the data output by the capture unit; see "Pixel formats" in the Writing a Graphics Driver chapter.
tuner_channel
The tuner frequency, in Hertz, to which the TV tuner should be programmed.
Fif
The Intermediate Frequency, in Hertz, to be used when programming the TV tuner.
dst_width
The output width of the frames after scaling.
dst_height
The output height of the frames after scaling.
crop_top
The number of lines to crop off the top of the captured before scaling.
crop_bottom
The number of lines to crop off the bottom of the captured before scaling.
crop_left
The number of lines to crop off the left of the captured before scaling.
crop_right
The number of lines to crop off the right of the captured before scaling.
brightness
The luminance adjustment to captured video. This is a signed value, where 0 means no adjustment, 32767 is the maximum brightness, and -32768 is the darkest.
contrast
The contrast adjustment to captured video. This is a signed value, where 0 means normal contrast, 32767 is the maximum contrast, and -32768 is the minimum.
u_saturation
The saturation level of the Cr chroma component of captured video. This is a signed value, where 0 means normal saturation, 32767 is the maximum saturation, and -32768 is the minimum.
v_saturation
The saturation level of the Cb chroma component of captured video. This is a signed value, where 0 means normal saturation, 32767 is the maximum saturation, and -32768 is the minimum.
hue
The level of green hue adjustment to captured video. This is a signed value, where 0 means no adjustment, 32767 is the maximum hue, and -32768 is the minimum.
update_flags
Flags that indicate which members of the disp_vcap_channel_props_t structure contain valid data that should be used to program the capture unit:
Flag Valid member(s)
DISP_VCAP_UPDATE_VIDEO_SOURCE video_source
DISP_VCAP_UPDATE_AUDIO_SOURCE audio_source
DISP_VCAP_UPDATE_INPUT_FORMAT input_format
DISP_VCAP_UPDATE_OUTPUT_FORMAT output_format
DISP_VCAP_UPDATE_TUNER tuner_channel, Fif
DISP_VCAP_UPDATE_OUTPUT_SIZE dst_width, dst_height, crop_top, crop_bottom, crop_left, crop_right
DISP_VCAP_UPDATE_BRIGHTNESS brightness
DISP_VCAP_UPDATE_CONTRAST contrast
DISP_VCAP_UPDATE_SATURATION u_saturation, v_saturation
DISP_VCAP_UPDATE_HUE hue
DISP_VCAP_UPDATE_OUTPUT_TARGET One or more of the *plane* parameters is valid, and one or more of the buffers described by the *plane* parameters has changed since the last time this function was called.

Classification:

Photon

See also:

disp_vcapfuncs_t


[Previous] [Contents] [Index] [Next]