|  | libgpac
    Documentation of the core library of GPAC | 
Helper functions for WebVTT parsing. More...
 Collaboration diagram for WebVTT parsing:
 Collaboration diagram for WebVTT parsing:| Data Structures | |
| struct | GF_WebVTTTimestamp | 
| struct | GF_WebVTTCue | 
| Enumerations | |
| enum | GF_WebVTTCuePropertyType { WEBVTT_ID , WEBVTT_SETTINGS , WEBVTT_PAYLOAD , WEBVTT_POSTCUE_TEXT , WEBVTT_PRECUE_TEXT } | 
| Functions | |
| u64 | gf_webvtt_timestamp_get (GF_WebVTTTimestamp *wvtt_ts) | 
| void | gf_webvtt_timestamp_set (GF_WebVTTTimestamp *wvtt_ts, u64 value) | 
| void | gf_webvtt_timestamp_dump (GF_WebVTTTimestamp *wvtt_ts, FILE *dump, Bool dump_hour) | 
| void | gf_webvtt_cue_del (GF_WebVTTCue *cue) | 
| GF_Err | gf_webvtt_dump_header_boxed (FILE *dump, const u8 *data, u32 dataLength, u32 *printLength) | 
| GF_List * | gf_webvtt_parse_cues_from_data (const u8 *data, u32 dataLength, u64 start, u64 end) | 
Helper functions for WebVTT parsing.
This section documents the audio and video parsing functions of the GPAC framework.
| struct GF_WebVTTCue | 
WebVTT cue structure
 Collaboration diagram for GF_WebVTTCue:
 Collaboration diagram for GF_WebVTTCue:| Data Fields | ||
|---|---|---|
| GF_WebVTTTimestamp | start | |
| GF_WebVTTTimestamp | end | |
| char * | id | |
| char * | settings | |
| char * | text | |
| char * | pre_text | |
| char * | post_text | |
| Bool | split | |
| GF_WebVTTTimestamp | orig_start | |
| GF_WebVTTTimestamp | orig_end | |
| u64 gf_webvtt_timestamp_get | ( | GF_WebVTTTimestamp * | wvtt_ts | ) | 
gets webvtt timestamp
| wvtt_ts | the target WebVTT timestamp | 
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void gf_webvtt_timestamp_set | ( | GF_WebVTTTimestamp * | wvtt_ts, | 
| u64 | value | ||
| ) | 
sets webvtt timestamp
| wvtt_ts | the target WebVTT timestamp | 
| value | timestamp in millisecond | 
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void gf_webvtt_timestamp_dump | ( | GF_WebVTTTimestamp * | wvtt_ts, | 
| FILE * | dump, | ||
| Bool | dump_hour | ||
| ) | 
dumps webvtt timestamp
| wvtt_ts | the target WebVTT timestamp | 
| dump | the output file to write to | 
| dump_hour | if GF_TRUE, dumps hours | 
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void gf_webvtt_cue_del | ( | GF_WebVTTCue * | cue | ) | 
destroys a WebVTT cue
| cue | the target WebVTT cue | 
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| GF_Err gf_webvtt_dump_header_boxed | ( | FILE * | dump, | 
| const u8 * | data, | ||
| u32 | dataLength, | ||
| u32 * | printLength | ||
| ) | 
dumps webvtt sample boxes
| dump | the output file to write to | 
| data | the WebVTT ISOBMFF sample payload | 
| dataLength | the size of the payload in bytes | 
| printLength | set to the printed size in bytes | 
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:dumps webvtt sample boxes
| data | the WebVTT ISOBMFF sample payload | 
| dataLength | the size of the payload in bytes | 
| start | the start time in milliseconds of the WebVTT cue | 
| end | the end time in milliseconds of the WebVTT cue | 
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function: