| 243 | |
| 244 | |
| 245 | static 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 | |
| 258 | static int amf_transfer_get_formats(AVHWFramesContext *ctx, |
| 259 | enum AVHWFrameTransferDirection dir, |
nothing calls this directly
no test coverage detected