2
2
mkvmerge -- utility for splicing together matroska files
3
3
from component media subtypes
5
Distributed under the GPL
5
Distributed under the GPL v2
6
6
see the file COPYING for details
7
7
or visit http://www.gnu.org/copyleft/gpl.html
51
51
class mm_text_io_c;
53
typedef std::shared_ptr<KaxChapters> kax_chapters_cptr;
53
using kax_chapters_cptr = std::shared_ptr<KaxChapters>;
56
56
parse_chapters(const std::string &file_name, int64_t min_tc = 0, int64_t max_tc = -1, int64_t offset = 0, const std::string &language = "", const std::string &charset = "",
57
bool exception_on_error = false, bool *is_simple_format = nullptr, KaxTags **tags = nullptr);
57
bool exception_on_error = false, bool *is_simple_format = nullptr, std::unique_ptr<KaxTags> *tags = nullptr);
60
60
parse_chapters(mm_text_io_c *io, int64_t min_tc = 0, int64_t max_tc = -1, int64_t offset = 0, const std::string &language = "", const std::string &charset = "",
61
bool exception_on_error = false, bool *is_simple_format = nullptr, KaxTags **tags = nullptr);
61
bool exception_on_error = false, bool *is_simple_format = nullptr, std::unique_ptr<KaxTags> *tags = nullptr);
63
63
bool probe_simple_chapters(mm_text_io_c *in);
64
64
kax_chapters_cptr parse_simple_chapters(mm_text_io_c *in, int64_t min_tc, int64_t max_tc, int64_t offset, const std::string &language, const std::string &charset);
66
66
extern std::string g_cue_to_chapter_name_format;
67
67
bool probe_cue_chapters(mm_text_io_c *in);
68
kax_chapters_cptr parse_cue_chapters(mm_text_io_c *in, int64_t min_tc, int64_t max_tc, int64_t offset, const std::string &language, const std::string &charset, KaxTags **tags = nullptr);
68
kax_chapters_cptr parse_cue_chapters(mm_text_io_c *in, int64_t min_tc, int64_t max_tc, int64_t offset, const std::string &language, const std::string &charset, std::unique_ptr<KaxTags> *tags = nullptr);
70
70
void write_chapters_simple(int &chapter_num, KaxChapters *chapters, mm_io_c *out);