Existing interop / sharing extensions require support for a minimum set of image formats, however many OpenCL implementations may support sharing image formats above and beyond the minimum. This extension provides a mechanism for an application to query the set of API-specific image formats that an OpenCL implementation can accept for sharing.
Note that the query functionality provided by this extension does not replace API-specific query functions or guarantee that an API-specific image with the returned format may be created. Additionally, some APIs may require that a buffer or image be created with particular flags or parameters to be shared with OpenCL, so this extension does not guarantee that all API-specific images of the queried formats may be shared with OpenCL. It does, however, guarantee that some API-specific images of the queried formats may be shared with OpenCL.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | clGetSupportedGLTextureFormatsINTEL(long
a valid OpenCL context created from an OpenGL context context, long a bit-field used to specify usage information about the image memory object that will be created from the OpenGL texture flags, int describes the type of image that will be created from the OpenGL texture image_type, IntBuffer a pointer to a memory location where the list of supported OpenGL internal texture formats supported for sharing is returned. If gl_formats, IntBuffer gl_formats
is NULL, it is ignored.returns the actual total number of supported OpenGL internal texture formats for the specified context and flags for the specified
num_texture_formats)image_type. If num_texture_formats is NULL, it is ignored.Can be used to query the list of OpenGL internal texture formats supported for sharing with an OpenCL implementation, given |
| public static int | clGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, int[] gl_formats, int[] num_texture_formats)
Array version of: |
| public static int | clGetSupportedVA_APIMediaSurfaceFormatsINTEL(long
a valid OpenCL context that supports sharing VA_API media images context, long a bit-field used to specify usage information about the image memory object that will be created from the VA_API media image flags, int describes the type of image that will be created from the VA_API media image image_type, int the plane that will be shared, for planar surface formats plane, PointerBuffer a pointer to a memory location where the list of supported VA_API media image formats supported for sharing is returned. If va_api_formats, IntBuffer va_api_formats
is NULL, it is ignored.returns the actual total number of supported VA_API media image formats for the specified context and flags for the specified num_surface_formats)image_type.
If num_surface_formats is NULL, it is ignored.Can be used to query the list of VA_API media image formats supported for sharing with an OpenCL implementation, given flags indicating how the image
is going to be used and |
| public static int | clGetSupportedVA_APIMediaSurfaceFormatsINTEL(long context, long flags, int image_type, int plane, PointerBuffer va_api_formats, int[] num_surface_formats)
Array version of: |
| public static int | nclGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, int
specifies the number of entries that can be returned in the memory location given by num_entries, long gl_formats, long num_texture_formats)gl_formatsUnsafe version of: |
| public static int | nclGetSupportedVA_APIMediaSurfaceFormatsINTEL(long context, long flags, int image_type, int plane, int
the number of entries that can be returned in the memory location given by num_entries, long va_api_formats, long num_surface_formats)va_api_formatsUnsafe version of: |
| INTELSharingFormatQuery | back to summary |
|---|---|
| protected INTELSharingFormatQuery() | |
| clGetSupportedGLTextureFormatsINTEL | back to summary |
|---|---|
| public static int clGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, IntBuffer gl_formats, IntBuffer num_texture_formats) Can be used to query the list of OpenGL internal texture formats supported for sharing with an OpenCL implementation, given If there are multiple devices in the context, the returned set of image formats is the union of image formats supported by all devices in the context.
| |
| clGetSupportedGLTextureFormatsINTEL | back to summary |
|---|---|
| public static int clGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, int[] gl_formats, int[] num_texture_formats) Array version of:
| |
| clGetSupportedVA_APIMediaSurfaceFormatsINTEL | back to summary |
|---|---|
| public static int clGetSupportedVA_APIMediaSurfaceFormatsINTEL(long context, long flags, int image_type, int plane, PointerBuffer va_api_formats, IntBuffer num_surface_formats) Can be used to query the list of VA_API media image formats supported for sharing with an OpenCL implementation, given flags indicating how the image
is going to be used and If there are multiple devices in the context, the returned set of image formats is the union of VA_API media image formats supported by all devices in the context.
| |
| clGetSupportedVA_APIMediaSurfaceFormatsINTEL | back to summary |
|---|---|
| public static int clGetSupportedVA_APIMediaSurfaceFormatsINTEL(long context, long flags, int image_type, int plane, PointerBuffer va_api_formats, int[] num_surface_formats) Array version of:
| |
| nclGetSupportedGLTextureFormatsINTEL | back to summary |
|---|---|
| public static int nclGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, int num_entries, long gl_formats, long num_texture_formats) Unsafe version of:
| |
| nclGetSupportedVA_APIMediaSurfaceFormatsINTEL | back to summary |
|---|---|
| public static int nclGetSupportedVA_APIMediaSurfaceFormatsINTEL(long context, long flags, int image_type, int plane, int num_entries, long va_api_formats, long num_surface_formats) Unsafe version of:
| |