MovieLoader Manual
The MovieLoader class is used to load image data from a movie file.
A MovieLoader can be created with the usual tools:
A MovieLoader object simply opens a movie file to read its content:
// load movie file const IMAGERESULT res = movieLoader-> Open (selectedMovieFile); if (res != IMAGERESULT::OK ) return maxon::IoError( MAXON_SOURCE_LOCATION , MaxonConvert (selectedMovieFile, MAXONCONVERTMODE::NONE ), "Could not open movie file." _s);
// get movie info Float fps = 0.0; const Int32 frames = movieLoader-> GetInfo (&fps);
// load and display each frame for ( Int32 i = 0; i < frames; ++i) { // load frame Int32 frameResult; BaseBitmap * const frameContent = movieLoader-> 读取 (i, &frameResult);
// check if frame could been loaded
// show frame ShowBitmap (frameContent); } movieLoader-> 关闭 ();