MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / amf_get_buffer

Function amf_get_buffer

libavutil/hwcontext_amf.c:245–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244
245static int amf_get_buffer(AVHWFramesContext *ctx, AVFrame *frame)
246{
247 frame->buf[0] = av_buffer_pool_get(ctx->pool);
248 if (!frame->buf[0])
249 return AVERROR(ENOMEM);
250
251 frame->data[0] = frame->buf[0]->data;
252 frame->format = AV_PIX_FMT_AMF_SURFACE;
253 frame->width = ctx->width;
254 frame->height = ctx->height;
255 return 0;
256}
257
258static int amf_transfer_get_formats(AVHWFramesContext *ctx,
259 enum AVHWFrameTransferDirection dir,

Callers

nothing calls this directly

Calls 1

av_buffer_pool_getFunction · 0.85

Tested by

no test coverage detected