Lines Matching refs:tseq
109 struct sbg_script_tseq *tseq; member
525 struct sbg_script_tseq *tseq; in parse_time_sequence() local
560 tseq = inblock ? in parse_time_sequence()
561 alloc_array_elem((void **)&p->scs.block_tseq, sizeof(*tseq), in parse_time_sequence()
563 alloc_array_elem((void **)&p->scs.tseq, sizeof(*tseq), in parse_time_sequence()
565 if (!tseq) in parse_time_sequence()
567 tseq->ts = ts; in parse_time_sequence()
568 tseq->name = name.s; in parse_time_sequence()
569 tseq->name_len = name.e - name.s; in parse_time_sequence()
570 tseq->fade = fade; in parse_time_sequence()
584 int r, tseq; in parse_block_def() local
589 tseq = p->nb_block_tseq; in parse_block_def()
603 def->elements = tseq; in parse_block_def()
604 def->nb_elements = p->nb_block_tseq - tseq; in parse_block_def()
793 av_freep(&s->tseq); in free_script()
900 nb_rel += s->tseq[i].ts.type == 'N'; in expand_timestamps()
911 s->start_ts = s->tseq[0].ts.t; in expand_timestamps()
930 if (s->tseq[i].ts.type == 'N') { in expand_timestamps()
931 s->tseq[i].ts.t += now; in expand_timestamps()
932 s->tseq[i].ts.type = 'T'; /* not necessary */ in expand_timestamps()
937 s->start_ts = (s->opt_start_at_first && s->tseq) ? s->tseq[0].ts.t : now; in expand_timestamps()
945 if (av_sat_add64(s->tseq[i].ts.t, delta) != s->tseq[i].ts.t + (uint64_t)delta) in expand_timestamps()
947 if (s->tseq[i].ts.t + delta < cur_ts) in expand_timestamps()
949 cur_ts = s->tseq[i].ts.t += delta; in expand_timestamps()
955 int64_t t0, struct sbg_script_tseq *tseq) in expand_tseq() argument
962 if (tseq->lock++) { in expand_tseq()
964 tseq->name_len, tseq->name); in expand_tseq()
967 if (t0 + (uint64_t)tseq->ts.t != av_sat_add64(t0, tseq->ts.t)) in expand_tseq()
970 t0 += tseq->ts.t; in expand_tseq()
972 if (s->def[i].name_len == tseq->name_len && in expand_tseq()
973 !memcmp(s->def[i].name, tseq->name, tseq->name_len)) in expand_tseq()
978 tseq->name_len, tseq->name); in expand_tseq()
994 ev->ts = tseq->ts.t; in expand_tseq()
997 ev->fade = tseq->fade; in expand_tseq()
999 tseq->lock--; in expand_tseq()
1011 r = expand_tseq(log, s, &nb_events_max, 0, &s->tseq[i]); in expand_script()