#include <c4d_basebitmap.h>
The movie saver class is used to write movie streams.
公共成员函数 |
|
IMAGERESULT | Open (const Filename &name, BaseBitmap *bm, Int32 fps, Int32 format, BaseContainer *data, SAVEBIT savebits, BaseSound *sound=nullptr) |
IMAGERESULT | Write ( BaseBitmap *bm) |
void | 关闭 (void) |
Bool | Choose ( Int32 format, BaseContainer *bc) |
私有成员函数 |
|
MovieSaver () | |
~MovieSaver () |
Alloc/Free |
|
static MovieSaver * | Alloc (void) |
static void | Free ( MovieSaver *&ms) |
|
|
|
static |
Allocates a movie saver. Destroy the allocated movie saver with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Destructs movie savers allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
[in] | ms | The movie saver to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
IMAGERESULT Open | ( | const Filename & | name , |
BaseBitmap * | bm , | ||
Int32 | fps , | ||
Int32 | format , | ||
BaseContainer * | data , | ||
SAVEBIT | savebits , | ||
BaseSound * |
sound
=
nullptr
|
||
) |
Opens a movie stream to the file name. The resolution and bit depth are defined by the first frame in bm . The framerate is specified by fps .
[in] | name | A valid filename to save the movie to. |
[in] | bm | A typical frame of the movie, used for dimensions. The caller owns the pointed bitmap. |
[in] | fps | The frame rate in frames per second. |
[in] | format | The file format. Valid values are: |
[in] | data |
The additional settings for the file format. The caller owns the pointed container. Valid IDs are:
For FILTER_AVI : AVISAVER For FILTER_MOVIE : QTSAVER |
[in] | savebits | Can be a combination of the following flags: SAVEBIT |
[in] | sound | The sound data to be written to the movie. |
IMAGERESULT Write | ( | BaseBitmap * | bm | ) |
Adds another frame to the end of the movie stream.
[in] | bm | The frame to add. The pointed bitmap is copied. |
void Close | ( | void | ) |
Closes the movie stream.
Bool Choose | ( | Int32 | format , |
BaseContainer * | bc | ||
) |
Opens the standard compression chooser for movie formats. The new settings are stored in bc if the user clicks OK .
[in] | format | The file format. Valid values are: |
[out] | bc | Used to pass the default settings, and to read the settings the user has chosen. The caller owns the pointed container. |