NVIDIA DRIVE OS Linux API Reference

5.1.6.1 Release
For Test and Development only

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvmedia_cvscratchpad.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. All
3  * information contained herein is proprietary and confidential to NVIDIA
4  * Corporation. Any use, reproduction, or disclosure without the written
5  * permission of NVIDIA Corporation is prohibited.
6  */
7 
17 #ifndef NVMEDIA_CVSCRATCHPAD_H
18 #define NVMEDIA_CVSCRATCHPAD_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include "nvmedia_core.h"
25 
38 #define NVMEDIA_CVSCRATCHPAD_VERSION_MAJOR 1
39 
40 #define NVMEDIA_CVSCRATCHPAD_VERSION_MINOR 0
41 
44 typedef enum {
50  /* If more types are needed, add above this and update this. */
52 
54 
61 
73  NvMediaVersion *version
74 );
75 
88  NvMediaDevice *device,
89  uint32_t size,
91 );
92 
104  NvMediaCVScratchpad *handle
105 );
106 
122  NvMediaCVScratchpad *handle,
123  uint32_t *size,
125 );
126 
129 #ifdef __cplusplus
130 }; /* extern "C" */
131 #endif
132 
133 #endif // NVMEDIA_CVSCRATCHPAD_H
NvMediaStatus NvMediaCVScratchpadGetProperties(NvMediaCVScratchpad *handle, uint32_t *size, NvMediaCVScratchMemoryAllocationType *memoryType)
Gets the size in bytes and memory location type of a CVScratchpad.
Specifies the number of memory types.
NvMediaCVScratchpad * NvMediaCVScratchpadCreate(NvMediaDevice *device, uint32_t size, NvMediaCVScratchMemoryAllocationType memoryType)
Creates an NvMedia CVScratchpad handle.
Holds NvMedia version information.
Definition: nvmedia_core.h:226
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
Definition: nvmedia_core.h:337
Specifies scratch memory allocated in DRAM.
NvMediaStatus NvMediaCVScratchpadDestroy(NvMediaCVScratchpad *handle)
Destroys a CVScratchpad handle created by NvMediaCVScratchpadCreate().
NVIDIA Media Interface: Core
NvMediaStatus
Defines all possible error codes.
Definition: nvmedia_core.h:169
Specifies scratch memory allocated in CVSRAM.
struct NvMediaCVScratchpad NvMediaCVScratchpad
Holds a descriptor for the CVScratchpad.
NvMediaCVScratchMemoryAllocationType
Specifies the type of memory that is allocated.
NvMediaStatus NvMediaCVScratchpadGetVersion(NvMediaVersion *version)
Returns version information for the CVScratchpad component.