| 79 | } |
| 80 | |
| 81 | static 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 | |
| 96 | typedef struct DRMMapping { |
| 97 | // Address and length of each mmap()ed region. |
nothing calls this directly
no test coverage detected