Configuring Movie Data Import Components
Your component may provide one or more configuration functions. These functions allow applications to configure your component before the Movie Toolbox calls your component to start the import process. Note that applications may call these functions directly.All of these functions are optional. If your component receives a request that it does not support, you should return the
badComponentSelectorerror code. In addition, your component should work properly even if none of these functions is called.These functions address a variety of configuration issues. The
MovieImportSetSampleDurationfunction allows an application to set
your component's sample duration. Use theMovieImportSetDuration
function to control the duration of the imported data. Applications can use theMovieImportSetDimensionsfunction to specify the spatial dimensions of a new track. Use theMovieImportSetSampleDescriptionfunction to supply a sample description structure to your movie data import component.The
MovieImportSetMediaFilefunction allows applications to direct your component's output to a specific media file. Applications can provide additional data to your component by calling theMovieImportSetAuxiliaryDatafunction. TheMovieImportSetChunkSizefunction allows applications to control the chunk size in the new media. Applications can inform you that the source data came from the scrap by calling yourMovieImportSetFromScrapfunction.Applications can specify a progress function for use by your component by calling the
MovieImportSetProgressProcfunction.Applications can instruct your component to display its user dialog box by calling the
MovieImportDoUserDialogfunction.