Lines Matching defs:vda_ctx
57 struct vda_context *vda_ctx = vda_hw_ctx;
60 vda_ctx->cv_buffer = NULL;
65 if (vda_ctx->cv_pix_fmt_type != CVPixelBufferGetPixelFormatType(image_buffer))
68 vda_ctx->cv_buffer = CVPixelBufferRetain(image_buffer);
71 static int vda_sync_decode(VDAContext *ctx, struct vda_context *vda_ctx)
81 status = VDADecoderDecode(vda_ctx->decoder, 0, coded_frame, NULL);
84 status = VDADecoderFlush(vda_ctx->decoder, flush_flags);
97 struct vda_context *vda_ctx = avctx->hwaccel_context;
99 if (!vda_ctx->decoder)
112 struct vda_context *vda_ctx = avctx->hwaccel_context;
115 if (!vda_ctx->decoder)
145 struct vda_context *vda_ctx = avctx->hwaccel_context;
151 if (!vda_ctx->decoder || !vda->bitstream)
154 status = vda_sync_decode(vda, vda_ctx);
155 frame->data[3] = (void*)vda_ctx->cv_buffer;
160 if (!vda_ctx->use_ref_buffer || status)
166 CVPixelBufferRelease(vda_ctx->cv_buffer);
171 context->cv_buffer = vda_ctx->cv_buffer;
177 int ff_vda_create_decoder(struct vda_context *vda_ctx,
191 vda_ctx->priv_bitstream = NULL;
192 vda_ctx->priv_allocated_size = 0;
219 height = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &vda_ctx->height);
220 width = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &vda_ctx->width);
221 format = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &vda_ctx->format);
238 &vda_ctx->cv_pix_fmt_type);
249 vda_ctx,
250 &vda_ctx->decoder);
264 int ff_vda_destroy_decoder(struct vda_context *vda_ctx)
268 if (vda_ctx->decoder)
269 status = VDADecoderDestroy(vda_ctx->decoder);
362 AVVDAContext *vda_ctx = avctx->hwaccel_context;
376 status = VDADecoderDecode(vda_ctx->decoder, 0, coded_frame, NULL);
379 status = VDADecoderFlush(vda_ctx->decoder, flush_flags);
407 AVVDAContext *vda_ctx = avctx->hwaccel_context;
478 &vda_ctx->decoder);