beautypg.com

S2253_vidioc_clock, S2253_vidioc_overlay – Sensoray 2253 Linux User Manual

Page 22

background image

int

osdOn,

//OSD on if != 0

int

osdChan,

//OSD channel (filled in by driver)

int

osdBmp,

//OSD on bitmap if !=0

int

transparent,

//text background transparent if !=0

int

positionTop,

//OSD string on top of the screen if !=0

int

ddmm,

//date format is dd-mm if != 0

int

year2 ,

//date is truncated to 2 digits if !=0

int

fraction,

//digits showing fraction of a second: 0, 1, 2

char line[80],

//caption text

int

xoff, yoff

//x and y offsets from top/bottom left corner

};

S2253_VIDIOC_CLOCK

int ioctl(int fd, int request, struct s2253_clock *clk);
clk

Pointer to

struct s2253_clock {
__u64

sec,

//Seconds

__u32

usec

//Microseconds

}
This structure is similar to the struct timeval used with the
gettimeofday() function. If this struct is initialized using
gettimeofday(), it should also be adjusted to local time. The clock on

the device does not make adjustments for timezones or daylight-saving.

S2253_VIDIOC_OVERLAY

int ioctl(int fd, int request, struct s2253_overlay_image *ovl);
struct s2253_overlay_image {
unsigned char id; // unique id representing this overlay

unsigned char transparent; // 0=transparent .. 7=opaque

// 8=use PNG or BMP transparency info

unsigned char update; // bit 0: update the display,

// bit 1: update the x&y offset,

// bit 2: update the transparency
// (see defines below)

unsigned char reserved;
__u32 xOffset; // x offset from left side

__u32 yOffset; // y offset from top
__u32 length; // length of image data (or 0 to use existing

// data, and update transparent,
// xOffset and yOffset only)

22

This manual is related to the following products: