Chapter list.
More...
Chapter list.
Chapters in gavl are simply seekpoints with (optionally) associated names.
Since 1.5.0
◆ gavl_chapter_list_create()
Create chapter list.
- Parameters
-
| num_chapters | Initial number of chapters |
◆ gavl_chapter_list_copy()
Copy chapter list.
- Parameters
-
◆ gavl_chapter_list_destroy()
Destroy chapter list.
- Parameters
-
◆ gavl_chapter_list_insert()
| GAVL_PUBLIC void gavl_chapter_list_insert |
( |
gavl_chapter_list_t * | list, |
|
|
int | index, |
|
|
int64_t | time, |
|
|
const char * | name ) |
Insert a chapter into a chapter list.
- Parameters
-
| list | A chapter list |
| index | Position (starting with 0) where the new chapter will be placed |
| time | Start time of the chapter |
| name | Chapter name (or NULL) |
◆ gavl_chapter_list_delete()
Delete a chapter from a chapter list.
- Parameters
-
| list | A chapter list |
| index | Position (starting with 0) of the chapter to delete |
◆ gavl_chapter_list_get_current()
Get current chapter.
- Parameters
-
| list | A chapter list |
| time | Playback time |
- Returns
- The current chapter index
Use this function after seeking to signal a chapter change
◆ gavl_chapter_list_changed()
Get current chapter.
- Parameters
-
| list | A chapter list |
| time | Playback time |
| current_chapter | Returns the current chapter |
- Returns
- 1 if the chapter changed, 0 else
Use this function during linear playback to signal a chapter change
◆ gavl_chapter_list_dump()
Dump a chapter list to stderr.
- Parameters
-
Use this for debugging