ChapterForge
Loading...
Searching...
No Matches
hdlr_builder.hpp
Go to the documentation of this file.
1//
2// hdlr_builder.hpp
3// ChapterForge
4//
5// Created by Till Toenshoff on 12/9/25.
6// Copyright © 2025 Till Toenshoff. All rights reserved.
7//
8
9#pragma once
10#include <memory>
11#include <string>
12
13#include "mp4_atoms.hpp"
14
15// Apple-style handler boxes:
16//
17// Audio track:
18// handler_type = "soun"
19// handler_name = "SoundHandler"
20//
21// Text chapter tracks:
22// handler_type = "text"
23// handler_name = e.g. "Chapter Titles", "Chapter Artist"
24//
25// Image chapter track:
26// handler_type = "vide"
27// handler_name = "Chapter Images"
28
29std::unique_ptr<Atom> build_hdlr_sound();
30std::unique_ptr<Atom> build_hdlr_text(const std::string &name = "Chapter Titles");
31std::unique_ptr<Atom> build_hdlr_metadata(const std::string &name = "Chapter Metadata");
32std::unique_ptr<Atom> build_hdlr_video();
std::unique_ptr< Atom > build_hdlr_text(const std::string &name="Chapter Titles")
std::unique_ptr< Atom > build_hdlr_video()
std::unique_ptr< Atom > build_hdlr_metadata(const std::string &name="Chapter Metadata")
std::unique_ptr< Atom > build_hdlr_sound()