17 #ifndef NVMEDIA_ARRAY_H
18 #define NVMEDIA_ARRAY_H
38 #define NVMEDIA_ARRAY_VERSION_MAJOR 2
40 #define NVMEDIA_ARRAY_VERSION_MINOR 1
46 #define NVMEDIA_ARRAY_TIMEOUT_INFINITE 0xFFFFFFFFu
92 #define NVM_ARRAY_ATTR_CPU_ACCESS_UNCACHED 0x00000000u
94 #define NVM_ARRAY_ATTR_CPU_ACCESS_CACHED 0x00000001u
148 uint32_t numElements,
177 uint32_t *elementSize
196 uint32_t *numElementsPtr
263 uint32_t millisecondWait,
332 #endif // NVMEDIA_ARRAY_H
NvMediaArrayType
Defines the different types of arrays.
NvMediaStatus NvMediaArrayGetVersion(NvMediaVersion *version)
Returns version information for the NvMediaArray library.
Specifies a signed 8-bit array.
struct NvMediaArray NvMediaArray
Holds a descriptor for an array.
Specifies a signed 32-bit array.
NvMediaArrayAllocAttrType
Defines NvMedia array allocation attribute types.
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
NvMediaStatus NvMediaArraySetSize(NvMediaArray *handle, uint32_t numElements)
Sets the size of an array (the number of populated elements in the array).
void NvMediaArrayUnlock(NvMediaArray *handle)
Unlocks an array.
NvMediaStatus NvMediaArrayGetProperties(NvMediaArray *handle, NvMediaArrayType *elementType, uint32_t *capacity, uint32_t *stride)
Gets the array properties with which array was created.
! CPU access to surface flags (default: uncached).
NvMediaStatus
Defines all possible error codes.
Specifies a float 32-bit array.
Specifies an unsigned 8-bit array.
Specifies a unsigned 32-bit array.
Specifies a float 16-bit array.
Specifies an unsigned 16-bit array.
Specifies a signed 16-bit array.
NvMediaStatus NvMediaArrayDestroy(NvMediaArray *handle)
Destroys an array created by NvMediaArrayCreate().
Number of types - If more types are needed, add above this pointer and update this constant...
NvMediaStatus NvMediaArrayGetStatus(NvMediaArray *handle, uint32_t millisecondWait, NvMediaTaskStatus *status)
Gets the status of the current or most recent operation on the array; optionally waits for the operat...
NvMediaArrayLockAccess
Defines array-lock access types.
NvMediaArray * NvMediaArrayCreate(NvMediaDevice *device, NvMediaArrayType type, uint32_t stride, uint32_t numElements, const NvMediaArrayAllocAttr *attrs, uint32_t numAttrs)
Creates an NvMedia Array.
Specifies an undefined array type.
Specifies read/write access.
NvMediaStatus NvMediaArrayGetSize(NvMediaArray *handle, uint32_t *numElementsPtr)
Gets the size of an array.
NvMediaStatus NvMediaArrayLock(NvMediaArray *handle, NvMediaArrayLockAccess lockAccessType, void **ptr)
Locks an array.
NvMediaStatus NvMediaArrayGetElemSizeForType(NvMediaArrayType type, uint32_t *elementSize)
Gets the size of a specified type of array element.