Appendix b: extended osd example source code, Structures – Sensoray 2253 Windows User Manual
Page 57

Appendix B: Extended OSD example source code
Structures
#define MID2253_MAX_OSDTEXT 80
typedef struct mid2253_osd_text
{
int osdOn; //OSD on if != 0, 1=8x14 font, 2=16x16 font
int osdChan; // osd channel to update. osdChan=0 for stream A,
osdChan=1 for stream B, osdChan=2 for output
int transparent; //transparent OSD if !=0, 1=100%, 2=50%, 3=25%
int positionTop; //see xoff, yoff below
int ddmm; //date format 0=mm-dd 1=dd-mm 2=mmm-dd, 3=dd-mmm-
4=mmm dd, 5=ddmmm, 6=dd.mm.
int year2; // year display mode (year2 = 1 means 2 digits, year2=0 means
4 digits)
int fraction; // whether to display fraction of seconds
unsigned char line[MID2253_MAX_OSDTEXT]; // ascii string of text (null
terminated)
int xoffset; //x offset: if positionTop=1, relative to top. if positionTop=0,
relative to bottom
int yoffset; //y offset: if positionTop=1, relative to top. if positionTop=0,
relative to bottom
} MID2253_OSD_TEXT;
#define MID2253_MAX_OSDLONGTEXT 160
typedef struct mid2253_osd_longtext
{
int osdOn; //OSD on if != 0, 1=8x14 font, 2=16x16 font
int osdChan; // osd channel to update. osdChan=0 for stream A,
osdChan=1 for stream B, osdChan=2 for output
int transparent; //transparent OSD if !=0, 1=100%, 2=50%, 3=25%
57