Chapters.h 457 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <bfc/platform/types.h>
  3. #include <stdio.h>
  4. // IDs
  5. // these are slightly different from the matroska spec because we specify
  6. // values after vint decoding and they specify before
  7. const uint32_t mkv_segment_chapters = 0x43a770;
  8. namespace nsmkv
  9. {
  10. class Chapters
  11. {
  12. public:
  13. Chapters(void);
  14. ~Chapters(void);
  15. };
  16. // returns bytes read. 0 means EOF
  17. uint64_t ReadChaptersInfo(FILE *f, uint64_t size, nsmkv::Chapters &chapters);
  18. };