tinyexr is a small, single header-only library to load and save OpenEXR(.exr) images.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | TINYEXR_COMPRESSIONTYPE_NONE
Compression types. |
| public static final int | TINYEXR_COMPRESSIONTYPE_PIZ
Compression types. |
| public static final int | TINYEXR_COMPRESSIONTYPE_RLE
Compression types. |
| public static final int | TINYEXR_COMPRESSIONTYPE_ZFP
Compression types. |
| public static final int | TINYEXR_COMPRESSIONTYPE_ZIP
Compression types. |
| public static final int | TINYEXR_COMPRESSIONTYPE_ZIPS
Compression types. |
| public static final int | TINYEXR_ERROR_CANT_OPEN_FILE
Error codes. |
| public static final int | TINYEXR_ERROR_CANT_WRITE_FILE
Error codes. |
| public static final int | TINYEXR_ERROR_DATA_TOO_LARGE
Error codes. |
| public static final int | TINYEXR_ERROR_INVALID_ARGUMENT
Error codes. |
| public static final int | TINYEXR_ERROR_INVALID_DATA
Error codes. |
| public static final int | TINYEXR_ERROR_INVALID_EXR_VERSION
Error codes. |
| public static final int | TINYEXR_ERROR_INVALID_FILE
Error codes. |
| public static final int | TINYEXR_ERROR_INVALID_HEADER
Error codes. |
| public static final int | TINYEXR_ERROR_INVALID_MAGIC_NUMBER
Error codes. |
| public static final int | TINYEXR_ERROR_INVALID_PARAMETER
Error codes. |
| public static final int | TINYEXR_ERROR_LAYER_NOT_FOUND
Error codes. |
| public static final int | TINYEXR_ERROR_SERIALIZATION_FAILED
Error codes. |
| public static final int | TINYEXR_ERROR_UNSUPPORTED_FEATURE
Error codes. |
| public static final int | TINYEXR_ERROR_UNSUPPORTED_FORMAT
Error codes. |
| public static final int | |
| public static final int | |
| public static final int | TINYEXR_PIXELTYPE_FLOAT
Pixel types. |
| public static final int | TINYEXR_PIXELTYPE_HALF
Pixel types. |
| public static final int | TINYEXR_PIXELTYPE_UINT
Pixel types. |
| public static final int | TINYEXR_SUCCESS
Error codes. |
| public static final int | TINYEXR_TILE_MIPMAP_LEVELS
Tile level types. |
| public static final int | TINYEXR_TILE_ONE_LEVEL
Tile level types. |
| public static final int | TINYEXR_TILE_RIPMAP_LEVELS
Tile level types. |
| public static final int | TINYEXR_TILE_ROUND_DOWN
Tile rounding types. |
| public static final int | TINYEXR_TILE_ROUND_UP
Tile rounding types. |
| public static final int | TINYEXR_ZFP_COMPRESSIONTYPE_ACCURACY
ZFP compression types. |
| public static final int | TINYEXR_ZFP_COMPRESSIONTYPE_PRECISION
ZFP compression types. |
| public static final int | TINYEXR_ZFP_COMPRESSIONTYPE_RATE
ZFP compression types. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: SUCCESS upon success.list of layer names. Application must free memory after using this. layer_names, IntBuffer the number of layers num_layers, PointerBuffer Error string(will be filled when the function returns error code). Free it using FreeEXRErrorMessage after using this value. err)Get layer infos from EXR file. |
| public static int | Returns: SUCCESS upon success.list of layer names. Application must free memory after using this. layer_names, IntBuffer the number of layers num_layers, PointerBuffer Error string(will be filled when the function returns error code). Free it using FreeEXRErrorMessage after using this value. err)Get layer infos from EXR file. |
| public static int | EXRNumLevels(EXRImage exr_image)
Returns the number of resolution levels of the image (including the base). |
| public static void | EXRSetNameAttr(EXRHeader exr_header, ByteBuffer name)
Sets name attribute of |
| public static void | EXRSetNameAttr(EXRHeader exr_header, CharSequence name)
Sets name attribute of |
| public static void | |
| public static int | |
| public static int | |
| public static void | |
| public static void | |
| public static int | IsEXRFromMemory(ByteBuffer memory)
Checks if given data is a EXR image (by just looking up a header section). |
| public static int | Returns: negative value and may set error string inerr when there's an errorLoads single-frame OpenEXR deep image. |
| public static int | Returns: negative value and may set error string inerr when there's an errorLoads single-frame OpenEXR deep image. |
| public static int | Returns: negative value and may set error string inerr when there's an errorLoads single-part OpenEXR image from a file. |
| public static int | Returns: negative value and may set error string inerr when there's an errorLoads single-part OpenEXR image from a file. |
| public static int | Returns: negative value and may set error string inerr when there's an errorLoads single-part OpenEXR image from a memory. |
| public static int | Returns: negative value and may set error string inerr when there's an errorLoads multi-part OpenEXR image from a file. |
| public static int | Returns: negative value and may set error string inerr when there's an errorLoads multi-part OpenEXR image from a file. |
| public static int | Returns: negative value and may set error string inerr when there's an errorLoads multi-part OpenEXR image from a memory. |
| public static int | Returns: negative value and may set error string inerr when there's an error. When the specified layer name is not found in the EXR file, the function
will return ERROR_LAYER_NOT_FOUND.Loads single-frame OpenEXR image by specifying layer name. |
| public static int | Returns: negative value and may set error string inerr when there's an error. When the specified layer name is not found in the EXR file, the function
will return ERROR_LAYER_NOT_FOUND.Loads single-frame OpenEXR image by specifying layer name. |
| public static native int | |
| public static native int | |
| public static native void | |
| public static native void | |
| public static native int | |
| public static native int | |
| public static native void | |
| public static native void | |
| public static native int | |
| public static native int | |
| public static native int | nLoadEXRImageFromFile(long image, long header, long filename, long err)
Unsafe version of: |
| public static native int | nLoadEXRImageFromMemory(long image, long header, long memory, long size, long err)
Unsafe version of: |
| public static native int | nLoadEXRMultipartImageFromFile(long images, long headers, int num_parts, long filename, long err)
Unsafe version of: |
| public static native int | nLoadEXRMultipartImageFromMemory(long images, long headers, int num_parts, long memory, long size, long err)
Unsafe version of: |
| public static native int | nLoadEXRWithLayer(long out_rgba, long width, long height, long filename, long layer_name, long err)
Unsafe version of: |
| public static native int | nParseEXRHeaderFromFile(long header, long version, long filename, long err)
Unsafe version of: |
| public static native int | nParseEXRHeaderFromMemory(long header, long version, long memory, long size, long err)
Unsafe version of: |
| public static native int | nParseEXRMultipartHeaderFromFile(long headers, long num_headers, long version, long filename, long err)
Unsafe version of: |
| public static native int | nParseEXRMultipartHeaderFromMemory(long headers, long num_headers, long version, long memory, long size, long err)
Unsafe version of: |
| public static native int | |
| public static native int | nParseEXRVersionFromMemory(long version, long memory, long size)
Unsafe version of: |
| public static native int | nSaveEXRImageToFile(long image, long exr_header, long filename, long err)
Unsafe version of: |
| public static native long | nSaveEXRImageToMemory(long image, long exr_header, long memory, long err)
Unsafe version of: |
| public static native int | nSaveEXRMultipartImageToFile(long images, long exr_headers, int num_parts, long filename, long err)
Unsafe version of: |
| public static native long | nSaveEXRMultipartImageToMemory(long images, long exr_headers, int num_parts, long memory, long err)
Unsafe version of: |
| public static int | ParseEXRHeaderFromFile(EXRHeader header, EXRVersion version, ByteBuffer filename, PointerBuffer err)
Parse single-part OpenEXR header from a file and initialize |
| public static int | ParseEXRHeaderFromFile(EXRHeader header, EXRVersion version, CharSequence filename, PointerBuffer err)
Parse single-part OpenEXR header from a file and initialize |
| public static int | ParseEXRHeaderFromMemory(EXRHeader header, EXRVersion version, ByteBuffer memory, PointerBuffer err)
Parse single-part OpenEXR header from a memory and initialize |
| public static int | ParseEXRMultipartHeaderFromFile(PointerBuffer headers, IntBuffer num_headers, EXRVersion version, ByteBuffer filename, PointerBuffer err)
Parse multi-part OpenEXR headers from a file and initialize |
| public static int | ParseEXRMultipartHeaderFromFile(PointerBuffer headers, IntBuffer num_headers, EXRVersion version, CharSequence filename, PointerBuffer err)
Parse multi-part OpenEXR headers from a file and initialize |
| public static int | ParseEXRMultipartHeaderFromMemory(PointerBuffer headers, IntBuffer num_headers, EXRVersion version, ByteBuffer memory, PointerBuffer err)
Parse multi-part OpenEXR headers from a memory and initialize |
| public static int | |
| public static int | ParseEXRVersionFromFile(EXRVersion version, CharSequence filename)
Parse EXR version header of a file. |
| public static int | ParseEXRVersionFromMemory(EXRVersion version, ByteBuffer memory)
Parse EXR version header from memory-mapped EXR data. |
| public static int | Returns: negative value and may set error string inerr when there's an errorSaves multi-channel, single-frame OpenEXR image to a file. |
| public static int | Returns: negative value and may set error string inerr when there's an errorSaves multi-channel, single-frame OpenEXR image to a file. |
| public static long | Returns: the number of bytes if success or zero and may set error string inerr when there's an errorSaves multi-channel, single-frame OpenEXR image to a memory. |
| public static int | Returns: negative value and may set error string inerr when there's an error.
When there was an error message, Application must free Saves multi-channel, multi-frame OpenEXR image to a file. |
| public static int | Returns: negative value and may set error string inerr when there's an error.
When there was an error message, Application must free Saves multi-channel, multi-frame OpenEXR image to a file. |
| public static long | Returns: the number of bytes if success. Return zero and will set error string inerr when there's an error.
When there was an error message, Application must free Saves multi-channel, multi-frame OpenEXR image to a memory. |