NativeWindowNativeBindings
NameSpace: NativeWindow
Public Methods
void AHardwareBuffer_acquire
public void AHardwareBuffer_acquire(
AHardwareBuffer buffer
)
Parameters
Type | Name | Description |
---|---|---|
AHardwareBuffer | buffer |
int AHardwareBuffer_allocate
public int AHardwareBuffer_allocate(
ref AHardwareBuffer.Description description,
out AHardwareBuffer buffer
)
Parameters
Type | Name | Description |
---|---|---|
ref AHardwareBuffer.Description | description | |
out AHardwareBuffer | buffer |
void AHardwareBuffer_describe
public void AHardwareBuffer_describe(
AHardwareBuffer buffer,
out AHardwareBuffer.Description description
)
Parameters
Type | Name | Description |
---|---|---|
AHardwareBuffer | buffer | |
out AHardwareBuffer.Description | description |
int AHardwareBuffer_isSupported
public int AHardwareBuffer_isSupported(
ref AHardwareBuffer.Description description
)
Parameters
Type | Name | Description |
---|---|---|
ref AHardwareBuffer.Description | description |
unsafe int AHardwareBuffer_lock
public unsafe int AHardwareBuffer_lock(
AHardwareBuffer buffer,
AHardwareBuffer.Usage usage,
int fence,
ARect * rect,
out void * virtualAddress
)
Parameters
Type | Name | Description |
---|---|---|
AHardwareBuffer | buffer | |
AHardwareBuffer.Usage | usage | |
int | fence | |
ARect * | rect | |
out void * | virtualAddress |
unsafe int AHardwareBuffer_lockAndGetInfo
public unsafe int AHardwareBuffer_lockAndGetInfo(
AHardwareBuffer buffer,
AHardwareBuffer.Usage usage,
int fence,
ARect * rect,
out void * outVirtualAddress,
out int outBytesPerPixel,
out int outBytesPerStride
)
Parameters
Type | Name | Description |
---|---|---|
AHardwareBuffer | buffer | |
AHardwareBuffer.Usage | usage | |
int | fence | |
ARect * | rect | |
out void * | outVirtualAddress | |
out int | outBytesPerPixel | |
out int | outBytesPerStride |
unsafe int AHardwareBuffer_lockPlanes
public unsafe int AHardwareBuffer_lockPlanes(
AHardwareBuffer buffer,
AHardwareBuffer.Usage usage,
int fenceFd,
ARect * rect,
out AHardwareBuffer.Planes outPlanes
)
Parameters
Type | Name | Description |
---|---|---|
AHardwareBuffer | buffer | |
AHardwareBuffer.Usage | usage | |
int | fenceFd | |
ARect * | rect | |
out AHardwareBuffer.Planes | outPlanes |
int AHardwareBuffer_recvHandleFromUnixSocket
public int AHardwareBuffer_recvHandleFromUnixSocket(
int socketFd,
out AHardwareBuffer buffer
)
Parameters
Type | Name | Description |
---|---|---|
int | socketFd | |
out AHardwareBuffer | buffer |
void AHardwareBuffer_release
public void AHardwareBuffer_release(
AHardwareBuffer buffer
)
Parameters
Type | Name | Description |
---|---|---|
AHardwareBuffer | buffer |
int AHardwareBuffer_sendHandleToUnixSocket
public int AHardwareBuffer_sendHandleToUnixSocket(
AHardwareBuffer buffer,
int socketFd
)
Parameters
Type | Name | Description |
---|---|---|
AHardwareBuffer | buffer | |
int | socketFd |
unsafe int AHardwareBuffer_unlock
public unsafe int AHardwareBuffer_unlock(
AHardwareBuffer buffer,
int * fence
)
Parameters
Type | Name | Description |
---|---|---|
AHardwareBuffer | buffer | |
int * | fence |
Public Attributes
kLibraryName
public const string kLibraryName = "libnativewindow";