Class INTELSharingFormatQuery
- java.lang.Object
-
- org.lwjgl.opencl.INTELSharingFormatQuery
-
public class INTELSharingFormatQuery extends java.lang.ObjectNative bindings to the intel_sharing_format_query extension.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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intclGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, int[] gl_formats, int[] num_texture_formats)Array version of:GetSupportedGLTextureFormatsINTELstatic intclGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, java.nio.IntBuffer gl_formats, java.nio.IntBuffer num_texture_formats)Can be used to query the list of OpenGL internal texture formats supported for sharing with an OpenCL implementation, givenflagsindicating how the image is going to be used andimage_typeindicating the type of image to create.static intclGetSupportedVA_APIMediaSurfaceFormatsINTEL(long context, long flags, int image_type, int plane, org.lwjgl.PointerBuffer va_api_formats, int[] num_surface_formats)Array version of:GetSupportedVA_APIMediaSurfaceFormatsINTELstatic intclGetSupportedVA_APIMediaSurfaceFormatsINTEL(long context, long flags, int image_type, int plane, org.lwjgl.PointerBuffer va_api_formats, java.nio.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 andimage_typeindicating the type of image to create.static intnclGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, int num_entries, long gl_formats, long num_texture_formats)Unsafe version of:GetSupportedGLTextureFormatsINTELstatic intnclGetSupportedVA_APIMediaSurfaceFormatsINTEL(long context, long flags, int image_type, int plane, int num_entries, long va_api_formats, long num_surface_formats)Unsafe version of:GetSupportedVA_APIMediaSurfaceFormatsINTEL
-
-
-
Method Detail
-
nclGetSupportedGLTextureFormatsINTEL
public static int nclGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, int num_entries, long gl_formats, long num_texture_formats)Unsafe version of:GetSupportedGLTextureFormatsINTEL- Parameters:
num_entries- specifies the number of entries that can be returned in the memory location given bygl_formats
-
clGetSupportedGLTextureFormatsINTEL
public static int clGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, @Nullable java.nio.IntBuffer gl_formats, @Nullable java.nio.IntBuffer num_texture_formats)Can be used to query the list of OpenGL internal texture formats supported for sharing with an OpenCL implementation, givenflagsindicating how the image is going to be used andimage_typeindicating the type of image to create.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.
- Parameters:
context- a valid OpenCL context created from an OpenGL contextflags- a bit-field used to specify usage information about the image memory object that will be created from the OpenGL textureimage_type- describes the type of image that will be created from the OpenGL texturegl_formats- a pointer to a memory location where the list of supported OpenGL internal texture formats supported for sharing is returned. Ifgl_formatsisNULL, it is ignored.num_texture_formats- returns the actual total number of supported OpenGL internal texture formats for the specified context and flags for the specifiedimage_type. Ifnum_texture_formatsis NULL, it is ignored.
-
nclGetSupportedVA_APIMediaSurfaceFormatsINTEL
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:GetSupportedVA_APIMediaSurfaceFormatsINTEL- Parameters:
num_entries- the number of entries that can be returned in the memory location given byva_api_formats
-
clGetSupportedVA_APIMediaSurfaceFormatsINTEL
public static int clGetSupportedVA_APIMediaSurfaceFormatsINTEL(long context, long flags, int image_type, int plane, @Nullable org.lwjgl.PointerBuffer va_api_formats, @Nullable java.nio.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 andimage_typeindicating the type of image to create.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.
- Parameters:
context- a valid OpenCL context that supports sharing VA_API media imagesflags- a bit-field used to specify usage information about the image memory object that will be created from the VA_API media imageimage_type- describes the type of image that will be created from the VA_API media imageplane- the plane that will be shared, for planar surface formatsva_api_formats- a pointer to a memory location where the list of supported VA_API media image formats supported for sharing is returned. Ifva_api_formatsisNULL, it is ignored.num_surface_formats- returns the actual total number of supported VA_API media image formats for the specified context and flags for the specifiedimage_type. Ifnum_surface_formatsisNULL, it is ignored.
-
clGetSupportedGLTextureFormatsINTEL
public static int clGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, @Nullable int[] gl_formats, @Nullable int[] num_texture_formats)Array version of:GetSupportedGLTextureFormatsINTEL
-
clGetSupportedVA_APIMediaSurfaceFormatsINTEL
public static int clGetSupportedVA_APIMediaSurfaceFormatsINTEL(long context, long flags, int image_type, int plane, @Nullable org.lwjgl.PointerBuffer va_api_formats, @Nullable int[] num_surface_formats)Array version of:GetSupportedVA_APIMediaSurfaceFormatsINTEL
-
-