Lines Matching defs:frame
87 // used in the frame allocator for non-opaque surfaces
518 av_log(ctx, AV_LOG_ERROR, "QSV requires a fixed frame pool size\n");
667 /* Apparently VPP requires the frame rate to be set to some value, otherwise
705 av_log(ctx, AV_LOG_ERROR, "Error creating an internal frame pool\n");
751 static int qsv_get_buffer(AVHWFramesContext *ctx, AVFrame *frame)
753 frame->buf[0] = av_buffer_pool_get(ctx->pool);
754 if (!frame->buf[0])
757 frame->data[3] = frame->buf[0]->data;
758 frame->format = AV_PIX_FMT_QSV;
759 frame->width = ctx->width;
760 frame->height = ctx->height;
875 /* pair->first is *VASurfaceID while data[3] in vaapi frame is VASurfaceID, so
992 static int map_frame_to_surface(const AVFrame *frame, mfxFrameSurface1 *surface)
994 switch (frame->format) {
997 surface->Data.Y = frame->data[0];
998 surface->Data.UV = frame->data[1];
1002 surface->Data.Y = frame->data[0];
1003 surface->Data.U = frame->data[1];
1004 surface->Data.V = frame->data[2];
1008 surface->Data.B = frame->data[0];
1009 surface->Data.G = frame->data[0] + 1;
1010 surface->Data.R = frame->data[0] + 2;
1011 surface->Data.A = frame->data[0] + 3;
1015 surface->Data.Y = frame->data[0];
1016 surface->Data.U = frame->data[0] + 1;
1017 surface->Data.V = frame->data[0] + 3;
1021 surface->Data.Y16 = (mfxU16 *)frame->data[0];
1022 surface->Data.U16 = (mfxU16 *)frame->data[0] + 1;
1023 surface->Data.V16 = (mfxU16 *)frame->data[0] + 3;
1029 surface->Data.Pitch = frame->linesize[0];
1030 surface->Data.TimeStamp = frame->pts;
1071 /* download to temp frame if the output is not padded as libmfx requires */
1081 * Height must be a multiple of 16 for progressive frame sequence and a
1165 * Height must be a multiple of 16 for progressive frame sequence and a