Lines Matching defs:jacosub
24 * @see http://unicorn.us.com/jacosub/jscripts.html
32 #include "libavcodec/jacosub.h"
98 JACOsubContext *jacosub = s->priv_data;
99 ff_subtitles_queue_clean(&jacosub->q);
103 static const char *read_ts(JACOsubContext *jacosub, const char *buf,
115 ts_start = (hs*3600 + ms*60 + ss) * jacosub->timeres + fs;
116 ts_end = (he*3600 + me*60 + se) * jacosub->timeres + fe;
127 ts_start = (ts_start + jacosub->shift) * 100 / jacosub->timeres;
128 ts_end = (ts_end + jacosub->shift) * 100 / jacosub->timeres;
161 JACOsubContext *jacosub = s->priv_data;
173 jacosub->timeres = 30;
189 sub = ff_subtitles_queue_insert(&jacosub->q, line, len, merge_line);
217 jacosub->shift = get_shift(jacosub->timeres, p);
223 jacosub->timeres = strtol(p, NULL, 10);
224 if (!jacosub->timeres)
225 jacosub->timeres = 30;
239 for (i = 0; i < jacosub->q.nb_subs; i++) {
240 AVPacket *sub = &jacosub->q.subs[i];
241 read_ts(jacosub, sub->data, &sub->pts, &sub->duration);
243 ff_subtitles_queue_finalize(&jacosub->q);
250 JACOsubContext *jacosub = s->priv_data;
251 return ff_subtitles_queue_read_packet(&jacosub->q, pkt);
257 JACOsubContext *jacosub = s->priv_data;
258 return ff_subtitles_queue_seek(&jacosub->q, s, stream_index,
263 .name = "jacosub",