A function identified as deprecated has been superseded and may become unsupported in the future.
If a menu button contains a specified point, the button’s action is executed and the button’s index is passed back. (Deprecated in Mac OS X v10.5. Use DVDDoMenuCGClick
instead.)
OSStatus DVDDoMenuClick ( Point inPortPt, SInt32 *outIndex );
A point specified using window local coordinates.
A pointer to an integer. On return, if the specified point lies inside the clickable area of a menu button, the integer contains the 1-based index of the button.
A result code. See “DVD Playback Result Codes.”
This function checks to see if a specified point lies inside one of the buttons in the current menu. If so, this function executes the button’s action and passes back its index. Note that the bounding rectangle of a button is not necessarily the same as the clickable area; not all buttons even have a clickable area. See also DVDDoButtonActivate
.
DVDPlayback.h
If a specified point lies inside a menu button, focuses the button and passes back its index. (Deprecated in Mac OS X v10.5. Use DVDDoMenuCGMouseOver
instead.)
OSStatus DVDDoMenuMouseOver ( Point inPortPt, SInt32 *outIndex );
A point specified using window local coordinates.
A pointer to an integer. On return, if the point lies inside the button in focus, the integer contains the 1-based index of the button.
A result code. See “DVD Playback Result Codes.”
See also DVDDoUserNavigation
.
DVDPlayback.h
Gets the bounds in which to display the video. (Deprecated in Mac OS X v10.5. Use DVDGetVideoCGBounds
instead.)
OSStatus DVDGetVideoBounds ( Rect *outPortRect );
A pointer to a rectangle. On return, the rectangle contains the current bounds of the video area in window local coordinates.
A result code. See “DVD Playback Result Codes.”
This function gets the video bounding rectangle previously set by calling the function DVDSetVideoBounds
.
DVDPlayback.h
Gets the graphics device for the current DVD-Video playback session. (Deprecated in Mac OS X v10.5. Use DVDGetVideoDisplay
instead.)
OSStatus DVDGetVideoDevice ( GDHandle *outDevice );
A pointer to a graphics device handle. On return, the device handle is set to the current video playback device.
A result code. See “DVD Playback Result Codes.”
Before calling this function, you need to set the video playback device using DVDSetVideoDevice
or DVDSwitchToDevice
.
DVDPlayback.h
Gets the key color used by the video driver. (Deprecated in Mac OS X v10.5. There is no replacement function.)
OSStatus DVDGetVideoKeyColor ( RGBColor *outKeyColor );
A pointer to an RGB color structure. On return, this structure contains the red, green, and blue color values for the color black.
A result code. See “DVD Playback Result Codes.”
This function does nothing and returns the color black.
DVDPlayback.h
Gets the graphics port of the Carbon window in use for DVD-Video playback. (Deprecated in Mac OS X v10.5. Use DVDGetVideoWindowRef
instead.)
OSStatus DVDGetVideoPort ( CGrafPtr *outVidPort );
A pointer to a QuickDraw graphics port. On return, the graphics port of the Carbon window currently in use for DVD-Video playback, or NULL
if there is no Carbon window.
A result code. See “DVD Playback Result Codes.”
DVDPlayback.h
Determines whether a graphics device supports DVD-Video playback. (Deprecated in Mac OS X v10.5. Use DVDIsSupportedDisplay
instead.)
OSStatus DVDIsSupportedDevice ( GDHandle inDevice, Boolean *outSupported );
A handle to the GDevice
structure for the graphics device you want to use for video playback.
A pointer to a Boolean variable. On return, a value of TRUE
indicates that the specified graphics device can be used for DVD-Video playback. A value of FALSE
indicates the device cannot be used for this purpose. If the value is FALSE
, the device may require a different video driver than the one currently in use.
A result code. See “DVD Playback Result Codes.”
For this function to work properly, you must first call the function DVDSetVideoPort
with a valid graphics port.
DVDPlayback.h
Sets the bounds in which to display the video. (Deprecated in Mac OS X v10.5. Use DVDSetVideoCGBounds
instead.)
OSStatus DVDSetVideoBounds ( Rect *inPortRect );
A pointer to a rectangle that contains the desired bounds in window local coordinates.
A result code. See “DVD Playback Result Codes.”
This function is used to set the area inside the current window in which to display the video. The video area is not required to fill the entire window. Generally you should set the video area to be smaller than the window whenever the aspect ratio of the current title and window are different. To find the aspect ratio of the current title, use the function DVDGetAspectRatio
.
Because the aspect ratios of the titles in a DVD-Video media folder are not always the same, you may need to call this function repeatedly to reset the video area as the user makes different viewing choices.
DVDPlayback.h
Sets the graphics device for the current DVD-Video playback session. (Deprecated in Mac OS X v10.5. Use DVDSetVideoDisplay
instead.)
OSStatus DVDSetVideoDevice ( GDHandle inDevice );
A handle to the GDevice
structure for the graphics device you want to use for video playback.
A result code. See “DVD Playback Result Codes.”
You need to call this function or DVDSetVideoDisplay
each time you move the video playback window to a new graphics device. To avoid degrading video performance, you should not attempt to draw a video playback window that spans two different devices.
DVDPlayback.h
Enables or disables DVD-Video playback in a Carbon window. (Deprecated in Mac OS X v10.5. Use DVDSetVideoWindowRef
instead.)
OSStatus DVDSetVideoPort ( CGrafPtr inVidPort );
The QuickDraw graphics port associated with a Carbon window, or NULL
. For information about when to pass NULL
, see the discussion below.
A result code. See “DVD Playback Result Codes.”
If you’re using a Carbon window for DVD-Video playback, you need to use this function in two situations:
After calling the function DVDInitialize
to start a new DVD-Video playback session, you should call this function and pass the graphics port for the window.
When video is not playing and you want to draw into the area of the window you set by calling the function DVDSetVideoBounds
, you should call this function and pass NULL
in the inVidPort
parameter. When you are finished drawing into the video area of the window and you are ready to resume video playback, you should call this function again and pass the window port in the inVidPort
parameter.
DVDPlayback.h
If a graphics device supports DVD-Video playback, sets the device for the current playback session. (Deprecated in Mac OS X v10.5. Use DVDSwitchToDisplay
instead.)
OSStatus DVDSwitchToDevice ( GDHandle newDevice, Boolean *outSupported );
A handle to the GDevice
structure for the graphics device you want to use for video playback.
A pointer to a Boolean variable. On return, a value of TRUE
indicates that the specified graphics device can be used for DVD-Video playback. A value of FALSE
indicates the device cannot be used for this purpose. If the value is FALSE
, the current video playback device remains unchanged.
A result code. If the specified device is not supported, this function returns an error and maintains the current device. See “DVD Playback Result Codes.”
This convenience function is equivalent to calling the function DVDIsSupportedDevice
followed by a call to DVDSetVideoDevice
. This function works correctly even if there is no current video playback device.
DVDPlayback.h
© 2005, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-06-28)