~ubuntu-branches/ubuntu/wily/mkvtoolnix/wily

« back to all changes in this revision

Viewing changes to src/common/chapters/chapters.h

  • Committer: Package Import Robot
  • Author(s): Christian Marillat
  • Date: 2015-04-26 10:36:27 UTC
  • mfrom: (1.1.29) (4.2.45 sid)
  • Revision ID: package-import@ubuntu.com-20150426103627-k53p8hrai2ynikaa
Tags: 7.8.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
   mkvmerge -- utility for splicing together matroska files
3
3
   from component media subtypes
4
4
 
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
8
8
 
50
50
class mm_io_c;
51
51
class mm_text_io_c;
52
52
 
53
 
typedef std::shared_ptr<KaxChapters> kax_chapters_cptr;
 
53
using kax_chapters_cptr = std::shared_ptr<KaxChapters>;
54
54
 
55
55
kax_chapters_cptr
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);
58
58
 
59
59
kax_chapters_cptr
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);
62
62
 
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);
65
65
 
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);
69
69
 
70
70
void write_chapters_simple(int &chapter_num, KaxChapters *chapters, mm_io_c *out);
71
71