ChapterForge
Loading...
Searching...
No Matches
chapterforge.hpp File Reference
#include <cstdint>
#include <stdint.h>
#include <string>
#include <vector>
#include "chapter_image_sample.hpp"
#include "chapter_text_sample.hpp"
#include "metadata_set.hpp"
Include dependency graph for chapterforge.hpp:

Go to the source code of this file.

Classes

struct  chapterforge::Status
 Result object with success flag and optional error message. More...
 
struct  chapterforge::ReadResult
 Parse an existing M4A/MP4 file and return its chapter data. More...
 

Namespaces

namespace  chapterforge
 

Functions

std::string chapterforge::version_string ()
 Return the ChapterForge library version string.
 
Status chapterforge::mux_file_to_m4a (const std::string &input_audio_path, const std::string &chapter_json_path, const std::string &output_path, bool fast_start=true)
 Mux AAC input + chapter/text/image metadata into an M4A file (JSON driven).
 
Status chapterforge::mux_file_to_m4a (const std::string &input_audio_path, const std::vector< ChapterTextSample > &text_chapters, const std::vector< ChapterImageSample > &image_chapters, const MetadataSet &metadata, const std::string &output_path, bool fast_start=true)
 Mux AAC input + in-memory chapter data (titles + images + metadata).
 
Status chapterforge::mux_file_to_m4a (const std::string &input_audio_path, const std::vector< ChapterTextSample > &text_chapters, const MetadataSet &metadata, const std::string &output_path, bool fast_start=true)
 
Status chapterforge::mux_file_to_m4a (const std::string &input_audio_path, const std::vector< ChapterTextSample > &text_chapters, const std::vector< ChapterImageSample > &image_chapters, const std::string &output_path, bool fast_start=true)
 
Status chapterforge::mux_file_to_m4a (const std::string &input_audio_path, const std::vector< ChapterTextSample > &text_chapters, const std::vector< ChapterTextSample > &url_chapters, const std::vector< ChapterImageSample > &image_chapters, const std::string &output_path, bool fast_start=true)
 Mux AAC input + in-memory chapter data (with optional URL track).
 
Status chapterforge::mux_file_to_m4a (const std::string &input_audio_path, const std::vector< ChapterTextSample > &text_chapters, const std::vector< ChapterTextSample > &url_chapters, const std::vector< ChapterImageSample > &image_chapters, const MetadataSet &metadata, const std::string &output_path, bool fast_start=true)
 Variant with explicit metadata; otherwise identical to the overload above.
 
ReadResult chapterforge::read_m4a (const std::string &path)