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