Class EXTSurfaceCompression
- java.lang.Object
-
- org.lwjgl.egl.EXTSurfaceCompression
-
public class EXTSurfaceCompression extends java.lang.ObjectNative bindings to the EXT_surface_compression extension.Applications may wish to take advantage of framebuffer compression. Some platforms may support framebuffer compression at fixed bitrates. Such compression algorithms generally produce results that are visually lossless, but the results are typically not bit exact when compared to a non-compressed result.
This extension enables applications to opt-in to fixed-rate compression for EGL window surfaces.
Compression may not be supported for all framebuffer formats. It can still be requested for all formats and applications can query what level of compression was actually enabled.
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleaneglQuerySupportedCompressionRatesEXT(long dpy, long config, org.lwjgl.PointerBuffer attrib_list, int[] rates, int[] num_rates)Array version of:QuerySupportedCompressionRatesEXTstatic booleaneglQuerySupportedCompressionRatesEXT(long dpy, long config, org.lwjgl.PointerBuffer attrib_list, java.nio.IntBuffer rates, java.nio.IntBuffer num_rates)Gets the list of all fixed-rate compression rates that are available on a specified display andEGLConfig.static intneglQuerySupportedCompressionRatesEXT(long dpy, long config, long attrib_list, long rates, int rate_size, long num_rates)Unsafe version of:QuerySupportedCompressionRatesEXT
-
-
-
Field Detail
-
EGL_SURFACE_COMPRESSION_EXT, EGL_SURFACE_COMPRESSION_PLANE1_EXT, EGL_SURFACE_COMPRESSION_PLANE2_EXT
New attributes accepted by theattrib_listargument ofCreatePlatformWindowSurfaceandCreateWindowSurface.
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_NONE_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_DEFAULT_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_1BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_2BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_3BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_4BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_5BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_6BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_7BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_8BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_9BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_10BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_11BPC_EXT, EGL_SURFACE_COMPRESSION_FIXED_RATE_12BPC_EXT
Accepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.
-
-
Method Detail
-
neglQuerySupportedCompressionRatesEXT
public static int neglQuerySupportedCompressionRatesEXT(long dpy, long config, long attrib_list, long rates, int rate_size, long num_rates)Unsafe version of:QuerySupportedCompressionRatesEXT
-
eglQuerySupportedCompressionRatesEXT
public static boolean eglQuerySupportedCompressionRatesEXT(long dpy, long config, @Nullable org.lwjgl.PointerBuffer attrib_list, @Nullable java.nio.IntBuffer rates, java.nio.IntBuffer num_rates)Gets the list of all fixed-rate compression rates that are available on a specified display andEGLConfig.The number of rates is returned in
num_rates, and elements 0 throughnum_rates-1ofratesare filled in with the available compression rates.No more than
rate_sizecompression rates will be returned even if more are available on the specified display and config. However, ifeglQuerySupportedCompressionRatesEXTis called withrates = NULL, then no rates are returned, but the total number of rates available will be returned innum_rates.The possible values returned in
ratesare the attribute values accepted forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface, exceptSURFACE_COMPRESSION_FIXED_RATE_NONE_EXTandSURFACE_COMPRESSION_FIXED_RATE_DEFAULT_EXT.- Parameters:
attrib_list- a list of attributes that will be provided when a surface is created with this combination of display andEGLConfig. The accepted attributes are the same as forCreatePlatformWindowSurface.rates- a pointer to a buffer containingrate_sizeelements.- Returns:
TRUEon success.
-
eglQuerySupportedCompressionRatesEXT
public static boolean eglQuerySupportedCompressionRatesEXT(long dpy, long config, @Nullable org.lwjgl.PointerBuffer attrib_list, @Nullable int[] rates, int[] num_rates)Array version of:QuerySupportedCompressionRatesEXT
-
-