Functions | |
| int | kate_granule_shift (const kate_info *ki) |
| kate_int64_t | kate_time_granule (const kate_info *ki, kate_float base, kate_float offset) |
| int | kate_granule_split_time (const kate_info *ki, kate_int64_t granulepos, kate_float *base, kate_float *offset) |
| kate_float | kate_granule_time (const kate_info *ki, kate_int64_t granulepos) |
| kate_int64_t | kate_duration_granule (const kate_info *ki, kate_float duration) |
| kate_float | kate_granule_duration (const kate_info *ki, kate_int64_t duration) |
| kate_int64_t kate_duration_granule | ( | const kate_info * | ki, | |
| kate_float | duration | |||
| ) |
Converts a duration to a granule duration
| ki | the kate_info structure describing the granule encoding setup | |
| duration | the duration in seconds to convert to a granulepos offset |
KATE_E_* error
| kate_float kate_granule_duration | ( | const kate_info * | ki, | |
| kate_int64_t | duration | |||
| ) |
Converts a granule offset position to a time in seconds.
| ki | the kate_info structure describing the granule encoding setup | |
| duration | the granulepos offset to convert to a time |
KATE_E_* error
| int kate_granule_shift | ( | const kate_info * | ki | ) |
Returns the granule shift for the given stream
| ki | the kate_info structure describing the granule encoding setup |
KATE_E_* error
| int kate_granule_split_time | ( | const kate_info * | ki, | |
| kate_int64_t | granulepos, | |||
| kate_float * | base, | |||
| kate_float * | offset | |||
| ) |
Converts a granule position to a base+offset time representation in seconds.
| ki | the kate_info structure describing the granule encoding setup | |
| granulepos | the granulepos to convert to a time representation | |
| base | a pointer where to store the base part of the time corresponding to the granulepos | |
| offset | a pointer where to store the offset part of the time corresponding to the granulepos |
KATE_E_* error
| kate_float kate_granule_time | ( | const kate_info * | ki, | |
| kate_int64_t | granulepos | |||
| ) |
Converts a granule position to a time in seconds.
| ki | the kate_info structure describing the granule encoding setup | |
| granulepos | the granulepos to convert to a time |
KATE_E_* error
| kate_int64_t kate_time_granule | ( | const kate_info * | ki, | |
| kate_float | base, | |||
| kate_float | offset | |||
| ) |
Converts a base/offset pair in seconds to a granule position
| ki | the kate_info structure describing the granule encoding setup | |
| base | the base time in seconds to convert | |
| offset | the time offset in seconds to convert |
KATE_E_* error
1.5.4