VDPreflightGlobalRect
You can use theVDPreflightGlobalRectfunction in your application to verify that a video digitizer component can support a set of destination settings intended for use with theVDSetPlayThruGlobalRectfunction (described in the previous section).
pascal VideoDigitizerError VDPreflightGlobalRect (VideoDigitizerComponent ci, GrafPtr theWindow, Rect *globalRect);
ci- Specifies the video digitizer component for the request. Applications obtain this reference from the Component Manager's
OpenComponentfunction.theWindow- Contains a pointer to the destination window.
globalRect- Contains a pointer to a rectangle that specifies the size and location of the video destination. This rectangle must be in the coordinate system of the destination window specified by the
theWindowparameter. If the video digitizer component cannot accommodate this rectangle, it changes the coordinates in the structure to specify a rectangle that it can support and sets the result toqtParamErr.DESCRIPTION
The application provides the desired settings as parameters to this function. The video digitizer component then examines those settings. If the digitizer component can support the specified settings, it sets the result code tonoErr. If the digitizer component cannot support the settings, it alters the input settings to reflect values that it can support and returns a result code ofqtParamErr.Applications should use this function to determine whether a video digitizer supports placing destination video into a rectangle that crosses screens. Digitizers that do not support this capability return a result of
digiUnimpErr.RESULT CODES
noErr 0 No error digiUnimpErr -2201 Function not supported qtParamErr -2202 Invalid parameter value