#include <c4d_basebitmap.h>
The movie saver class is used to write movie streams.
Public Member Functions | |
| IMAGERESULT | Open (const Filename &name, BaseBitmap *bm, Int32 fps, Int32 format, BaseContainer *data, SAVEBIT savebits, BaseSound *sound=nullptr) | 
| IMAGERESULT | Write (BaseBitmap *bm) | 
| void | Close () | 
| Bool | Choose (Int32 format, BaseContainer *bc) | 
Private Member Functions | |
| MovieSaver () | |
| ~MovieSaver () | |
Alloc/Free | |
| static MovieSaver * | Alloc () | 
| static void | Free (MovieSaver *&ms) | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  static | 
      
  | 
  static | 
| 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 | ( | ) | 
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. |