Lines Matching defs:timebase
946 // Convert duration parameter from stream timebase to microseconds.
1032 static int64_t timebase_units_to_ticks(const vpx_rational_t *timebase,
1034 return n * TICKS_PER_SEC * timebase->num / timebase->den;
1037 static int64_t ticks_to_timebase_units(const vpx_rational_t *timebase,
1039 const int64_t round = (int64_t)TICKS_PER_SEC * timebase->num / 2 - 1;
1040 return (n * timebase->den + round) / timebase->num / TICKS_PER_SEC;
1071 const vpx_rational_t *const timebase = &ctx->cfg.g_timebase;
1149 int64_t dst_time_stamp = timebase_units_to_ticks(timebase, pts);
1151 timebase_units_to_ticks(timebase, pts + duration);
1219 ticks_to_timebase_units(timebase, dst_time_stamp);
1221 timebase, dst_end_time_stamp - dst_time_stamp);
1237 pkt.data.frame.pts = ticks_to_timebase_units(timebase, dst_time_stamp);
1239 timebase, dst_end_time_stamp - dst_time_stamp);