Index
All Classes and Interfaces|All Packages|Serialized Form
B
- BMP - Enum constant in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
- BmpDecoder - Class in org.ngengine.stbimage
-
BMP decoder supporting 1/4/8/24/32-bit, uncompressed and RLE compressed.
- BmpDecoder(ByteBuffer, IntFunction<ByteBuffer>, boolean) - Constructor for class org.ngengine.stbimage.BmpDecoder
-
Creates a BMP decoder instance.
C
- checkedImageBufferSize(int, int, int, int) - Static method in class org.ngengine.stbimage.StbLimits
-
Computes byte size for interleaved image buffers with overflow checks.
- checkedPixelCount(int, int) - Static method in class org.ngengine.stbimage.StbLimits
-
Computes pixel count with overflow checks.
- checkMaxSingleAllocationBytes(long) - Static method in class org.ngengine.stbimage.StbLimits
-
Checks if the requested single allocation bytes exceeds the configured limit.
- checkMaxTotalAllocationPerDecodeBytes(long) - Static method in class org.ngengine.stbimage.StbLimits
-
Checks if the requested cumulative allocation bytes for a decode operation exceeds the configured limit.
- checkStalledRounds(int) - Static method in class org.ngengine.stbimage.StbLimits
-
Checks if stalled rounds have exceeded the configured limit.
- convertChannels(IntFunction<ByteBuffer>, ByteBuffer, int, int, int, int, boolean) - Static method in class org.ngengine.stbimage.StbUtils
-
Converts interleaved pixel channels between 1/2/3/4-channel layouts.
- create(ByteBuffer, IntFunction<ByteBuffer>, boolean) - Method in interface org.ngengine.stbimage.StbImage.StbDecoderInstancer
G
- getAllocator() - Method in class org.ngengine.stbimage.BmpDecoder
-
Returns the allocator used by this decoder for output buffers.
- getAllocator() - Method in class org.ngengine.stbimage.GifDecoder
- getAllocator() - Method in class org.ngengine.stbimage.HdrDecoder
-
Returns the allocator used by this decoder for output buffers.
- getAllocator() - Method in class org.ngengine.stbimage.JpegDecoder
-
Returns the allocator used by this decoder for output buffers.
- getAllocator() - Method in class org.ngengine.stbimage.PicDecoder
-
Returns the allocator used by this decoder for output buffers.
- getAllocator() - Method in class org.ngengine.stbimage.PngDecoder
-
Returns the allocator used by this decoder for output buffers.
- getAllocator() - Method in class org.ngengine.stbimage.PnmDecoder
-
Returns the allocator used by this decoder for output buffers.
- getAllocator() - Method in class org.ngengine.stbimage.PsdDecoder
-
Returns the allocator used by this decoder for output buffers.
- getAllocator() - Method in interface org.ngengine.stbimage.StbDecoder
-
Returns the allocator used by this decoder for output buffers.
- getAllocator() - Method in class org.ngengine.stbimage.TgaDecoder
-
Returns the allocator used by this decoder for output buffers.
- getBytesPerChannel() - Method in class org.ngengine.stbimage.StbImageResult
-
Gets the bytes per channel (1 for 8-bit, 2 for 16-bit, 4 for float/HDR).
- getChannels() - Method in class org.ngengine.stbimage.StbImageInfo
-
Returns channel count in decoded source/default representation.
- getChannels() - Method in class org.ngengine.stbimage.StbImageResult
-
Returns the effective channel count in
StbImageResult.getData(). - getData() - Method in class org.ngengine.stbimage.StbImageResult
-
Gets the raw pixel data as a ByteBuffer.
- getDataSize() - Method in class org.ngengine.stbimage.StbImageResult
-
Gets the total size of the pixel data in bytes.
- getDecoder(ByteBuffer, boolean) - Method in class org.ngengine.stbimage.StbImage
-
Selects and instantiates a decoder for the provided buffer.
- getDecoderCount() - Method in class org.ngengine.stbimage.StbImage
-
Returns the number of registered decoders.
- getFormat() - Method in class org.ngengine.stbimage.StbImageInfo
-
Returns the detected image format.
- getFrameCount() - Method in class org.ngengine.stbimage.GifDecoder
-
Returns the number of frames in the GIF stream.
- getFrameIndex() - Method in class org.ngengine.stbimage.StbImageResult
-
Returns zero-based frame index for animated formats.
- getHeight() - Method in class org.ngengine.stbimage.StbImageInfo
-
Returns image height in pixels.
- getHeight() - Method in class org.ngengine.stbimage.StbImageResult
-
Returns image height in pixels.
- getLastFrameDelayMs() - Method in class org.ngengine.stbimage.GifDecoder
-
Returns delay in milliseconds for the last frame returned by
GifDecoder.load(int)orGifDecoder.loadNextFrame(int). - getNumFrames() - Method in class org.ngengine.stbimage.StbImageInfo
-
Returns total frame count.
- getPixel(int, int) - Method in class org.ngengine.stbimage.StbImageResult
-
Gets a pixel at the specified coordinates.
- getReason() - Method in exception class org.ngengine.stbimage.StbFailureException
-
Returns the raw failure reason.
- getRegisteredFormats() - Method in class org.ngengine.stbimage.StbImage
-
Returns a list of registered decoder formats.
- getRequestedChannels() - Method in class org.ngengine.stbimage.StbImageResult
-
Returns the channel count requested by the caller.
- getWidth() - Method in class org.ngengine.stbimage.StbImageInfo
-
Returns image width in pixels.
- getWidth() - Method in class org.ngengine.stbimage.StbImageResult
-
Returns image width in pixels.
- GIF - Enum constant in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
- GifDecoder - Class in org.ngengine.stbimage
-
GIF decoder.
- GifDecoder(ByteBuffer, IntFunction<ByteBuffer>, boolean) - Constructor for class org.ngengine.stbimage.GifDecoder
-
Creates a GIF decoder instance.
H
- HDR - Enum constant in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
- HdrDecoder - Class in org.ngengine.stbimage
-
Radiance HDR decoder, RGBE to float conversion.
- HdrDecoder(ByteBuffer, IntFunction<ByteBuffer>, boolean) - Constructor for class org.ngengine.stbimage.HdrDecoder
-
Creates an HDR decoder instance.
I
- info() - Method in class org.ngengine.stbimage.BmpDecoder
-
Reads image metadata without fully decoding pixel data.
- info() - Method in class org.ngengine.stbimage.GifDecoder
- info() - Method in class org.ngengine.stbimage.HdrDecoder
-
Reads image metadata without fully decoding pixel data.
- info() - Method in class org.ngengine.stbimage.JpegDecoder
-
Reads image metadata without fully decoding pixel data.
- info() - Method in class org.ngengine.stbimage.PicDecoder
-
Reads image metadata without fully decoding pixel data.
- info() - Method in class org.ngengine.stbimage.PngDecoder
-
Reads image metadata without fully decoding pixel data.
- info() - Method in class org.ngengine.stbimage.PnmDecoder
-
Reads image metadata without fully decoding pixel data.
- info() - Method in class org.ngengine.stbimage.PsdDecoder
-
Reads image metadata without fully decoding pixel data.
- info() - Method in interface org.ngengine.stbimage.StbDecoder
-
Reads image metadata without fully decoding pixel data.
- info() - Method in class org.ngengine.stbimage.TgaDecoder
-
Reads image metadata without fully decoding pixel data.
- is16Bit() - Method in class org.ngengine.stbimage.StbImageInfo
-
Indicates whether source data is 16-bit per channel.
- is16Bit() - Method in class org.ngengine.stbimage.StbImageResult
-
Indicates 16-bit channel storage.
- isAnimated() - Method in class org.ngengine.stbimage.GifDecoder
-
Indicates whether the GIF contains more than one frame.
- isBmp(ByteBuffer) - Static method in class org.ngengine.stbimage.BmpDecoder
-
Tests if the buffer starts with BMP magic bytes.
- isConvertIphonePngToRgb() - Method in class org.ngengine.stbimage.StbImage
-
Returns whether iPhone PNG channel conversion is enabled.
- isFillGifFirstFrameBackground() - Method in class org.ngengine.stbimage.StbImage
-
Returns whether GIF first-frame untouched pixels are filled from background color.
- isGif(ByteBuffer) - Static method in class org.ngengine.stbimage.GifDecoder
-
Tests whether the source starts with a GIF87a/GIF89a signature.
- isHdr() - Method in class org.ngengine.stbimage.StbImageResult
-
Indicates floating-point HDR storage.
- isHdr(ByteBuffer) - Static method in class org.ngengine.stbimage.HdrDecoder
-
Tests if the source starts with a Radiance HDR signature.
- isJpeg(ByteBuffer) - Static method in class org.ngengine.stbimage.JpegDecoder
-
Tests whether the input starts with JPEG SOI marker bytes.
- isPic(ByteBuffer) - Static method in class org.ngengine.stbimage.PicDecoder
-
Tests whether the source starts with Softimage PIC magic values.
- isPng(ByteBuffer) - Static method in class org.ngengine.stbimage.PngDecoder
-
Tests whether the buffer starts with a PNG signature.
- isPnm(ByteBuffer) - Static method in class org.ngengine.stbimage.PnmDecoder
-
Tests whether the source starts with a supported PNM magic value.
- isPsd(ByteBuffer) - Static method in class org.ngengine.stbimage.PsdDecoder
-
Tests whether the source starts with a valid PSD signature/version.
- isTga(ByteBuffer) - Static method in class org.ngengine.stbimage.TgaDecoder
-
Performs a lightweight TGA probe.
- isUnpremultiplyOnLoad() - Method in class org.ngengine.stbimage.StbImage
-
Returns whether iPhone PNG unpremultiply is enabled.
- isUserMessage() - Method in exception class org.ngengine.stbimage.StbFailureException
-
Indicates whether the exception message is already user-facing.
J
- JPEG - Enum constant in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
- JpegDecoder - Class in org.ngengine.stbimage
-
JPEG decoder - baseline (sequential) and progressive DCT decoder, implemented to match stb_image.h behavior closely.
- JpegDecoder(ByteBuffer, IntFunction<ByteBuffer>, boolean) - Constructor for class org.ngengine.stbimage.JpegDecoder
-
Creates a JPEG decoder instance.
L
- load(int) - Method in class org.ngengine.stbimage.BmpDecoder
-
Decodes image pixels.
- load(int) - Method in class org.ngengine.stbimage.GifDecoder
-
Decodes and returns the first frame (stb-style load behavior).
- load(int) - Method in class org.ngengine.stbimage.HdrDecoder
-
Decodes image pixels.
- load(int) - Method in class org.ngengine.stbimage.JpegDecoder
-
Decodes image pixels.
- load(int) - Method in class org.ngengine.stbimage.PicDecoder
-
Decodes image pixels.
- load(int) - Method in class org.ngengine.stbimage.PngDecoder
-
Decodes image pixels.
- load(int) - Method in class org.ngengine.stbimage.PnmDecoder
-
Decodes image pixels.
- load(int) - Method in class org.ngengine.stbimage.PsdDecoder
-
Decodes image pixels.
- load(int) - Method in interface org.ngengine.stbimage.StbDecoder
-
Decodes image pixels.
- load(int) - Method in class org.ngengine.stbimage.TgaDecoder
-
Decodes image pixels.
- load16(int) - Method in interface org.ngengine.stbimage.StbDecoder
-
Loads image data as 16-bit channels.
- loadAllFrames(int) - Method in class org.ngengine.stbimage.GifDecoder
-
Decodes all frames and returns them.
- loadAllFrames(int) - Method in interface org.ngengine.stbimage.StbDecoder
-
Loads all frames for animated formats.
- loadf(int) - Method in interface org.ngengine.stbimage.StbDecoder
-
Loads image data as floating-point output for HDR-capable decoders.
- loadNextFrame(int) - Method in class org.ngengine.stbimage.GifDecoder
-
Loads the next GIF frame in streaming mode.
- loadNextFrame(int) - Method in interface org.ngengine.stbimage.StbDecoder
-
Loads the next frame for animated formats.
- lock() - Static method in class org.ngengine.stbimage.StbLimits
O
- org.ngengine.stbimage - package org.ngengine.stbimage
P
- PIC - Enum constant in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
- PicDecoder - Class in org.ngengine.stbimage
-
Softimage PIC decoder.
- PicDecoder(ByteBuffer, IntFunction<ByteBuffer>, boolean) - Constructor for class org.ngengine.stbimage.PicDecoder
-
Creates a PIC decoder instance.
- PNG - Enum constant in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
- PngDecoder - Class in org.ngengine.stbimage
-
PNG decoder with zlib decompression.
- PngDecoder(ByteBuffer, IntFunction<ByteBuffer>, boolean) - Constructor for class org.ngengine.stbimage.PngDecoder
-
Creates a PNG decoder instance.
- PNM - Enum constant in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
- PnmDecoder - Class in org.ngengine.stbimage
-
PNM decoder for PPM/PGM (binary), including 16-bit.
- PnmDecoder(ByteBuffer, IntFunction<ByteBuffer>, boolean) - Constructor for class org.ngengine.stbimage.PnmDecoder
-
Creates a PNM decoder instance.
- PSD - Enum constant in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
- PsdDecoder - Class in org.ngengine.stbimage
-
PSD decoder for composited RGB view, 8/16-bit.
- PsdDecoder(ByteBuffer, IntFunction<ByteBuffer>, boolean) - Constructor for class org.ngengine.stbimage.PsdDecoder
-
Creates a PSD decoder instance.
R
- registerDecoder(String, StbImage.StbDecoderInstancer, Predicate<ByteBuffer>) - Method in class org.ngengine.stbimage.StbImage
-
Registers a decoder type and its format probe.
S
- setConvertIphonePngToRgb(boolean) - Method in class org.ngengine.stbimage.PngDecoder
-
Enables/disables iPhone CgBI BGR(A)-to-RGB(A) conversion.
- setConvertIphonePngToRgb(boolean) - Method in class org.ngengine.stbimage.StbImage
-
Enables/disables automatic iPhone PNG BGR->RGB conversion for CgBI PNGs.
- setFillFirstFrameBackground(boolean) - Method in class org.ngengine.stbimage.GifDecoder
-
Controls whether first-frame untouched pixels are filled using GIF logical screen background color.
- setFillGifFirstFrameBackground(boolean) - Method in class org.ngengine.stbimage.StbImage
-
Enables/disables logical-screen background fill for untouched pixels on GIF first frame.
- setMaxDimensions(int) - Static method in class org.ngengine.stbimage.StbLimits
-
Sets the maximum allowed image dimensions for decoding.
- setMaxSingleAllocationBytes(int) - Static method in class org.ngengine.stbimage.StbLimits
-
Sets the maximum number of bytes allowed for any single buffer allocation during decode.
- setMaxTotalAllocationPerDecodeBytes(long) - Static method in class org.ngengine.stbimage.StbLimits
-
Sets the maximum cumulative bytes allocated by one decoder instance.
- setStalledRoundsLimit(int) - Static method in class org.ngengine.stbimage.StbLimits
-
Set how many rounds a loop can stall (make no progress) before we consider it broken
- setUnpremultiplyOnLoad(boolean) - Method in class org.ngengine.stbimage.PngDecoder
-
Enables/disables iPhone PNG unpremultiply by alpha.
- setUnpremultiplyOnLoad(boolean) - Method in class org.ngengine.stbimage.StbImage
-
Enables/disables unpremultiply for iPhone PNG alpha data.
- StbDecoder - Interface in org.ngengine.stbimage
-
Common decoder contract used by all image format implementations.
- StbFailureException - Exception Class in org.ngengine.stbimage
-
Exception thrown when image decoding fails.
- StbFailureException(String) - Constructor for exception class org.ngengine.stbimage.StbFailureException
-
Creates a decoder failure with an internal reason.
- StbFailureException(String, boolean) - Constructor for exception class org.ngengine.stbimage.StbFailureException
-
Creates a decoder failure.
- StbImage - Class in org.ngengine.stbimage
-
Pure Java implementation of stb_image.h
- StbImage() - Constructor for class org.ngengine.stbimage.StbImage
-
Creates an instance using heap allocation (
ByteBuffer.allocate(int)). - StbImage(IntFunction<ByteBuffer>) - Constructor for class org.ngengine.stbimage.StbImage
-
Creates an instance with a custom output buffer allocator.
- StbImage.StbDecoderInstancer - Interface in org.ngengine.stbimage
- StbImageInfo - Class in org.ngengine.stbimage
-
Information about an image without fully decoding it.
- StbImageInfo(int, int, int, boolean, StbImageInfo.ImageFormat) - Constructor for class org.ngengine.stbimage.StbImageInfo
-
Creates image metadata.
- StbImageInfo(int, int, int, boolean, StbImageInfo.ImageFormat, int) - Constructor for class org.ngengine.stbimage.StbImageInfo
-
Creates image metadata.
- StbImageInfo.ImageFormat - Enum Class in org.ngengine.stbimage
-
Supported image formats known by this decoder set.
- StbImageResult - Class in org.ngengine.stbimage
-
Result of an image decode operation.
- StbImageResult(ByteBuffer, int, int, int, int, boolean, boolean) - Constructor for class org.ngengine.stbimage.StbImageResult
-
Creates a decoded image payload container.
- StbImageResult(ByteBuffer, int, int, int, int, boolean, boolean, int) - Constructor for class org.ngengine.stbimage.StbImageResult
-
Creates a decoded image payload container.
- StbLimits - Class in org.ngengine.stbimage
-
Limits resource usage for every instance of every decoder.
- StbLimits() - Constructor for class org.ngengine.stbimage.StbLimits
- StbUtils - Class in org.ngengine.stbimage
- StbUtils() - Constructor for class org.ngengine.stbimage.StbUtils
T
- TGA - Enum constant in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
- TgaDecoder - Class in org.ngengine.stbimage
-
TGA decoder supporting uncompressed and RLE compressed, grayscale and color.
- TgaDecoder(ByteBuffer, IntFunction<ByteBuffer>, boolean) - Constructor for class org.ngengine.stbimage.TgaDecoder
-
Creates a TGA decoder instance.
- toString() - Method in class org.ngengine.stbimage.StbImageInfo
U
- UNKNOWN - Enum constant in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
- unregisterAllDecoders() - Method in class org.ngengine.stbimage.StbImage
-
Unregisters all decoders, leaving the instance with no supported formats.
- unregisterDecoder(String) - Method in class org.ngengine.stbimage.StbImage
-
Unregisters a decoder previously added with
StbImage.registerDecoder(String, StbDecoderInstancer, Predicate). - unregisterDecoder(StbImage.StbDecoderInstancer) - Method in class org.ngengine.stbimage.StbImage
-
Unregisters a decoder by its instancer reference.
V
- validateDimensions(int, int) - Static method in class org.ngengine.stbimage.StbLimits
-
Validates image dimensions against stb-style safety limits.
- valueOf(String) - Static method in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.ngengine.stbimage.StbImageInfo.ImageFormat
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verticalFlip(IntFunction<ByteBuffer>, ByteBuffer, int, int, int, boolean) - Static method in class org.ngengine.stbimage.StbUtils
-
Flips interleaved pixel data vertically.
- verticalFlip(IntFunction<ByteBuffer>, ByteBuffer, int, int, int, int) - Static method in class org.ngengine.stbimage.StbUtils
-
Flips interleaved pixel data vertically using explicit channel byte width.
All Classes and Interfaces|All Packages|Serialized Form