Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ca-html-player.H File Reference

Self-contained HTML trajectory player for CA frames. More...

#include <concepts>
#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <fstream>
#include <ostream>
#include <sstream>
#include <string>
#include <utility>
#include <ah-errors.H>
#include <tpl_array.H>
#include <ca-frame-stream.H>
#include <ca-io.H>
#include <tpl_ca_concepts.H>
Include dependency graph for ca-html-player.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Aleph::CA::HTML_Player_Options
 Options for generated HTML players. More...
 
struct  Aleph::CA::ca_html_detail::Frame
 
class  Aleph::CA::HTML_Player_Frame_Sink< Mapper >
 Sink that writes a self-contained HTML playback file. More...
 

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 
namespace  Aleph::CA
 
namespace  Aleph::CA::ca_html_detail
 

Functions

std::string Aleph::CA::ca_html_detail::html_escape (const std::string &s)
 
std::string Aleph::CA::ca_html_detail::rgb_hex (const RGB8 c)
 
void Aleph::CA::ca_html_detail::write_frame_json (std::ostream &out, const Frame &f)
 
template<typename Mapper >
 Aleph::CA::HTML_Player_Frame_Sink (std::filesystem::path, Mapper, HTML_Player_Options={}) -> HTML_Player_Frame_Sink< Mapper >
 

Detailed Description

Self-contained HTML trajectory player for CA frames.

Frames are embedded as JSON RGB pixel arrays and rendered with a tiny canvas script. The generated file has no external resources, so it can be shared as a single artifact and opened directly in a browser.

Author
Leandro Rabindranath Leon

Definition in file ca-html-player.H.