Lines Matching defs:sub
156 AVSubtitle sub;
577 static int decoder_decode_frame(Decoder *d, AVFrame *frame, AVSubtitle *sub) {
645 ret = avcodec_decode_subtitle2(d->avctx, sub, &got_frame, d->pkt);
674 avsubtitle_free(&vp->sub);
972 if (vp->pts >= sp->pts + ((float) sp->sub.start_display_time / 1000)) {
984 for (i = 0; i < sp->sub.num_rects; i++) {
985 AVSubtitleRect *sub_rect = sp->sub.rects[i];
1034 for (i = 0; i < sp->sub.num_rects; i++) {
1035 SDL_Rect *sub_rect = (SDL_Rect*)sp->sub.rects[i];
1644 || (is->vidclk.pts > (sp->pts + ((float) sp->sub.end_display_time / 1000)))
1645 || (sp2 && is->vidclk.pts > (sp2->pts + ((float) sp2->sub.start_display_time / 1000))))
1649 for (i = 0; i < sp->sub.num_rects; i++) {
1650 AVSubtitleRect *sub_rect = sp->sub.rects[i];
2234 if ((got_subtitle = decoder_decode_frame(&is->subdec, NULL, &sp->sub)) < 0)
2239 if (got_subtitle && sp->sub.format == 0) {
2240 if (sp->sub.pts != AV_NOPTS_VALUE)
2241 pts = sp->sub.pts / (double)AV_TIME_BASE;
2251 avsubtitle_free(&sp->sub);