Allocator for memory alignment. More...
Go to the source code of this file.
Classes | |
struct | GstTensorAllocator |
struct for type GstTensorAllocator More... | |
struct | GstTensorAllocatorClass |
struct for class GstTensorAllocatorClass More... | |
Macros | |
#define | GST_TENSOR_ALLOCATOR "GstTensorAllocator" |
Functions | |
static GType | gst_tensor_allocator_get_type (void) |
G_DEFINE_TYPE (GstTensorAllocator, gst_tensor_allocator, GST_TYPE_ALLOCATOR) | |
static GstMemory * | _alloc (GstAllocator *allocator, gsize size, GstAllocationParams *params) |
allocation wrapper that binds alignment parameter More... | |
static void | gst_tensor_allocator_class_init (GstTensorAllocatorClass *klass) |
class initization for GstTensorAllocatorClass More... | |
static void | gst_tensor_allocator_init (GstTensorAllocator *allocator) |
initialization for GstTensorAllocator More... | |
void | gst_tensor_alloc_init (gsize alignment) |
set alignment that default allocator would align to More... | |
Variables | |
static gsize | gst_tensor_allocator_alignment = 0 |
Allocator for memory alignment.
Copyright (C) 2021 Junhwan Kim jejud o.ki m@sam sung .com
Definition in file tensor_allocator.c.
#define GST_TENSOR_ALLOCATOR "GstTensorAllocator" |
Definition at line 17 of file tensor_allocator.c.
|
static |
allocation wrapper that binds alignment parameter
Definition at line 45 of file tensor_allocator.c.
G_DEFINE_TYPE | ( | GstTensorAllocator | , |
gst_tensor_allocator | , | ||
GST_TYPE_ALLOCATOR | |||
) |
void gst_tensor_alloc_init | ( | gsize | alignment | ) |
set alignment that default allocator would align to
alignment | bytes of alignment |
Definition at line 109 of file tensor_allocator.c.
|
static |
class initization for GstTensorAllocatorClass
Definition at line 68 of file tensor_allocator.c.
|
static |
|
static |
initialization for GstTensorAllocator
Definition at line 87 of file tensor_allocator.c.
|
static |
Definition at line 19 of file tensor_allocator.c.