NVIDIA DRIVE OS Linux SDK API Reference

6.0.3 Release
nvmedia_cvscratchpad.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2022, 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 (1u)
39 
40 #define NVMEDIA_CVSCRATCHPAD_VERSION_MINOR (1u)
41 
44 typedef enum {
45 #if !NV_BUILD_CONFIGURATION_EXPOSING_T23X
46 
48 #endif
49 
52  /* If more types are needed, add above this and update this. */
54 
56 
63 
75  NvMediaVersion *version
76 );
77 
90  NvMediaDevice *device,
91  uint32_t size,
93 );
94 
106  NvMediaCVScratchpad *handle
107 );
108 
124  const NvMediaCVScratchpad *handle,
125  uint32_t *size,
127 );
128 
131 /*
132  * \defgroup history_nvmedia_cvscratchpad History
133  * Provides change history for the NvMedia CVScratchpad API.
134  *
135  * \section history_nvmedia_cvscratchpad Version History
136  *
137  * <b> Version 1.0 </b> August 3, 2018
138  * - Initial release
139  *
140  * <b> Version 1.1 </b> March 11, 2020
141  * - Fix Minor Misra Violations
142  *
143  **/
144 
145 #ifdef __cplusplus
146 } /* extern "C" */
147 #endif
148 
149 #endif // NVMEDIA_CVSCRATCHPAD_H
NvMediaCVScratchpadDestroy
NvMediaStatus NvMediaCVScratchpadDestroy(NvMediaCVScratchpad *handle)
Destroys a CVScratchpad handle created by NvMediaCVScratchpadCreate().
nvmedia_core.h
NVIDIA Media Interface: Core
NVMEDIA_SCRATCH_MEMORY_TYPE_DRAM
@ NVMEDIA_SCRATCH_MEMORY_TYPE_DRAM
Specifies scratch memory allocated in DRAM.
Definition: nvmedia_cvscratchpad.h:50
NvMediaCVScratchpadGetVersion
NvMediaStatus NvMediaCVScratchpadGetVersion(NvMediaVersion *version)
Returns version information for the CVScratchpad component.
NvMediaCVScratchpad
struct NvMediaCVScratchpad NvMediaCVScratchpad
Holds a descriptor for the CVScratchpad.
Definition: nvmedia_cvscratchpad.h:62
NVMEDIA_SCRATCH_MEMORY_TYPE_CVSRAM
@ NVMEDIA_SCRATCH_MEMORY_TYPE_CVSRAM
Specifies scratch memory allocated in CVSRAM.
Definition: nvmedia_cvscratchpad.h:47
NvMediaDevice
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
Definition: tvmr/include/nvmedia_core.h:366
NvMediaVersion
Holds NvMedia version information.
Definition: tvmr/include/nvmedia_core.h:237
NVMEDIA_SCRATCH_NUM_MEMORY_TYPES
@ NVMEDIA_SCRATCH_NUM_MEMORY_TYPES
Specifies the number of memory types.
Definition: nvmedia_cvscratchpad.h:53
NvMediaStatus
NvMediaStatus
Defines all possible error codes.
Definition: tvmr/include/nvmedia_core.h:180
NvMediaCVScratchpadCreate
NvMediaCVScratchpad * NvMediaCVScratchpadCreate(NvMediaDevice *device, uint32_t size, NvMediaCVScratchMemoryAllocationType memoryType)
Creates an NvMedia CVScratchpad handle.
NvMediaCVScratchpadGetProperties
NvMediaStatus NvMediaCVScratchpadGetProperties(const NvMediaCVScratchpad *handle, uint32_t *size, NvMediaCVScratchMemoryAllocationType *memoryType)
Gets the size in bytes and memory location type of a CVScratchpad.
NvMediaCVScratchMemoryAllocationType
NvMediaCVScratchMemoryAllocationType
Specifies the type of memory that is allocated.
Definition: nvmedia_cvscratchpad.h:44