include/mp4v2/chapter.h Source File
1 #ifndef MP4V2_CHAPTER_H
2 #define MP4V2_CHAPTER_H
13 #define MP4V2_CHAPTER_TITLE_MAX 1023
48 MP4TrackId chapterTrackId,
49 MP4Duration chapterDuration,
50 const char* chapterTitle DEFAULT(0));
69 MP4TrackId refTrackId,
70 uint32_t timescale DEFAULT(0) );
84 MP4Timestamp chapterStart,
85 const char* chapterTitle DEFAULT(0));
148 uint32_t* chapterCount,
171 uint32_t chapterCount,
struct MP4Chapter_s MP4Chapter_t
Chapter item.
void MP4AddChapter(MP4FileHandle hFile, MP4TrackId chapterTrackId, MP4Duration chapterDuration, const char *chapterTitle=0)
Add a QuickTime chapter.
MP4ChapterType MP4ConvertChapters(MP4FileHandle hFile, MP4ChapterType toChapterType=MP4ChapterTypeQt)
Convert chapters to another type.
MP4Duration duration
duration of chapter in milliseconds
Definition: chapter.h:20
MP4ChapterType MP4SetChapters(MP4FileHandle hFile, MP4Chapter_t *chapterList, uint32_t chapterCount, MP4ChapterType chapterType=MP4ChapterTypeQt)
Set list of chapters OKOK.
@ MP4ChapterTypeAny
any or all known chapter types
Definition: chapter.h:29
#define MP4V2_CHAPTER_TITLE_MAX
The maximum length of a QuickTime chapter title (in 8-bit chars)
Definition: chapter.h:13
char title[1023+1]
title of chapter
Definition: chapter.h:21
#define MP4_INVALID_TRACK_ID
Constant: invalid MP4TrackId.
Definition: general.h:49
@ MP4ChapterTypeNero
Nero chapter type.
Definition: chapter.h:31
MP4ChapterType MP4GetChapters(MP4FileHandle hFile, MP4Chapter_t **chapterList, uint32_t *chapterCount, MP4ChapterType chapterType=MP4ChapterTypeQt)
Get list of chapters.
@ MP4ChapterTypeNone
no chapters found return value
Definition: chapter.h:28
MP4TrackId MP4AddChapterTextTrack(MP4FileHandle hFile, MP4TrackId refTrackId, uint32_t timescale=0)
Add a QuickTime chapter track.
MP4ChapterType
Known chapter types.
Definition: chapter.h:27
MP4ChapterType MP4DeleteChapters(MP4FileHandle hFile, MP4ChapterType chapterType=MP4ChapterTypeQt, MP4TrackId chapterTrackId=MP4_INVALID_TRACK_ID)
Delete chapters.
@ MP4ChapterTypeQt
QuickTime chapter type.
Definition: chapter.h:30
void MP4AddNeroChapter(MP4FileHandle hFile, MP4Timestamp chapterStart, const char *chapterTitle=0)
Add a Nero chapter.
Chapter item.
Definition: chapter.h:19