Lines Matching defs:frame
311 static int d3d11va_get_buffer(AVHWFramesContext *ctx, AVFrame *frame)
315 frame->buf[0] = av_buffer_pool_get(ctx->pool);
316 if (!frame->buf[0])
319 desc = (AVD3D11FrameDescriptor *)frame->buf[0]->data;
321 frame->data[0] = (uint8_t *)desc->texture;
322 frame->data[1] = (uint8_t *)desc->index;
323 frame->format = AV_PIX_FMT_D3D11;
324 frame->width = ctx->width;
325 frame->height = ctx->height;
398 const AVFrame *frame = download ? src : dst;
401 ID3D11Resource *texture = (ID3D11Resource *)(ID3D11Texture2D *)frame->data[0];
402 int index = (intptr_t)frame->data[1];
412 if (frame->hw_frames_ctx->data != (uint8_t *)ctx || other->format != ctx->sw_format)