OMXOpenDevice() -- Open an OMX device

Open a specific device for output.

When we open a device, the needed information is different for each device. For a screen device, we need the SGLWindow and for a PostScript device an output filename. To be able to have a function that is able to work for any kind of device, I used a variable list of argument. By this way, you can satisfy arguments of any device's opening function.

See Also: OMXCreateVDS()

CALL SEQUENCE

void  OMXOpenDevice(psVDS, pszDeviceName ,...)
VDS     psVDS;
           Virtual Display Space.
char *  pszDeviceName;
           Name of requested device. Must exist inside the global 
           list gpsDeviceInOMX.
Device specific arguments should be added to the argument list.

EXAMPLE

If you want to open a screen device, the three needed arguments are:

 1-The window (SGLWindow)
 2-The height (int)
 3-The width  (int)

 OMXOpenDevice(psVDS,pszDeviceName,pseWindows,nHeigth,nWidth);

About PCI Help Gateway