FFmpeg
|
#include <stddef.h>
#include "buffer.h"
#include "hwcontext.h"
#include "frame.h"
#include "pixfmt.h"
Go to the source code of this file.
Data Structures | |
struct | HWContextType |
struct | FFHWFramesContext |
struct | HWMapDescriptor |
Functions | |
static FFHWFramesContext * | ffhwframesctx (AVHWFramesContext *ctx) |
int | ff_hwframe_map_create (AVBufferRef *hwframe_ref, AVFrame *dst, const AVFrame *src, void(*unmap)(AVHWFramesContext *ctx, HWMapDescriptor *hwmap), void *priv) |
int | ff_hwframe_map_replace (AVFrame *dst, const AVFrame *src) |
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. More... | |
|
inlinestatic |
Definition at line 115 of file hwcontext_internal.h.
Referenced by cuda_frames_init(), d3d11va_frames_init(), d3d12va_frames_init(), dxva2_init_pool(), opencl_frames_init(), qsv_dynamic_pool_unmap(), qsv_init_pool(), vaapi_frames_init(), vdpau_frames_init(), vt_frames_init(), and vulkan_frames_init().
int ff_hwframe_map_create | ( | AVBufferRef * | hwframe_ref, |
AVFrame * | dst, | ||
const AVFrame * | src, | ||
void(*)(AVHWFramesContext *ctx, HWMapDescriptor *hwmap) | unmap, | ||
void * | priv | ||
) |
Definition at line 726 of file hwcontext.c.
Referenced by dxva2_map_frame(), opencl_map_frame(), qsv_dynamic_pool_map_to(), qsv_fixed_pool_map_to(), qsv_map_from(), vaapi_map_frame(), and vt_map_frame().
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.
Definition at line 933 of file hwcontext.c.
const HWContextType ff_hwcontext_type_cuda |
Definition at line 563 of file hwcontext_cuda.c.
const HWContextType ff_hwcontext_type_d3d11va |
Definition at line 712 of file hwcontext_d3d11va.c.
const HWContextType ff_hwcontext_type_d3d12va |
Definition at line 679 of file hwcontext_d3d12va.c.
const HWContextType ff_hwcontext_type_drm |
Definition at line 305 of file hwcontext_drm.c.
const HWContextType ff_hwcontext_type_dxva2 |
Definition at line 595 of file hwcontext_dxva2.c.
const HWContextType ff_hwcontext_type_opencl |
Definition at line 3039 of file hwcontext_opencl.c.
const HWContextType ff_hwcontext_type_qsv |
Definition at line 2624 of file hwcontext_qsv.c.
const HWContextType ff_hwcontext_type_vaapi |
Definition at line 2057 of file hwcontext_vaapi.c.
const HWContextType ff_hwcontext_type_vdpau |
Definition at line 513 of file hwcontext_vdpau.c.
const HWContextType ff_hwcontext_type_videotoolbox |
Definition at line 830 of file hwcontext_videotoolbox.c.
const HWContextType ff_hwcontext_type_mediacodec |
Definition at line 107 of file hwcontext_mediacodec.c.
const HWContextType ff_hwcontext_type_vulkan |
Definition at line 4401 of file hwcontext_vulkan.c.