#include <c4d_basebitmap.h>
The movie loader class is used to read movie streams.
公共成员函数 |
|
| IMAGERESULT | Open (const Filename &fn) |
| void | 关闭 (void) |
| BaseBitmap * | 读取 ( Int32 new_frame_idx=-1, Int32 *_result=nullptr) |
| Int32 | GetInfo ( Float *_fps) |
私有成员函数 |
|
| MovieLoader () | |
| ~MovieLoader () | |
| void | InitData (void) |
| void | FreeData (void) |
Private Attributes |
|
| BitmapLoaderPlugin * | plugin |
| BitmapLoaderAnimatedData | plugin_data |
| BaseBitmap * | bm |
| Bool | is_movie |
| Int32 | frame_cnt |
| Float | fps |
| Int32 | frame_idx |
| IMAGERESULT | result |
Alloc/Free |
|
| static MovieLoader * | Alloc (void) |
| static void | Free ( MovieLoader *&ml) |
|
|
|
private |
|
private |
|
static |
Allocates a movie loader. Destroy the allocated movie loader with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Destructs movie loaders allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
| [in] | ml | The ml to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
| IMAGERESULT Open | ( | const Filename & | fn | ) |
Opens a movie file.
| [in] | fn | The filename of the movie clip to open. |
| void Close | ( | void | ) |
Close the loaded movie file.
| BaseBitmap * Read | ( | Int32 |
new_frame_idx
=
-1
,
|
| Int32 * |
_result
=
nullptr
|
||
| ) |
Reads a frame of the loaded movie clip.
| [in] | new_frame_idx | The frame number of the frame to be read. |
| [out] | _result | The result. Assigned one of these values: IMAGERESULT |
| Int32 GetInfo | ( | Float * | _fps | ) |
Gets information about the movie's frame count and frames per second.
| [out] | _fps | Assigned the frames per second. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |