NVIDIA DeepStream SDK API Reference

6.4 Release
NvDsMemoryAllocator.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  */
10 
11 #ifndef _NVDS_MEMORY_ALLOCATOR_H_
12 #define _NVDS_MEMORY_ALLOCATOR_H_
13 
14 #include "INvDsAllocator.h"
15 
19 typedef enum
20 {
30 } NvDsMemType;
31 
32 
34 {
35  public:
36 
37  NvDsMemoryAllocator(uint32_t gpuId, NvDsMemType memType);
38  void* Allocate (uint32_t size);
39  void Deallocate (void* data);
40 
41  private:
42  uint32_t gpuId;
43  NvDsMemType memType;
44 };
45 
46 #endif
NvDsMemoryAllocator::NvDsMemoryAllocator
NvDsMemoryAllocator(uint32_t gpuId, NvDsMemType memType)
NVDS_MEM_SYSTEM
@ NVDS_MEM_SYSTEM
Specifies memory allocated by malloc().
Definition: NvDsMemoryAllocator.h:29
NvDsMemoryAllocator::Deallocate
void Deallocate(void *data)
INvDsAllocator.h
INvDsAllocator
Definition: INvDsAllocator.h:16
NvDsMemoryAllocator::Allocate
void * Allocate(uint32_t size)
NvDsMemoryAllocator
Definition: NvDsMemoryAllocator.h:33
NVDS_MEM_CUDA_UNIFIED
@ NVDS_MEM_CUDA_UNIFIED
Specifies CUDA Unified memory type.
Definition: NvDsMemoryAllocator.h:27
NvDsMemType
NvDsMemType
Specifies memory types for NvDsMemory.
Definition: NvDsMemoryAllocator.h:19
NVDS_MEM_DEFAULT
@ NVDS_MEM_DEFAULT
Definition: NvDsMemoryAllocator.h:21
NVDS_MEM_CUDA_PINNED
@ NVDS_MEM_CUDA_PINNED
Specifies CUDA Host memory type.
Definition: NvDsMemoryAllocator.h:23
NVDS_MEM_CUDA_DEVICE
@ NVDS_MEM_CUDA_DEVICE
Specifies CUDA Device memory type.
Definition: NvDsMemoryAllocator.h:25