Lines Matching defs:sub
341 av_log(avctx, AV_LOG_WARNING, "Selected DVB subtitles sub-stream %d is not available\n", ctx->substream);
729 static int save_subtitle_set(AVCodecContext *avctx, AVSubtitle *sub, int *got_output)
749 if (sub->num_rects) {
756 sub->num_rects++;
760 sub->end_display_time = ctx->time_out * 1000;
763 sub->end_display_time = av_rescale_q((sub->pts - ctx->prev_start ), AV_TIME_BASE_Q, (AVRational){ 1, 1000 }) - 1;
766 if (sub->num_rects > 0) {
768 sub->rects = av_calloc(sub->num_rects, sizeof(*sub->rects));
769 if (!sub->rects) {
774 for (i = 0; i < sub->num_rects; i++) {
775 sub->rects[i] = av_mallocz(sizeof(*sub->rects[i]));
776 if (!sub->rects[i]) {
793 rect = sub->rects[i];
848 if (sub->rects) {
849 for (i=0; i < sub->num_rects; i++) {
850 rect = sub->rects[i];
855 av_freep(&sub->rects[i]);
857 av_freep(&sub->rects);
859 sub->num_rects = 0;
1291 const uint8_t *buf, int buf_size, AVSubtitle *sub, int *got_output)
1320 save_subtitle_set(avctx, sub, got_output);
1432 int buf_size, AVSubtitle *sub,int *got_output)
1437 save_subtitle_set(avctx, sub, got_output);
1441 static int dvbsub_decode(AVCodecContext *avctx, AVSubtitle *sub,
1456 ff_dlog(avctx, "DVB sub packet:\n");
1498 ret = dvbsub_parse_page_segment(avctx, p, segment_length, sub, got_sub_ptr);
1520 ret = dvbsub_display_end_segment(avctx, p, segment_length, sub, got_sub_ptr);
1543 dvbsub_display_end_segment(avctx, p, 0, sub, got_sub_ptr);
1551 FFSWAP(int64_t, ctx->prev_start, sub->pts);