Package org.lwjgl.util.tinyexr
Class EXRImage
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.tinyexr.EXRImage
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class EXRImage extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct EXRImage {EXRTile*tiles();struct _EXRImage*next_level(); intlevel_x(); intlevel_y(); unsigned char **images(); int width; int height; int num_channels; int num_tiles; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEXRImage.BufferAn array ofEXRImagestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intHEIGHT
IMAGES
LEVEL_X
LEVEL_Y
NEXT_LEVEL
NUM_CHANNELS
NUM_TILESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTILES
WIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description EXRImage(java.nio.ByteBuffer container)Creates aEXRImageinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EXRImagecalloc()Returns a newEXRImageinstance allocated withmemCalloc.static EXRImage.Buffercalloc(int capacity)Returns a newEXRImage.Bufferinstance allocated withmemCalloc.static EXRImage.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newEXRImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRImagecalloc(org.lwjgl.system.MemoryStack stack)Returns a newEXRImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRImagecallocStack()Deprecated.static EXRImage.BuffercallocStack(int capacity)Deprecated.static EXRImage.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static EXRImagecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static EXRImagecreate()Returns a newEXRImageinstance allocated withBufferUtils.static EXRImage.Buffercreate(int capacity)Returns a newEXRImage.Bufferinstance allocated withBufferUtils.static EXRImagecreate(long address)Returns a newEXRImageinstance for the specified memory address.static EXRImage.Buffercreate(long address, int capacity)Create aEXRImage.Bufferinstance at the specified memory.static EXRImagecreateSafe(long address)static EXRImage.BuffercreateSafe(long address, int capacity)intheight()EXRImageheight(int value)Sets the specified value to theheightfield.org.lwjgl.PointerBufferimages()image[channels][pixels].EXRImageimages(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto theimages()field.intlevel_x()x level indexEXRImagelevel_x(int value)Sets the specified value to thelevel_x()field.intlevel_y()y level indexEXRImagelevel_y(int value)Sets the specified value to thelevel_y()field.static EXRImagemalloc()Returns a newEXRImageinstance allocated withmemAlloc.static EXRImage.Buffermalloc(int capacity)Returns a newEXRImage.Bufferinstance allocated withmemAlloc.static EXRImage.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newEXRImage.Bufferinstance allocated on the specifiedMemoryStack.static EXRImagemalloc(org.lwjgl.system.MemoryStack stack)Returns a newEXRImageinstance allocated on the specifiedMemoryStack.static EXRImagemallocStack()Deprecated.static EXRImage.BuffermallocStack(int capacity)Deprecated.static EXRImage.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static EXRImagemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.EXRImagenext_level()NULLif scanline format or image is the last level.EXRImagenext_level(EXRImage value)Sets the address of the specifiedEXRImageto thenext_level()field.static intnheight(long struct)Unsafe version ofheight().static voidnheight(long struct, int value)Unsafe version ofheight.static org.lwjgl.PointerBuffernimages(long struct)Unsafe version ofimages.static voidnimages(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofimages.static intnlevel_x(long struct)Unsafe version oflevel_x().static voidnlevel_x(long struct, int value)Unsafe version oflevel_x.static intnlevel_y(long struct)Unsafe version oflevel_y().static voidnlevel_y(long struct, int value)Unsafe version oflevel_y.static EXRImagennext_level(long struct)Unsafe version ofnext_level().static voidnnext_level(long struct, EXRImage value)Unsafe version ofnext_level.static intnnum_channels(long struct)Unsafe version ofnum_channels().static voidnnum_channels(long struct, int value)Sets the specified value to thenum_channelsfield of the specifiedstruct.static intnnum_tiles(long struct)Unsafe version ofnum_tiles().static voidnnum_tiles(long struct, int value)Sets the specified value to thenum_tilesfield of the specifiedstruct.static EXRTile.Bufferntiles(long struct)Unsafe version oftiles().static voidntiles(long struct, EXRTile.Buffer value)Unsafe version oftiles.intnum_channels()EXRImagenum_channels(int value)Sets the specified value to thenum_channelsfield.intnum_tiles()static intnwidth(long struct)Unsafe version ofwidth().static voidnwidth(long struct, int value)Unsafe version ofwidth.EXRImageset(EXRImage src)Copies the specified struct data to this struct.EXRImageset(EXRTile.Buffer tiles, EXRImage next_level, int level_x, int level_y, org.lwjgl.PointerBuffer images, int width, int height, int num_channels)Initializes this struct with the specified values.intsizeof()EXRTile.Buffertiles()tiled pixel data.EXRImagetiles(EXRTile.Buffer value)Sets the address of the specifiedEXRTile.Bufferto thetiles()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.intwidth()EXRImagewidth(int value)Sets the specified value to thewidthfield.
-
-
-
Constructor Detail
-
EXRImage
public EXRImage(java.nio.ByteBuffer container)
Creates aEXRImageinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
tiles
@Nullable public EXRTile.Buffer tiles()
tiled pixel data. The application must reconstruct image from tiles manually.NULLif scanline format.
-
next_level
@Nullable public EXRImage next_level()
NULLif scanline format or image is the last level.
-
level_x
public int level_x()
x level index
-
level_y
public int level_y()
y level index
-
images
@Nullable public org.lwjgl.PointerBuffer images()
image[channels][pixels].NULLif tiled format.
-
width
public int width()
- Returns:
- the value of the
widthfield.
-
height
public int height()
- Returns:
- the value of the
heightfield.
-
num_channels
public int num_channels()
- Returns:
- the value of the
num_channelsfield.
-
num_tiles
public int num_tiles()
- Returns:
- the value of the
num_tilesfield.
-
tiles
public EXRImage tiles(@Nullable EXRTile.Buffer value)
Sets the address of the specifiedEXRTile.Bufferto thetiles()field.
-
next_level
public EXRImage next_level(@Nullable EXRImage value)
Sets the address of the specifiedEXRImageto thenext_level()field.
-
images
public EXRImage images(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto theimages()field.
-
width
public EXRImage width(int value)
Sets the specified value to thewidthfield.
-
height
public EXRImage height(int value)
Sets the specified value to theheightfield.
-
num_channels
public EXRImage num_channels(int value)
Sets the specified value to thenum_channelsfield.
-
set
public EXRImage set(@Nullable EXRTile.Buffer tiles, @Nullable EXRImage next_level, int level_x, int level_y, @Nullable org.lwjgl.PointerBuffer images, int width, int height, int num_channels)
Initializes this struct with the specified values.
-
set
public EXRImage set(EXRImage src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static EXRImage malloc()
Returns a newEXRImageinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static EXRImage calloc()
Returns a newEXRImageinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static EXRImage create()
Returns a newEXRImageinstance allocated withBufferUtils.
-
create
public static EXRImage create(long address)
Returns a newEXRImageinstance for the specified memory address.
-
createSafe
@Nullable public static EXRImage createSafe(long address)
-
malloc
public static EXRImage.Buffer malloc(int capacity)
Returns a newEXRImage.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static EXRImage.Buffer calloc(int capacity)
Returns a newEXRImage.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static EXRImage.Buffer create(int capacity)
Returns a newEXRImage.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static EXRImage.Buffer create(long address, int capacity)
Create aEXRImage.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static EXRImage.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static EXRImage mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static EXRImage callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRImage mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static EXRImage callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRImage.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static EXRImage.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRImage.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static EXRImage.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static EXRImage malloc(org.lwjgl.system.MemoryStack stack)
Returns a newEXRImageinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static EXRImage calloc(org.lwjgl.system.MemoryStack stack)
Returns a newEXRImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static EXRImage.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRImage.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static EXRImage.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntiles
@Nullable public static EXRTile.Buffer ntiles(long struct)
Unsafe version oftiles().
-
nnext_level
@Nullable public static EXRImage nnext_level(long struct)
Unsafe version ofnext_level().
-
nlevel_x
public static int nlevel_x(long struct)
Unsafe version oflevel_x().
-
nlevel_y
public static int nlevel_y(long struct)
Unsafe version oflevel_y().
-
nimages
@Nullable public static org.lwjgl.PointerBuffer nimages(long struct)
Unsafe version ofimages.
-
nwidth
public static int nwidth(long struct)
Unsafe version ofwidth().
-
nheight
public static int nheight(long struct)
Unsafe version ofheight().
-
nnum_channels
public static int nnum_channels(long struct)
Unsafe version ofnum_channels().
-
nnum_tiles
public static int nnum_tiles(long struct)
Unsafe version ofnum_tiles().
-
ntiles
public static void ntiles(long struct, @Nullable EXRTile.Buffer value)Unsafe version oftiles.
-
nnext_level
public static void nnext_level(long struct, @Nullable EXRImage value)Unsafe version ofnext_level.
-
nlevel_x
public static void nlevel_x(long struct, int value)Unsafe version oflevel_x.
-
nlevel_y
public static void nlevel_y(long struct, int value)Unsafe version oflevel_y.
-
nimages
public static void nimages(long struct, @Nullable org.lwjgl.PointerBuffer value)Unsafe version ofimages.
-
nwidth
public static void nwidth(long struct, int value)Unsafe version ofwidth.
-
nheight
public static void nheight(long struct, int value)Unsafe version ofheight.
-
nnum_channels
public static void nnum_channels(long struct, int value)Sets the specified value to thenum_channelsfield of the specifiedstruct.
-
nnum_tiles
public static void nnum_tiles(long struct, int value)Sets the specified value to thenum_tilesfield of the specifiedstruct.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-