About
The MovieLoader class is used to load image data from a movie file.
- Warning
- For MAXON API media input and output see Media Sessions Manual.
Allocation/Deallocation
A MovieLoader can be created with the usual tools:
Functionality
A MovieLoader object simply opens a movie file to read its content:
- Note
- See also GeGetMovieInfo().
if (movieLoader == nullptr)
const IMAGERESULT res = movieLoader->Open(selectedMovieFile);
const Int32 frames = movieLoader->GetInfo(&fps);
for (
Int32 i = 0; i < frames; ++i)
{
BaseBitmap*
const frameContent = movieLoader->Read(i, &frameResult);
if (frameResult != imageOK)
if (frameContent == nullptr)
}
movieLoader->Close();
maxon::Url MaxonConvert(const Filename &fn, MAXONCONVERTMODE convertMode)
@ NONE
No check if file exists under case-sensitive drives.
Bool ShowBitmap(const Filename &fn)
Definition: ge_autoptr.h:37
Definition: c4d_basebitmap.h:415
maxon::Int32 Int32
Definition: ge_sys_math.h:60
maxon::Float Float
Definition: ge_sys_math.h:66
IMAGERESULT
Definition: ge_prepass.h:3731
@ OK
Image loaded/created.
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
Further Reading