libvmaf
Toggle main menu visibility
Loading...
Searching...
No Matches
libvmaf_cuda.h
Go to the documentation of this file.
1
18
19
#ifndef __VMAF_CUDA_H__
20
#define __VMAF_CUDA_H__
21
22
#include "
libvmaf/libvmaf.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
typedef
struct
VmafCudaState
VmafCudaState
;
29
30
typedef
struct
VmafCudaConfiguration
{
31
void
*
cu_ctx
;
32
}
VmafCudaConfiguration
;
33
45
int
vmaf_cuda_state_init
(
VmafCudaState
**cu_state,
VmafCudaConfiguration
cfg);
46
57
int
vmaf_cuda_import_state
(
VmafContext
*vmaf,
VmafCudaState
*cu_state);
58
59
enum
VmafCudaPicturePreallocationMethod
{
60
VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_NONE
= 0,
61
VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_DEVICE
,
62
VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_HOST
,
63
VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_HOST_PINNED
,
64
};
65
66
typedef
struct
VmafCudaPictureConfiguration
{
67
struct
{
68
unsigned
w
,
h
;
69
unsigned
bpc
;
70
enum
VmafPixelFormat
pix_fmt
;
71
}
pic_params
;
72
enum
VmafCudaPicturePreallocationMethod
pic_prealloc_method
;
73
}
VmafCudaPictureConfiguration
;
74
87
int
vmaf_cuda_preallocate_pictures
(
VmafContext
*vmaf,
88
VmafCudaPictureConfiguration
cfg);
89
103
int
vmaf_cuda_fetch_preallocated_picture
(
VmafContext
*vmaf,
VmafPicture
* pic);
104
105
#ifdef __cplusplus
106
}
107
#endif
108
109
#endif
/* __VMAF_CUDA_H__ */
libvmaf.h
VmafContext
struct VmafContext VmafContext
Definition
libvmaf.h:91
VmafCudaPicturePreallocationMethod
VmafCudaPicturePreallocationMethod
Definition
libvmaf_cuda.h:59
VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_NONE
@ VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_NONE
Definition
libvmaf_cuda.h:60
VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_DEVICE
@ VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_DEVICE
Definition
libvmaf_cuda.h:61
VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_HOST_PINNED
@ VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_HOST_PINNED
Definition
libvmaf_cuda.h:63
VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_HOST
@ VMAF_CUDA_PICTURE_PREALLOCATION_METHOD_HOST
Definition
libvmaf_cuda.h:62
VmafCudaState
struct VmafCudaState VmafCudaState
Definition
libvmaf_cuda.h:28
vmaf_cuda_fetch_preallocated_picture
int vmaf_cuda_fetch_preallocated_picture(VmafContext *vmaf, VmafPicture *pic)
vmaf_cuda_import_state
int vmaf_cuda_import_state(VmafContext *vmaf, VmafCudaState *cu_state)
vmaf_cuda_state_init
int vmaf_cuda_state_init(VmafCudaState **cu_state, VmafCudaConfiguration cfg)
vmaf_cuda_preallocate_pictures
int vmaf_cuda_preallocate_pictures(VmafContext *vmaf, VmafCudaPictureConfiguration cfg)
VmafPixelFormat
VmafPixelFormat
Definition
picture.h:28
VmafCudaConfiguration
Definition
libvmaf_cuda.h:30
VmafCudaConfiguration::cu_ctx
void * cu_ctx
CUcontext.
Definition
libvmaf_cuda.h:31
VmafCudaPictureConfiguration::[struct].pic_params::pix_fmt
enum VmafPixelFormat pix_fmt
VmafCudaPictureConfiguration::[struct].pic_params::bpc
unsigned bpc
VmafCudaPictureConfiguration::[struct].pic_params::h
unsigned h
VmafCudaPictureConfiguration::[struct].pic_params::w
unsigned w
VmafCudaPictureConfiguration
Definition
libvmaf_cuda.h:66
VmafCudaPictureConfiguration::pic_prealloc_method
enum VmafCudaPicturePreallocationMethod pic_prealloc_method
Definition
libvmaf_cuda.h:72
VmafCudaPictureConfiguration::pic_params
struct VmafCudaPictureConfiguration::@075075125050232324323221043175016247330254235372 pic_params
VmafPicture
Definition
picture.h:38
libvmaf
libvmaf_cuda.h
Generated by
1.18.0