Lines Matching defs:frame
341 /* A derived frame context is already initialised. */
462 "A device with a derived frame context cannot be used as "
469 "A device with a derived frame context cannot be used as "
499 int av_hwframe_get_buffer(AVBufferRef *hwframe_ref, AVFrame *frame, int flags)
505 // This is a derived frame context, so we allocate in the source
506 // and map the frame immediately.
509 frame->format = ctx->format;
510 frame->hw_frames_ctx = av_buffer_ref(hwframe_ref);
511 if (!frame->hw_frames_ctx)
525 ret = av_hwframe_map(frame, src_frame,
528 av_log(ctx, AV_LOG_ERROR, "Failed to map frame into derived "
529 "frame context: %d.\n", ret);
534 // Free the source frame immediately - the mapped frame still
547 frame->hw_frames_ctx = av_buffer_ref(hwframe_ref);
548 if (!frame->hw_frames_ctx)
551 ret = ctx->internal->hw_type->frames_get_buffer(ctx, frame);
553 av_buffer_unref(&frame->hw_frames_ctx);
557 frame->extended_data = frame->data;
805 // do anything here other than fill in the original frame,
807 // reference to the mapped frame disappears.
855 // preserve user-provided dst frame fields, but clean
885 // reference to the source frame context.