Working With Media Samples
The Movie Toolbox provides a number of functions that allow applications to determine information about a movie's sample data. This section discusses these functions. Refer to "Adding Samples to Media Structures" beginning on page 2-254 for information about functions that allow you to retrieve sample data from a media.Your application can use the
GetMovieDataSize,GetTrackDataSize, andGetMediaDataSizefunctions to determine the size, in bytes, of the data stored in a media, movie, or track.You can use the
GetMediaSampleDescriptionCountandGetMediaSampleDescriptionfunctions to retrieve a media's sample descriptions. TheSetMediaSampleDescriptionfunction enables you to change the contents of a particular sample description associated with a media. TheGetMediaSampleCountfunction determines the number of samples in a media. TheSampleNumToMediaTimeandMediaTimeToSampleNumfunctions allow you to convert from a time value to a sample number and vice versa. You can use the functions described in "Finding Interesting Times" beginning on page 2-180 to locate specific samples in a media.
Subtopics
- GetMovieDataSize
- GetTrackDataSize
- GetMediaDataSize
- GetMediaSampleCount
- GetMediaSampleDescriptionCount
- GetMediaSampleDescription
- SetMediaSampleDescription
- MediaTimeToSampleNum
- SampleNumToMediaTime