#include <c4d_filterdata.h>
A data class for creating bitmap saver plugins.
使用
RegisterBitmapSaverPlugin()
to register a bitmap saver plugin.
公共成员函数 |
|
virtual IMAGERESULT | Save (const Filename &name, BaseBitmap *bm, BaseContainer *data, SAVEBIT savebits) |
virtual Bool | 编辑 ( BaseContainer *data) |
virtual Int32 | GetMaxAlphas ( BaseContainer *data) |
virtual Int32 | GetMaxResolution ( Bool layers) |
virtual void | CorrectResolution (const BaseContainer *settings, Int32 videoWidth, Int32 videoHeight, Int32 &videoWidthPadded, Int32 &videoHeightPadded) |
![]() |
|
BaseData () | |
virtual | ~BaseData (void) |
void | Destructor (void) |
Movie Saver |
|
virtual IMAGERESULT | Open (PluginMovieData *&md, const Filename &name, BaseBitmap *bm, BaseContainer *data, SAVEBIT savebits, Int32 fps) |
virtual IMAGERESULT | Write (PluginMovieData *md, BaseBitmap *bm) |
virtual IMAGERESULT | 关闭 (PluginMovieData *&md) |
virtual IMAGERESULT | AddSound (PluginMovieData *md, BaseSound *snd) |
|
virtual |
Called to save a bitmap to a file.
[in] | name | The name of the file to save. |
[in] | bm | The bitmap to save the image from. Cinema 4D owns the pointed bitmap. |
[in] | data | The settings container for the bitmap saver. These are stored with the general preferences. Cinema 4D owns the pointed container. |
[in] | savebits | The save bits flags: SAVEBIT |
|
virtual |
Called to open the settings dialog for the bitmap loader/saver.
[in] | data | The settings container for the bitmap saver. These are stored with the general preferences. Cinema 4D owns the pointed container. |
|
virtual |
Called to get the maximum number of alpha channels this format supports with the current settings.
[in] | data | The settings container for the bitmap saver. These are stored with the general preferences. Cinema 4D owns the pointed container. |
|
virtual |
Called to get the maximum resolution of the image format.
[in] | layers | true if layers are to be saved, otherwise false . |
|
virtual |
Corrects the given input size to the preferred saver size.
[in] | settings | Optional settings to use. |
[in] | videoWidth | Resolution width to check. |
[in] | videoHeight | Resolution height to check. |
[out] | videoWidthPadded | Corrected resolution width. |
[out] | videoHeightPadded | Corrected resolution height. |
|
virtual |
Called to open a movie for saving.
Here is some code from QuickTime saver:
[in,out] | md |
An opaque pointer that can be used by the bitmap saver to store data in (by casting it to the dummy type
PluginMovieData
).
|
[in] | name | The name of the file to load. |
[in] | bm | A typical frame of the movie, used for dimensions. |
[in] | data | The settings container for the bitmap saver. These are stored with the general preferences. Cinema 4D owns the pointed container. |
[in] | savebits | The save bits flags: SAVEBIT |
[in] | fps | The frames per second. |
|
virtual |
Called to write a frame to a movie.
[in] | md | An opaque pointer that can be set in Open and used here. |
[in] | bm | The bitmap frame to save to the movie. Cinema 4D owns the pointed bitmap. |
|
virtual |
Called to close a movie opened with Open .
[in] | md | The opaque pointer that can be set in Open and that should be freed and set to nullptr . |
void
.
|
virtual |
Adds sound to a movie.
[in] | md | An opaque pointer that can be set in Open and used here. |
[in] | snd | The sound to add. Cinema 4D owns the pointed sound. |