DXT1/DXT5 compressor.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | STB_DXT_DITHER
Use dithering. |
| public static final int | STB_DXT_HIGHQUAL
High quality mode, does two refinement steps instead of 1. |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||
|---|---|---|---|---|
| public static native void | nstb_compress_bc4_block(long dest, long src_r_one_byte_per_pixel)
Unsafe version of: | |||
| public static native void | nstb_compress_bc5_block(long dest, long src_rg_two_byte_per_pixel)
Unsafe version of: | |||
| public static native void | nstb_compress_dxt_block(long dest, long src_rgba_four_bytes_per_pixel, int alpha, int mode)
Unsafe version of: | |||
| public static void | stb_compress_bc4_block(ByteBuffer
a buffer in which to store the compressed block dest, ByteBuffer the block to compress src_r_one_byte_per_pixel)Call this function for every block (you must pad). | |||
| public static void | stb_compress_bc5_block(ByteBuffer
a buffer in which to store the compressed block dest, ByteBuffer the block to compress src_rg_two_byte_per_pixel)Call this function for every block (you must pad). | |||
| public static void | stb_compress_dxt_block(ByteBuffer
a buffer in which to store the compressed block dest, ByteBuffer the block to compress src_rgba_four_bytes_per_pixel, boolean 1 to compress the alpha channel, 0 to ignore it alpha, int the compression mode. One of: mode)
Call this function for every block (you must pad). |
| STB_DXT_DITHER | back to summary |
|---|---|
| public static final int STB_DXT_DITHER Use dithering. Was always dubious, now deprecated. Does nothing! | |
| STB_DXT_HIGHQUAL | back to summary |
|---|---|
| public static final int STB_DXT_HIGHQUAL High quality mode, does two refinement steps instead of 1. ~30-40% slower. | |
| STB_DXT_NORMAL | back to summary |
|---|---|
| public static final int STB_DXT_NORMAL | |
| STBDXT | back to summary |
|---|---|
| protected STBDXT() | |
| nstb_compress_bc4_block | back to summary |
|---|---|
| public static native void nstb_compress_bc4_block(long dest, long src_r_one_byte_per_pixel) Unsafe version of: | |
| nstb_compress_bc5_block | back to summary |
|---|---|
| public static native void nstb_compress_bc5_block(long dest, long src_rg_two_byte_per_pixel) Unsafe version of: | |
| nstb_compress_dxt_block | back to summary |
|---|---|
| public static native void nstb_compress_dxt_block(long dest, long src_rgba_four_bytes_per_pixel, int alpha, int mode) Unsafe version of: | |
| stb_compress_bc4_block | back to summary |
|---|---|
| public static void stb_compress_bc4_block(ByteBuffer dest, ByteBuffer src_r_one_byte_per_pixel) Call this function for every block (you must pad). The source should be a 4x4 block of A data in row-major order.
| |
| stb_compress_bc5_block | back to summary |
|---|---|
| public static void stb_compress_bc5_block(ByteBuffer dest, ByteBuffer src_rg_two_byte_per_pixel) Call this function for every block (you must pad). The source should be a 4x4 block of RG data in row-major order.
| |
| stb_compress_dxt_block | back to summary | |||
|---|---|---|---|---|
| public static void stb_compress_dxt_block(ByteBuffer dest, ByteBuffer src_rgba_four_bytes_per_pixel, boolean alpha, int mode) Call this function for every block (you must pad). The source should be a 4x4 block of RGBA data in row-major order. Alpha channel is not stored if you specify
| ||||