summaryrefslogtreecommitdiff
path: root/libavutil/hwcontext_internal.h
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2018-04-20 05:30:03 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2018-06-21 16:34:06 +0100
commit7062e4dbc8240389bf64f46f527eabfc5adcd58b (patch)
treede88a476f69a6e2dfc29a32f70c633877439da3e /libavutil/hwcontext_internal.h
parentdeb9a04d54045c8021816cfe019bf2bba0e9595d (diff)
hwcontext_internal: add ff_hwframe_map_replace
Used to fix unmapping when no direct interop exists between APIs. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavutil/hwcontext_internal.h')
-rw-r--r--libavutil/hwcontext_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/hwcontext_internal.h b/libavutil/hwcontext_internal.h
index 332062ddaa..77dc47ddd6 100644
--- a/libavutil/hwcontext_internal.h
+++ b/libavutil/hwcontext_internal.h
@@ -156,6 +156,11 @@ int ff_hwframe_map_create(AVBufferRef *hwframe_ref,
HWMapDescriptor *hwmap),
void *priv);
+/**
+ * Replace the current hwmap of dst with the one from src, used for indirect
+ * mappings like VAAPI->(DRM)->OpenCL/Vulkan where a direct interop is missing
+ */
+int ff_hwframe_map_replace(AVFrame *dst, const AVFrame *src);
extern const HWContextType ff_hwcontext_type_cuda;
extern const HWContextType ff_hwcontext_type_d3d11va;