Top Description Constructors Methods
org.lwjgl.opencl

public Class INTELSharingFormatQuery

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Native 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.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod 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 is NULL, it is ignored.
gl_formats
,
IntBuffer
returns the actual total number of supported OpenGL internal texture formats for the specified context and flags for the specified image_type. If num_texture_formats is NULL, it is ignored.
num_texture_formats
)

Can be used to query the list of OpenGL internal texture formats supported for sharing with an OpenCL implementation, given flags indicating how the image is going to be used and image_type indicating the type of image to create.

public static int
clGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, int[] gl_formats, int[] num_texture_formats)

Array version of: GetSupportedGLTextureFormatsINTEL

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 is NULL, it is ignored.
va_api_formats
,
IntBuffer
returns the actual total number of supported VA_API media image formats for the specified context and flags for the specified image_type. If num_surface_formats is NULL, it is ignored.
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 image_type indicating the type of image to create.

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: GetSupportedVA_APIMediaSurfaceFormatsINTEL

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 gl_formats
num_entries
,
long gl_formats, long num_texture_formats)

Unsafe version of: GetSupportedGLTextureFormatsINTEL

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 va_api_formats
num_entries
,
long va_api_formats, long num_surface_formats)

Unsafe version of: GetSupportedVA_APIMediaSurfaceFormatsINTEL

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

INTELSharingFormatQueryback to summary
protected INTELSharingFormatQuery()

Method Detail

clGetSupportedGLTextureFormatsINTELback 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 flags indicating how the image is going to be used and image_type indicating 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:long

a valid OpenCL context created from an OpenGL context

flags:long

a bit-field used to specify usage information about the image memory object that will be created from the OpenGL texture

image_type:int

describes the type of image that will be created from the OpenGL texture

gl_formats:IntBuffer

a pointer to a memory location where the list of supported OpenGL internal texture formats supported for sharing is returned. If gl_formats is NULL, it is ignored.

num_texture_formats:IntBuffer

returns the actual total number of supported OpenGL internal texture formats for the specified context and flags for the specified image_type. If num_texture_formats is NULL, it is ignored.

Annotations
@NativeType:cl_int
clGetSupportedGLTextureFormatsINTELback to summary
public static int clGetSupportedGLTextureFormatsINTEL(long context, long flags, int image_type, int[] gl_formats, int[] num_texture_formats)

Array version of: GetSupportedGLTextureFormatsINTEL

Annotations
@NativeType:cl_int
clGetSupportedVA_APIMediaSurfaceFormatsINTELback 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 image_type indicating 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:long

a valid OpenCL context that supports sharing VA_API media images

flags:long

a bit-field used to specify usage information about the image memory object that will be created from the VA_API media image

image_type:int

describes the type of image that will be created from the VA_API media image

plane:int

the plane that will be shared, for planar surface formats

va_api_formats: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 is NULL, it is ignored.

num_surface_formats:IntBuffer

returns the actual total number of supported VA_API media image formats for the specified context and flags for the specified image_type. If num_surface_formats is NULL, it is ignored.

Annotations
@NativeType:cl_int
clGetSupportedVA_APIMediaSurfaceFormatsINTELback 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: GetSupportedVA_APIMediaSurfaceFormatsINTEL

Annotations
@NativeType:cl_int
nclGetSupportedGLTextureFormatsINTELback 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: GetSupportedGLTextureFormatsINTEL

Parameters
num_entries:int

specifies the number of entries that can be returned in the memory location given by gl_formats

nclGetSupportedVA_APIMediaSurfaceFormatsINTELback 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: GetSupportedVA_APIMediaSurfaceFormatsINTEL

Parameters
num_entries:int

the number of entries that can be returned in the memory location given by va_api_formats