Lines Matching refs:ctx

104     PGSSubContext *ctx = avctx->priv_data;
107 for (i = 0; i < ctx->objects.count; i++) {
108 av_freep(&ctx->objects.object[i].rle);
109 ctx->objects.object[i].rle_buffer_size = 0;
110 ctx->objects.object[i].rle_remaining_len = 0;
112 ctx->objects.count = 0;
113 ctx->palettes.count = 0;
235 PGSSubContext *ctx = avctx->priv_data;
247 object = find_object(id, &ctx->objects);
249 if (ctx->objects.count >= MAX_EPOCH_OBJECTS) {
253 object = &ctx->objects.object[ctx->objects.count++];
330 PGSSubContext *ctx = avctx->priv_data;
341 palette = find_palette(id, &ctx->palettes);
343 if (ctx->palettes.count >= MAX_EPOCH_PALETTES) {
347 palette = &ctx->palettes.palette[ctx->palettes.count++];
393 PGSSubContext *ctx = avctx->priv_data;
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) {
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;
500 PGSSubContext *ctx = avctx->priv_data;
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)