Lines Matching refs:tmp_frame
552 AVFrame *tmp_frame = av_frame_alloc();
553 if (!tmp_frame) {
561 tmp_frame->format = AV_PIX_FMT_CUDA;
562 tmp_frame->hw_frames_ctx = av_buffer_ref(ctx->hwframe);
563 if (!tmp_frame->hw_frames_ctx) {
565 av_frame_free(&tmp_frame);
569 tmp_frame->width = avctx->width;
570 tmp_frame->height = avctx->height;
578 tmp_frame->data[i] = (uint8_t*)mapped_frame + offset;
579 tmp_frame->linesize[i] = pitch;
586 av_frame_free(&tmp_frame);
590 ret = av_hwframe_transfer_data(frame, tmp_frame, 0);
593 av_frame_free(&tmp_frame);
596 av_frame_free(&tmp_frame);