34 const unsigned char *ptr = p->
buf;
41 if ((num == i || num + 1 == i)
42 && sscanf(ptr,
"%*d:%*2d:%*2d%*1[,.]%*3d --> %*d:%*2d:%*2d%*1[,.]%3d", &v) == 1)
45 ptr += strcspn(ptr,
"\n") + 1;
56 int hh1, mm1, ss1, ms1;
57 int hh2, mm2, ss2, ms2;
58 if (sscanf(*buf,
"%d:%2d:%2d%*1[,.]%3d --> %d:%2d:%2d%*1[,.]%3d"
59 "%*[ ]X1:%u X2:%u Y1:%u Y2:%u",
60 &hh1, &mm1, &ss1, &ms1,
61 &hh2, &mm2, &ss2, &ms2,
62 x1, x2, y1, y2) >= 8) {
63 int64_t
start = (hh1*3600LL + mm1*60LL + ss1) * 1000LL + ms1;
64 int64_t
end = (hh2*3600LL + mm2*60LL + ss2) * 1000LL + ms2;
65 *duration = end -
start;
66 *buf += strcspn(*buf,
"\n");
70 *buf += strcspn(*buf,
"\n");
98 const char *ptr = buf.str;
99 int32_t x1 = -1, y1 = -1, x2 = -1, y2 = -1;
102 pts =
get_pts(&ptr, &duration, &x1, &y1, &x2, &y2);
104 int len = buf.len - (ptr - buf.str);
142 int64_t min_ts, int64_t ts, int64_t max_ts,
int flags)
146 min_ts, ts, max_ts, flags);