NVIDIA DeepStream SDK API Reference

6.1.1 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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(uint32_t gpuId, NvDsMemType memType)
Specifies CUDA Unified memory type.
void * Allocate(uint32_t size)
void Deallocate(void *data)
Specifies memory allocated by malloc().
NvDsMemType
Specifies memory types for NvDsMemory.
Specifies CUDA Host memory type.
Specifies CUDA Device memory type.