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

Function drm_get_buffer

libavutil/hwcontext_drm.c:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static int drm_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame)
82{
83 frame->buf[0] = av_buffer_pool_get(hwfc->pool);
84 if (!frame->buf[0])
85 return AVERROR(ENOMEM);
86
87 frame->data[0] = (uint8_t*)frame->buf[0]->data;
88
89 frame->format = AV_PIX_FMT_DRM_PRIME;
90 frame->width = hwfc->width;
91 frame->height = hwfc->height;
92
93 return 0;
94}
95
96typedef struct DRMMapping {
97 // Address and length of each mmap()ed region.

Callers

nothing calls this directly

Calls 1

av_buffer_pool_getFunction · 0.85

Tested by

no test coverage detected