comparison include/twjit.h @ 8:95f6c8ce33b0

twjit: prep for rework of time delta handling
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 05 Jul 2024 21:57:51 +0000
parents 668b84c52094
children 117fa99ff871
comparison
equal deleted inserted replaced
7:32cb5a2d1178 8:95f6c8ce33b0
89 * memory must remain valid, but content can change at any time. */ 89 * memory must remain valid, but content can change at any time. */
90 struct twrtp_jibuf_config *ext_config; 90 struct twrtp_jibuf_config *ext_config;
91 /* count of RTP timestamp units per quantum */ 91 /* count of RTP timestamp units per quantum */
92 uint32_t ts_quantum; 92 uint32_t ts_quantum;
93 /* quanta per second, used to scale max_future_sec */ 93 /* quanta per second, used to scale max_future_sec */
94 uint32_t quanta_per_sec; 94 uint16_t quanta_per_sec;
95 /* scaling factors for time delta conversions */
96 uint16_t ts_units_per_ms;
97 uint32_t ts_units_per_sec;
98 uint32_t ns_to_ts_units;
95 /* operational state */ 99 /* operational state */
96 enum twrtp_jibuf_state state; 100 enum twrtp_jibuf_state state;
97 struct twrtp_jibuf_sub sb[2]; 101 struct twrtp_jibuf_sub sb[2];
98 uint8_t read_sb; /* 0 or 1 */ 102 uint8_t read_sb; /* 0 or 1 */
99 uint8_t write_sb; /* ditto */ 103 uint8_t write_sb; /* ditto */