Graphics Data Management
If your media handler draws media data on the screen, you need to manage your media's graphics environment. The Movie Toolbox uses a number of functions to inform you about changes to the graphics environment. The Movie Toolbox only calls these functions if you have set thehandlerHasSpatialflag to 1 in theflagsparameter of theMediaSetHandlerCapabilitiesfunction.The Movie Toolbox calls your handler's
MediaSetGWorldfunction whenever your media's graphics port or graphics device has changed. TheMediaSetDimensionsfunction allows the Movie Toolbox to inform your handler about changes to its spatial dimensions. Whenever either the movie or track matrix changes, the Movie Toolbox calls yourMediaSetMatrixfunction. Similarly, if your media's clipping region changes, the Movie Toolbox calls yourMediaSetClipfunction.When it is building up a movie's image from its component tracks, the Movie Toolbox must be able to determine which tracks are transparent. The Movie Toolbox calls your
MediaGetTrackOpaquefunction to retrieve this information about your media.The Movie Toolbox calls your
MediaGetNextBoundsChangefunction so that it can learn when your media will next change its display shape. When the Movie Toolbox wants to find out the shape of the region into which you draw your media, it calls yourMediaGetSrcRgnfunction.
Subtopics
- MediaSetGWorld
- MediaSetDimensions
- MediaSetMatrix
- MediaSetClip
- MediaGetTrackOpaque
- MediaGetNextBoundsChange
- MediaGetSrcRgn