Buffer pixel formats.
Buffer usage flags, specifying how the buffer will be accessed.
Acquire a reference on the given AHardwareBuffer object. This prevents the object from being deleted until the last reference is removed.
Allocates a buffer that backs an AHardwareBuffer using the passed AHardwareBuffer_Desc.
Return a description of the AHardwareBuffer in the passed AHardwareBuffer_Desc struct.
Lock the AHardwareBuffer for reading or writing, depending on the usage flags passed. This call may block if the hardware needs to finish rendering or if CPU caches need to be synchronized, or possibly for other implementation- specific reasons. If fence is not negative, then it specifies a fence file descriptor that will be signaled when the buffer is locked, otherwise the caller will block until the buffer is available.
Receive the AHardwareBuffer from an AF_UNIX socket.
Remove a reference that was previously acquired with AHardwareBuffer_acquire().
Send the AHardwareBuffer to an AF_UNIX socket.
Unlock the AHardwareBuffer; must be called after all changes to the buffer are completed by the caller. If fence is not NULL then it will be set to a file descriptor that is signaled when all pending work on the buffer is completed. The caller is responsible for closing the fence when it is no longer needed.
@file aurorafw/android/platform/hardware_buffer.d
Buffer description. Used for allocating new buffers and querying parameters of existing ones.