Encodes rendered RGBA8 trajectory frames into PNG-sequence ZIP archives or Animated GIFs.
More...
#include <TrajectoryExportManager.hpp>
|
| static bool | exportPngSequenceZip (const std::string &filepath, const std::vector< std::vector< std::uint8_t > > &frames, std::uint32_t width, std::uint32_t height) |
| | Writes a sequence of RGBA8 frames as numbered PNGs inside a single ZIP archive.
|
| static bool | exportAnimatedGif (const std::string &filepath, const std::vector< std::vector< std::uint8_t > > &frames, std::uint32_t width, std::uint32_t height, std::uint16_t delay_cs=6) |
| | Encodes RGBA8 frames into a self-contained looping GIF89a animation.
|
Encodes rendered RGBA8 trajectory frames into PNG-sequence ZIP archives or Animated GIFs.
◆ exportAnimatedGif()
| bool correlation::app::TrajectoryExportManager::exportAnimatedGif |
( |
const std::string & | filepath, |
|
|
const std::vector< std::vector< std::uint8_t > > & | frames, |
|
|
std::uint32_t | width, |
|
|
std::uint32_t | height, |
|
|
std::uint16_t | delay_cs = 6 ) |
|
staticnodiscard |
Encodes RGBA8 frames into a self-contained looping GIF89a animation.
- Parameters
-
| [in] | filepath | Destination .gif path. |
| [in] | frames | Contiguous RGBA8 frame buffers (each size == width * height * 4). |
| [in] | width | Frame pixel width. |
| [in] | height | Frame pixel height. |
| [in] | delay_cs | Frame delay in centiseconds (e.g. 6 = ~16 FPS). |
- Returns
- True if GIF file was written successfully.
◆ exportPngSequenceZip()
| bool correlation::app::TrajectoryExportManager::exportPngSequenceZip |
( |
const std::string & | filepath, |
|
|
const std::vector< std::vector< std::uint8_t > > & | frames, |
|
|
std::uint32_t | width, |
|
|
std::uint32_t | height ) |
|
staticnodiscard |
Writes a sequence of RGBA8 frames as numbered PNGs inside a single ZIP archive.
- Parameters
-
| [in] | filepath | Destination .zip path. |
| [in] | frames | Contiguous RGBA8 frame buffers (each size == width * height * 4). |
| [in] | width | Frame pixel width. |
| [in] | height | Frame pixel height. |
- Returns
- True if archive was written successfully.
The documentation for this class was generated from the following files: