Lines Matching refs:presentation
96 PGSSubPresentation presentation;
379 * Parse the presentation segment packet.
381 * The presentation segment contains details on the video
401 ctx->presentation.pts = pts;
413 ctx->presentation.id_number = bytestream_get_be16(&buf);
432 ctx->presentation.palette_id = bytestream_get_byte(&buf);
433 ctx->presentation.object_count = bytestream_get_byte(&buf);
434 if (ctx->presentation.object_count > MAX_OBJECT_REFS) {
436 "Invalid number of presentation objects %d\n",
437 ctx->presentation.object_count);
438 ctx->presentation.object_count = 2;
445 for (i = 0; i < ctx->presentation.object_count; i++)
447 PGSSubObjectRef *const object = &ctx->presentation.objects[i];
451 ctx->presentation.object_count = i;
505 pts = ctx->presentation.pts != AV_NOPTS_VALUE ? ctx->presentation.pts : sub->pts;
508 ctx->presentation.pts = AV_NOPTS_VALUE;
517 if (!ctx->presentation.object_count)
519 sub->rects = av_calloc(ctx->presentation.object_count, sizeof(*sub->rects));
523 palette = find_palette(ctx->presentation.palette_id, &ctx->palettes);
527 ctx->presentation.palette_id);
531 for (i = 0; i < ctx->presentation.object_count; i++) {
541 object = find_object(ctx->presentation.objects[i].id, &ctx->objects);
545 ctx->presentation.objects[i].id);
551 if (ctx->presentation.objects[i].composition_flag & 0x40)
554 rect->x = ctx->presentation.objects[i].x;
555 rect->y = ctx->presentation.objects[i].y;
586 if (!ctx->forced_subs_only || ctx->presentation.objects[i].composition_flag & 0x40)