beautypg.com

Control codes, Video functions, Sx16_ioc_set_input – Sensoray 616 Linux User Manual

Page 8: Sx16_ioc_set_input_type, Sx16_ioc_get_input_status

background image

8

4.2. Control Codes

4.2.1. Video Functions

SX16_IOC_SET_INPUT

ioctl( handle, SX16_IOC_SET_INPUT, input );

Parameters

input

Video input. Must be between 0 and 3.

Return values

None.

Notes

Selects video input. Default value is 0.
Sensoray 616 board (Revision A) has only one input.

SX16_IOC_SET_INPUT_TYPE

ioctl( handle, SX16_IOC_SET_INPUT_TYPE, type );

Parameters

type

Video input type. Must be 0 for Composite Video or 1 for S-Video.

Return values

None.

Notes

Sets video input type. Default type is S-Video.

SX16_IOC_GET_INPUT_STATUS

ioctl( handle, SX16_IOC_GET_INPUT_STATUS, 0 );

Parameters
Return values

Returns the status (positive), or an error code (negative).
Status is a combination of bit flags:

Bit Name

Function

D0

RDCAP

ready for capture (all internal loops locked); active HIGH

D1

COPRO

copy protected source detected according to macrovision version up to 7.01

D2

WIPA

white peak loop is activated; active HIGH

D3

GLIMB

gain value for active luminance channel is limited [min (bottom)]; active HIGH

D4

GLIMT

gain value for active luminance channel is limited [max (top)]; active HIGH

D5

FIDT

identification bit for detected field frequency; LOW = 50 Hz, HIGH = 60 Hz

This manual is related to the following products: