This extension adds a new function that allows for direct memory import into OpenCL via the ImportMemoryARM function.
Memory imported through this interface will be mapped into the device's page tables directly, providing zero copy access. It will never fall back to copy operations and aliased buffers, instead producing an error when mapping is not possible.
Types of memory supported for import are specified as additional extension strings.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_IMPORT_ANDROID_HARDWARE_BUFFER_LAYER_INDEX_ARM
Index of layer in a multilayer hardware buffer. |
| public static final int | CL_IMPORT_ANDROID_HARDWARE_BUFFER_PLANE_INDEX_ARM
Index of plane in a multiplanar hardware buffer. |
| public static final int | CL_IMPORT_DMA_BUF_DATA_CONSISTENCY_WITH_HOST_ARM
Data consistency with host property. |
| public static final long | CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARM
Import memory size value to indicate a size for the whole buffer. |
| public static final int | CL_IMPORT_TYPE_ANDROID_HARDWARE_BUFFER_ARM
Android hardware buffer type value for |
| public static final int | CL_IMPORT_TYPE_ARM
Default and valid properties name for |
| public static final int | CL_IMPORT_TYPE_DMA_BUF_ARM
DMA BUF memory type value for |
| public static final int | CL_IMPORT_TYPE_HOST_ARM
Host process memory type default value for |
| public static final int | CL_IMPORT_TYPE_PROTECTED_ARM
Protected memory property. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static long | clImportMemoryARM(long context, long flags, PointerBuffer properties, ByteBuffer memory, IntBuffer
will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.
|
| public static long | clImportMemoryARM(long context, long flags, PointerBuffer properties, ByteBuffer memory, int[] errcode_ret)
Array version of: |
| public static long | nclImportMemoryARM(long context, long flags, long properties, long memory, long size, long errcode_ret)
Unsafe version of: |
| CL_IMPORT_ANDROID_HARDWARE_BUFFER_LAYER_INDEX_ARM | back to summary |
|---|---|
| public static final int CL_IMPORT_ANDROID_HARDWARE_BUFFER_LAYER_INDEX_ARM Index of layer in a multilayer hardware buffer. | |
| CL_IMPORT_ANDROID_HARDWARE_BUFFER_PLANE_INDEX_ARM | back to summary |
|---|---|
| public static final int CL_IMPORT_ANDROID_HARDWARE_BUFFER_PLANE_INDEX_ARM Index of plane in a multiplanar hardware buffer. | |
| CL_IMPORT_DMA_BUF_DATA_CONSISTENCY_WITH_HOST_ARM | back to summary |
|---|---|
| public static final int CL_IMPORT_DMA_BUF_DATA_CONSISTENCY_WITH_HOST_ARM Data consistency with host property. | |
| CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARM | back to summary |
|---|---|
| public static final long CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARM Import memory size value to indicate a size for the whole buffer. | |
| CL_IMPORT_TYPE_ANDROID_HARDWARE_BUFFER_ARM | back to summary |
|---|---|
| public static final int CL_IMPORT_TYPE_ANDROID_HARDWARE_BUFFER_ARM Android hardware buffer type value for | |
| CL_IMPORT_TYPE_ARM | back to summary |
|---|---|
| public static final int CL_IMPORT_TYPE_ARM Default and valid properties name for | |
| CL_IMPORT_TYPE_DMA_BUF_ARM | back to summary |
|---|---|
| public static final int CL_IMPORT_TYPE_DMA_BUF_ARM DMA BUF memory type value for | |
| CL_IMPORT_TYPE_HOST_ARM | back to summary |
|---|---|
| public static final int CL_IMPORT_TYPE_HOST_ARM Host process memory type default value for | |
| CL_IMPORT_TYPE_PROTECTED_ARM | back to summary |
|---|---|
| public static final int CL_IMPORT_TYPE_PROTECTED_ARM Protected memory property. | |
| ARMImportMemory | back to summary |
|---|---|
| protected ARMImportMemory() | |
| clImportMemoryARM | back to summary |
|---|---|
public static long clImportMemoryARM(long context, long flags, PointerBuffer properties, ByteBuffer memory, IntBuffer errcode_ret)
| |
| clImportMemoryARM | back to summary |
|---|---|
| public static long clImportMemoryARM(long context, long flags, PointerBuffer properties, ByteBuffer memory, int[] errcode_ret) Array version of:
| |
| nclImportMemoryARM | back to summary |
|---|---|
| public static long nclImportMemoryARM(long context, long flags, long properties, long memory, long size, long errcode_ret) Unsafe version of: | |