next up previous contents index
Next: FMPSetDestination Up: Picture placement Previous: Picture placement   Contents   Index

FMPAnalogOverlay

This function allows the user to put and set the video image onto VGA monitor.(Linux only)

DWORD FMPAnalogOverlay((DWORD SubCommand, DWORD dwArg1, DWORD dwArg2, DWORD dwArg3, DWORD dwArg4, DWORD dwArg5);

Arguments
DWORD SubCommand - AnaloyOverlay SubCommand
DWORD dwArg1 - Argument
DWORD dwArg2 - Argument
DWORD dwArg3 - Argument
DWORD dwArg4 - Argument
DWORD dwArg5 - Argument

FMPAnaloyOverlay SubCommand are:

1000 FMP_ANALOG_OVERLAY_ACCESS
dwArg1=0 pseudo-close
dwArg1=1 pseudo-open
1001 FMP_ANALOG_OVERLAY_GET
1002 FMP_ANALOG_OVERLAY_SET
1003 FMP_ANALOG_OVERLAY_AUTOCALIBRATION
dwArg2=0x88 YOffset autocalibration (horizontal at top pattern)
dwArg2=0x89 XOffset autocalibration (vertical at left pattern)
dwArg2=0x8a Correction autocalibration (vertical offset right pattern)
dwArg2=0x80 Color (WHITE) autocalibration (fulll white vertical bar pattern)
dwArg2=0x82 Color (GREY) autocalibration (half white vertical bar pattern)

FMPAnaloyOverlay General commands for dwArg1 are:

202 FMP_ANALOG_OVERLAY_ATTRIBUTE_VGAKEY
vgakey selection (dwArg2=R«16+G«8+B. indexed mode is not supported)
203 FMP_ANALOG_OVERLAY_ATTRIBUTE_DISPLAYRESOLUTION
send dwArg2=depth (8,16,24,32), dwArg3=physical display width, dwArg4=physical display height
204 FMP_ANALOG_OVERLAY_ATTRIBUTE_MODE
mode selection (dwArg2=0(none),1(rectangle),2(overlay))
205 FMP_ANALOG_OVERLAY_ATTRIBUTE_OVERLAY_CABLE_PRESENT
get only: 1=yes, 0=no

FMPAnaloyOverlay fine-tuning commands for dwArg1 are:

301 FMP_ANALOG_OVERLAY_ATTRIBUTE_XOFFSET
302 FMP_ANALOG_OVERLAY_ATTRIBUTE_YOFFSET
303 FMP_ANALOG_OVERLAY_ATTRIBUTE_VGACORRECTION
304 FMP_ANALOG_OVERLAY_ATTRIBUTE_VGARUPPER
305 FMP_ANALOG_OVERLAY_ATTRIBUTE_VGARLOWER
306 FMP_ANALOG_OVERLAY_ATTRIBUTE_VGAGUPPER
307 FMP_ANALOG_OVERLAY_ATTRIBUTE_VGAGLOWER
308 FMP_ANALOG_OVERLAY_ATTRIBUTE_VGABUPPER
309 FMP_ANALOG_OVERLAY_ATTRIBUTE_VGABLOWER
30a FMP_ANALOG_OVERLAY_ATTRIBUTE_FINEADJUSTMENT
30b FMP_ANALOG_OVERLAY_ATTRIBUTE_HFREQUENCY
30c FMP_ANALOG_OVERLAY_ATTRIBUTE_JITTERADJUSTMENT

Remarks
This function is not implemented for Windows CE. Here is a example code for usage:

For open connection
FMPAnalogOverlay(FMP_ANALOG_OVERLAY_ACCESS,1,0,0,0,0);

For close the connection
FMPAnalogOverlay(FMP_ANALOG_OVERLAY_ACCESS,0,0,0,0,0);

For set mode to overlay
FMPAnalogOverlay(FMP_ANALOG_OVERLAY_SET,FMP_ANALOG_OVERLAY_ATTRIBUTE_MODE,2,0,0,0);

For set vgacorrection to 1000
FMPAnalogOverlay(FMP_ANALOG_OVERLAY_SET,FMP_ANALOG_OVERLAY_ATTRIBUTE_VGACORRECTION,1000,0,0,0);

For save XOffset
DWORD param;
DWORD FMPreturn;
param=FMPAnalogOverlay(FMP_ANALOG_OVERLAY_GET,FMP_ANALOG_OVERLAY_ATTRIBUTE_XOFFSET,0,0,0,0);
FMPreturn=FMPWriteProfileWord(RMREG_XOFFSET,param);


next up previous contents index
Next: FMPSetDestination Up: Picture placement Previous: Picture placement   Contents   Index
mabelsha 2002-03-26