NVIDIA DRIVE OS Linux SDK API Reference

5.1.12.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvmedia_arraymetadata.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2019, 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 
27 #ifndef NVM_ARRAYMETADATA_H
28 #define NVM_ARRAYMETADATA_H
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #include "nvmedia_array.h"
35 
36 
37 /* Size in bytes occupied by number of elements. */
38 #define SIZEOF_NUM_ELEMENTS (256u)
39 
40 typedef struct {
44  uint32_t capacity;
46  uint32_t stride;
48  uint32_t allocationSize;
50 
51 
52 #ifdef __cplusplus
53 }; /* extern "C" */
54 #endif
55 
56 #endif /* NVM_ARRAYMETADATA_H */
uint32_t stride
stride to next element in bytes.
NvMediaArrayType
Defines the different types of arrays.
Definition: nvmedia_array.h:59
NVIDIA Media Interface: Arrays
uint32_t allocationSize
Total size of allocation (capacity * stride) + space to store number of elements. ...
uint32_t capacity
Number of elements the array was created with.
NvMediaArrayType elementType
Type of elements in Array.