Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
TrajectoryExportManager.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
11#include <cstdint>
12#include <span>
13#include <string>
14#include <vector>
15
16namespace correlation::app {
17
23public:
32 [[nodiscard]] static bool
33 exportPngSequenceZip(const std::string &filepath,
34 const std::vector<std::vector<std::uint8_t>> &frames, std::uint32_t width,
35 std::uint32_t height);
36
46 [[nodiscard]] static bool exportAnimatedGif(const std::string &filepath,
47 const std::vector<std::vector<std::uint8_t>> &frames,
48 std::uint32_t width, std::uint32_t height,
49 std::uint16_t delay_cs = 6);
50};
51
52} // namespace correlation::app
Encodes rendered RGBA8 trajectory frames into PNG-sequence ZIP archives or Animated GIFs.
Definition TrajectoryExportManager.hpp:22
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.
Definition TrajectoryExportManager.cpp:173
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.
Definition TrajectoryExportManager.cpp:214
Definition AppController.hpp:27