Lines Matching refs:time
29 #include <time.h>
42 #include "libavutil/time.h"
74 int segment_idx_wrap_nb; ///< number of time the index has wraped
85 int use_clocktime; ///< flag to cut segments at regular clock time
86 int64_t clocktime_offset; //< clock offset for cutting the segments at regular clock time
88 int64_t last_val; ///< remember last time for wrap around detection
95 int64_t time; ///< segment duration
202 time(&now0);
490 av_log(log_ctx, AV_LOG_ERROR, "Empty time specification in times list %s\n",
498 "Invalid time duration specification '%s' in times list %s\n", tstr, times_str);
506 "Specified time %f is smaller than the last time %f\n",
694 if ((seg->time != 2000000) + !!seg->times_str + !!seg->frames_str > 1) {
709 if (seg->time <= 0) {
713 seg->clocktime_offset = seg->time - (seg->clocktime_offset % seg->time);
880 wrapped_val = (usecs + seg->clocktime_offset) % seg->time;
885 end_pts = seg->time * (seg->segment_count + 1);
902 /* sanitize end time in case last packet didn't have a defined duration */
1034 { "segment_time", "set segment duration", OFFSET(time),AV_OPT_TYPE_DURATION, {.i64 = 2000000}, INT64_MIN, INT64_MAX, E },
1036 { "segment_times", "set segment split time points", OFFSET(times_str),AV_OPT_TYPE_STRING,{.str = NULL}, 0, 0, E },