Lines Matching defs:pic_ctx
48 int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic_ctx,
52 pic_ctx->bitstream_buffers_allocated = 0;
53 pic_ctx->bitstream_buffers_used = 0;
54 pic_ctx->bitstream_buffers = NULL;
67 struct vdpau_picture_context *pic_ctx = pic->hwaccel_picture_private;
72 hwctx->info = pic_ctx->info;
73 hwctx->bitstream_buffers = pic_ctx->bitstream_buffers;
74 hwctx->bitstream_buffers_used = pic_ctx->bitstream_buffers_used;
75 hwctx->bitstream_buffers_allocated = pic_ctx->bitstream_buffers_allocated;
80 res = hwctx->render2(avctx, pic->f, (void *)&pic_ctx->info,
81 pic_ctx->bitstream_buffers_used, pic_ctx->bitstream_buffers);
83 hwctx->render(hwctx->decoder, surf, (void *)&pic_ctx->info,
84 pic_ctx->bitstream_buffers_used, pic_ctx->bitstream_buffers);
87 av_freep(&pic_ctx->bitstream_buffers);
101 int ff_vdpau_add_buffer(struct vdpau_picture_context *pic_ctx,
104 VdpBitstreamBuffer *buffers = pic_ctx->bitstream_buffers;
106 buffers = av_fast_realloc(buffers, &pic_ctx->bitstream_buffers_allocated,
107 (pic_ctx->bitstream_buffers_used + 1) * sizeof(*buffers));
111 pic_ctx->bitstream_buffers = buffers;
112 buffers += pic_ctx->bitstream_buffers_used++;