MovieLoader Class Reference

#include <c4d_basebitmap.h>

详细描述

The movie loader class is used to read movie streams.

注意
Has to be created with Alloc() and destroyed with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.

公共成员函数

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)

构造函数 & 析构函数文档编制

◆  MovieLoader()

MovieLoader () private

◆  ~MovieLoader()

~ MovieLoader () private

成员函数文档编制

◆  InitData()

void InitData ( void  )
private

◆  FreeData()

void FreeData ( void  )
private

◆  Alloc()

static MovieLoader * Alloc ( void  )
static

Allocates a movie loader. Destroy the allocated movie loader with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.

返回
The allocated movie loader, or nullptr if the allocation failed.

◆  Free()

static void Free ( MovieLoader *&  ml )
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.

◆  Open()

IMAGERESULT Open ( const Filename fn )

Opens a movie file.

参数
[in] fn The filename of the movie clip to open.
返回
The result. The possible values are: IMAGERESULT

◆  Close()

void Close ( void  )

Close the loaded movie file.

◆  Read()

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
返回
The frame's bitmap.

◆  GetInfo()

Int32 GetInfo ( Float _fps )

Gets information about the movie's frame count and frames per second.

参数
[out] _fps Assigned the frames per second.
返回
The frame count.

Member Data Documentation

◆  plugin

BitmapLoaderPlugin * plugin
private

◆  plugin_data

BitmapLoaderAnimatedData plugin_data
private

◆  bm

BaseBitmap * bm
private

◆  is_movie

Bool is_movie
private

◆  frame_cnt

Int32 frame_cnt
private

◆  fps

Float fps
private

◆  frame_idx

Int32 frame_idx
private

◆  result

IMAGERESULT result
private