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 0xFFFFFFFF
91 #define NVM_ARRAY_ATTR_CPU_ACCESS_UNCACHED 0x00000000
93 #define NVM_ARRAY_ATTR_CPU_ACCESS_CACHED 0x00000001
147 uint32_t numElements,
179 uint32_t *elementSize
198 uint32_t *numElementsPtr
262 uint32_t millisecondWait,
326 #endif // _NVMEDIA_ARRAY_H
NvMediaArrayType
Defines the different types of Arrays.
NvMediaStatus NvMediaArrayGetVersion(NvMediaVersion *version)
Returns the version information for the NvMediaArray library.
struct NvMediaArray NvMediaArray
Holds a descriptor for the array.
NvMediaArrayAllocAttrType
Defines NvMedia array allocation attribute types.
NvMediaStatus NvMediaArraySetSize(NvMediaArray *handle, uint32_t numElements)
Sets the size of the array.
void NvMediaArrayUnlock(NvMediaArray *handle)
Unlocks an Array.
NvMediaStatus NvMediaArrayGetProperties(NvMediaArray *handle, NvMediaArrayType *elementType, uint32_t *capacity, uint32_t *stride)
Helper function to get array properties with which array was created.
! CPU access to surface flags (default: uncached)
NvMediaStatus
The set of all possible error codes.
void NvMediaDevice
An opaque handle representing a NvMediaDevice object.
NvMediaStatus NvMediaArrayDestroy(NvMediaArray *handle)
Destroys an array created by NvMediaArrayCreate().
Number of types - If more types are needed, add above this and update this.
NvMediaStatus NvMediaArrayGetStatus(NvMediaArray *handle, uint32_t millisecondWait, NvMediaTaskStatus *status)
Gets the status of the current/last operation for the Array and optionally waits for the operation to...
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.
NvMediaStatus NvMediaArrayGetSize(NvMediaArray *handle, uint32_t *numElementsPtr)
Gets the size of the array.
NvMediaStatus NvMediaArrayLock(NvMediaArray *handle, NvMediaArrayLockAccess lockAccessType, void **ptr)
Locks an Array to which data can be written/read without interference from another thread/process...
NvMediaStatus NvMediaArrayGetElemSizeForType(NvMediaArrayType type, uint32_t *elementSize)
Gets the size of an element, for a particular type of array element.