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

Function vaapi_map_from

libavutil/hwcontext_vaapi.c:1638–1649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1636}
1637
1638static int vaapi_map_from(AVHWFramesContext *hwfc, AVFrame *dst,
1639 const AVFrame *src, int flags)
1640{
1641 switch (dst->format) {
1642#if CONFIG_LIBDRM
1643 case AV_PIX_FMT_DRM_PRIME:
1644 return vaapi_map_to_drm(hwfc, dst, src, flags);
1645#endif
1646 default:
1647 return vaapi_map_to_memory(hwfc, dst, src, flags);
1648 }
1649}
1650
1651static void vaapi_device_free(AVHWDeviceContext *ctx)
1652{

Callers

nothing calls this directly

Calls 2

vaapi_map_to_drmFunction · 0.85
vaapi_map_to_memoryFunction · 0.85

Tested by

no test coverage detected