ChapterForge
Loading...
Searching...
No Matches
stbl_metadata_builder.hpp
Go to the documentation of this file.
1
//
2
// stbl_metadata_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
11
#include <memory>
12
#include <string>
13
#include <vector>
14
15
#include "
mp4_atoms.hpp
"
16
17
// Represents a timed metadata sample aligned to chapter timing.
18
struct
ChapterMetadataSample
{
19
std::string
payload
;
// UTF-8 content
20
uint32_t
start_ms
= 0;
// absolute start time in ms
21
};
22
23
std::unique_ptr<Atom>
build_metadata_stbl
(
const
std::vector<ChapterMetadataSample> &samples,
24
uint32_t track_timescale);
mp4_atoms.hpp
ChapterMetadataSample::payload
std::string payload
Definition
stbl_metadata_builder.hpp:19
build_metadata_stbl
std::unique_ptr< Atom > build_metadata_stbl(const std::vector< ChapterMetadataSample > &samples, uint32_t track_timescale)
ChapterMetadataSample::start_ms
uint32_t start_ms
Definition
stbl_metadata_builder.hpp:20
ChapterMetadataSample
Definition
stbl_metadata_builder.hpp:18
include
stbl_metadata_builder.hpp
Generated by
1.9.8