Lines Matching defs:hwfc
80 static int drm_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame)
82 frame->buf[0] = av_buffer_pool_get(hwfc->pool);
89 frame->width = hwfc->width;
90 frame->height = hwfc->height;
104 static void drm_unmap_frame(AVHWFramesContext *hwfc,
120 static int drm_map_frame(AVHWFramesContext *hwfc,
156 av_log(hwfc, AV_LOG_ERROR, "Failed to map DRM object %d to "
222 static int drm_transfer_data_from(AVHWFramesContext *hwfc,
228 if (dst->width > hwfc->width || dst->height > hwfc->height)
236 err = drm_map_frame(hwfc, map, src, AV_HWFRAME_MAP_READ);
253 static int drm_transfer_data_to(AVHWFramesContext *hwfc,
259 if (src->width > hwfc->width || src->height > hwfc->height)
267 err = drm_map_frame(hwfc, map, dst, AV_HWFRAME_MAP_WRITE |
285 static int drm_map_from(AVHWFramesContext *hwfc, AVFrame *dst,
290 if (hwfc->sw_format != dst->format)
293 err = drm_map_frame(hwfc, dst, src, flags);