Class EXTSurfaceCompression
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
FieldsModifier and TypeFieldDescriptionstatic final intNew attributes accepted by theattrib_listargument ofCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.static final intNew attributes accepted by theattrib_listargument ofCreatePlatformWindowSurfaceandCreateWindowSurface.static final intNew attributes accepted by theattrib_listargument ofCreatePlatformWindowSurfaceandCreateWindowSurface. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleaneglQuerySupportedCompressionRatesEXT(long dpy, long config, @Nullable org.lwjgl.PointerBuffer attrib_list, int @Nullable [] rates, int[] num_rates) Array version of:QuerySupportedCompressionRatesEXTstatic booleaneglQuerySupportedCompressionRatesEXT(long dpy, long config, @Nullable org.lwjgl.PointerBuffer attrib_list, @Nullable IntBuffer rates, 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 Details
-
EGL_SURFACE_COMPRESSION_EXT
public static final int EGL_SURFACE_COMPRESSION_EXTNew attributes accepted by theattrib_listargument ofCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_PLANE1_EXT
public static final int EGL_SURFACE_COMPRESSION_PLANE1_EXTNew attributes accepted by theattrib_listargument ofCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_PLANE2_EXT
public static final int EGL_SURFACE_COMPRESSION_PLANE2_EXTNew attributes accepted by theattrib_listargument ofCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_NONE_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_NONE_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_DEFAULT_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_DEFAULT_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_1BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_1BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_2BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_2BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_3BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_3BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_4BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_4BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_5BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_5BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_6BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_6BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_7BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_7BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_8BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_8BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_9BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_9BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_10BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_10BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_11BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_11BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
EGL_SURFACE_COMPRESSION_FIXED_RATE_12BPC_EXT
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_12BPC_EXTAccepted as attribute values forSURFACE_COMPRESSION_EXTbyCreatePlatformWindowSurfaceandCreateWindowSurface.- See Also:
-
-
Method Details
-
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 IntBuffer rates, 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, int @Nullable [] rates, int[] num_rates) Array version of:QuerySupportedCompressionRatesEXT
-