|
FFmpeg
|
#include <string.h>#include "config.h"#include "avassert.h"#include "avstring.h"#include "common.h"#include "hwcontext.h"#include "hwcontext_internal.h"#include "hwcontext_opencl.h"#include "mem.h"#include "pixdesc.h"Go to the source code of this file.
Data Structures | |
| struct | OpenCLDeviceContext |
| struct | OpenCLFramesContext |
| struct | OpenCLDeviceSelector |
| struct | OpenCLMapping |
Macros | |
| #define | CL_USE_DEPRECATED_OPENCL_1_2_APIS |
| #define | CL_FUNC(name, desc) |
| #define | CHANNEL_ORDER(order, type) case order: image_format->image_channel_order = type; break; |
Functions | |
| static void CL_CALLBACK | opencl_error_callback (const char *errinfo, const void *private_info, size_t cb, void *user_data) |
| static void | opencl_device_free (AVHWDeviceContext *hwdev) |
| static char * | opencl_get_platform_string (cl_platform_id platform_id, cl_platform_info key) |
| static char * | opencl_get_device_string (cl_device_id device_id, cl_device_info key) |
| static int | opencl_check_platform_extension (cl_platform_id platform_id, const char *name) |
| static int | opencl_check_device_extension (cl_device_id device_id, const char *name) |
| static av_unused int | opencl_check_extension (AVHWDeviceContext *hwdev, const char *name) |
| static int | opencl_enumerate_platforms (AVHWDeviceContext *hwdev, cl_uint *nb_platforms, cl_platform_id **platforms, void *context) |
| static int | opencl_filter_platform (AVHWDeviceContext *hwdev, cl_platform_id platform_id, const char *platform_name, void *context) |
| static int | opencl_enumerate_devices (AVHWDeviceContext *hwdev, cl_platform_id platform_id, const char *platform_name, cl_uint *nb_devices, cl_device_id **devices, void *context) |
| static int | opencl_filter_device (AVHWDeviceContext *hwdev, cl_device_id device_id, const char *device_name, void *context) |
| static int | opencl_device_create_internal (AVHWDeviceContext *hwdev, const OpenCLDeviceSelector *selector, cl_context_properties *props) |
| static int | opencl_device_create (AVHWDeviceContext *hwdev, const char *device, AVDictionary *opts, int flags) |
| static int | opencl_device_init (AVHWDeviceContext *hwdev) |
| static void | opencl_device_uninit (AVHWDeviceContext *hwdev) |
| static int | opencl_device_derive (AVHWDeviceContext *hwdev, AVHWDeviceContext *src_ctx, AVDictionary *opts, int flags) |
| static int | opencl_get_plane_format (enum AVPixelFormat pixfmt, int plane, int width, int height, cl_image_format *image_format, cl_image_desc *image_desc) |
| static int | opencl_frames_get_constraints (AVHWDeviceContext *hwdev, const void *hwconfig, AVHWFramesConstraints *constraints) |
| static void | opencl_pool_free (void *opaque, uint8_t *data) |
| static AVBufferRef * | opencl_pool_alloc (void *opaque, size_t size) |
| static int | opencl_frames_init_command_queue (AVHWFramesContext *hwfc) |
| static int | opencl_frames_init (AVHWFramesContext *hwfc) |
| static void | opencl_frames_uninit (AVHWFramesContext *hwfc) |
| static int | opencl_get_buffer (AVHWFramesContext *hwfc, AVFrame *frame) |
| static int | opencl_transfer_get_formats (AVHWFramesContext *hwfc, enum AVHWFrameTransferDirection dir, enum AVPixelFormat **formats) |
| static int | opencl_wait_events (AVHWFramesContext *hwfc, cl_event *events, int nb_events) |
| static int | opencl_transfer_data_from (AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) |
| static int | opencl_transfer_data_to (AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) |
| static void | opencl_unmap_frame (AVHWFramesContext *hwfc, HWMapDescriptor *hwmap) |
| static int | opencl_map_frame (AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) |
| static cl_mem_flags | opencl_mem_flags_for_mapping (int map_flags) |
| static int | opencl_map_from (AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) |
| static int | opencl_map_to (AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) |
| static int | opencl_frames_derive_to (AVHWFramesContext *dst_fc, AVHWFramesContext *src_fc, int flags) |
Variables | |
| struct { | |
| const char * key | |
| cl_platform_info name | |
| } | opencl_platform_params [] |
| struct { | |
| const char * key | |
| cl_device_info name | |
| } | opencl_device_params [] |
| struct { | |
| const char * key | |
| cl_device_type type | |
| } | opencl_device_types [] |
| const HWContextType | ff_hwcontext_type_opencl |
| #define CL_USE_DEPRECATED_OPENCL_1_2_APIS |
Definition at line 19 of file hwcontext_opencl.c.
|
static |
Definition at line 167 of file hwcontext_opencl.c.
Referenced by opencl_device_create_internal().
|
static |
Definition at line 176 of file hwcontext_opencl.c.
Referenced by opencl_device_create_internal().
|
static |
Definition at line 223 of file hwcontext_opencl.c.
Referenced by opencl_check_platform_extension(), opencl_device_create_internal(), and opencl_filter_platform().
|
static |
Definition at line 244 of file hwcontext_opencl.c.
Referenced by opencl_check_device_extension(), opencl_device_create_internal(), and opencl_filter_device().
|
static |
Definition at line 265 of file hwcontext_opencl.c.
Referenced by opencl_check_extension().
|
static |
Definition at line 278 of file hwcontext_opencl.c.
Referenced by opencl_check_extension().
|
static |
Definition at line 291 of file hwcontext_opencl.c.
Referenced by opencl_device_init().
|
static |
Definition at line 312 of file hwcontext_opencl.c.
Referenced by opencl_device_create(), and opencl_device_derive().
|
static |
Definition at line 343 of file hwcontext_opencl.c.
Referenced by opencl_device_create(), and opencl_device_derive().
|
static |
Definition at line 378 of file hwcontext_opencl.c.
Referenced by opencl_device_create(), and opencl_device_derive().
|
static |
Definition at line 418 of file hwcontext_opencl.c.
Referenced by opencl_device_create().
|
static |
Definition at line 508 of file hwcontext_opencl.c.
Referenced by opencl_device_create(), and opencl_device_derive().
|
static |
Definition at line 641 of file hwcontext_opencl.c.
Referenced by opencl_device_derive().
|
static |
Definition at line 674 of file hwcontext_opencl.c.
|
static |
Definition at line 910 of file hwcontext_opencl.c.
|
static |
Definition at line 1217 of file hwcontext_opencl.c.
|
static |
Definition at line 1396 of file hwcontext_opencl.c.
Referenced by opencl_frames_get_constraints(), opencl_map_frame(), opencl_pool_alloc(), opencl_transfer_data_from(), and opencl_transfer_data_to().
|
static |
Definition at line 1505 of file hwcontext_opencl.c.
|
static |
Definition at line 1632 of file hwcontext_opencl.c.
Referenced by opencl_pool_alloc().
|
static |
Definition at line 1650 of file hwcontext_opencl.c.
Referenced by opencl_frames_init().
|
static |
Definition at line 1706 of file hwcontext_opencl.c.
Referenced by opencl_frames_derive_to(), and opencl_frames_init().
|
static |
Definition at line 1725 of file hwcontext_opencl.c.
|
static |
Definition at line 1738 of file hwcontext_opencl.c.
|
static |
Definition at line 1769 of file hwcontext_opencl.c.
|
static |
Definition at line 1790 of file hwcontext_opencl.c.
|
static |
Definition at line 1807 of file hwcontext_opencl.c.
Referenced by opencl_map_frame(), opencl_transfer_data_from(), opencl_transfer_data_to(), and opencl_unmap_frame().
|
static |
Definition at line 1831 of file hwcontext_opencl.c.
|
static |
Definition at line 1886 of file hwcontext_opencl.c.
|
static |
Definition at line 1948 of file hwcontext_opencl.c.
Referenced by opencl_map_frame().
|
static |
Definition at line 1977 of file hwcontext_opencl.c.
Referenced by opencl_map_from().
|
inlinestatic |
Definition at line 2217 of file hwcontext_opencl.c.
|
static |
Definition at line 2921 of file hwcontext_opencl.c.
|
static |
Definition at line 2930 of file hwcontext_opencl.c.
|
static |
Definition at line 2975 of file hwcontext_opencl.c.
| const char* key |
Definition at line 189 of file hwcontext_opencl.c.
Referenced by opencl_filter_device(), opencl_filter_platform(), opencl_get_device_string(), and opencl_get_platform_string().
| cl_device_info name |
Definition at line 190 of file hwcontext_opencl.c.
Referenced by opencl_check_device_extension(), opencl_check_extension(), opencl_check_platform_extension(), opencl_filter_device(), and opencl_filter_platform().
| struct { ... } opencl_platform_params[] |
Referenced by opencl_filter_platform().
| struct { ... } opencl_device_params[] |
Referenced by opencl_filter_device().
| cl_device_type type |
Definition at line 213 of file hwcontext_opencl.c.
| struct { ... } opencl_device_types[] |
Referenced by opencl_filter_device().
| const HWContextType ff_hwcontext_type_opencl |
Definition at line 3039 of file hwcontext_opencl.c.
1.8.17