public class EXRImage
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
tiles – tiled pixel data. The application must reconstruct image from tiles manually. NULL if scanline format.images – image[channels][pixels]. NULL if tiled format.
struct EXRImage {
EXRTile * tiles;
unsigned char ** images;
int width;
int height;
int num_channels;
int num_tiles;
}| Modifier and Type | Class and Description |
|---|---|
static class |
EXRImage.Buffer
An array of
EXRImage structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
IMAGES
The struct member offsets.
|
static int |
NUM_CHANNELS
The struct member offsets.
|
static int |
NUM_TILES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TILES
The struct member offsets.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
EXRImage(java.nio.ByteBuffer container)
Creates a
EXRImage instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static EXRImage |
calloc()
Returns a new
EXRImage instance allocated with memCalloc. |
static EXRImage.Buffer |
calloc(int capacity)
Returns a new
EXRImage.Buffer instance allocated with memCalloc. |
static EXRImage |
callocStack()
Returns a new
EXRImage instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static EXRImage.Buffer |
callocStack(int capacity)
Returns a new
EXRImage.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static EXRImage.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
EXRImage.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static EXRImage |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
EXRImage instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static EXRImage |
create()
Returns a new
EXRImage instance allocated with BufferUtils. |
static EXRImage.Buffer |
create(int capacity)
Returns a new
EXRImage.Buffer instance allocated with BufferUtils. |
static EXRImage |
create(long address)
Returns a new
EXRImage instance for the specified memory address. |
static EXRImage.Buffer |
create(long address,
int capacity)
Create a
EXRImage.Buffer instance at the specified memory. |
static EXRImage |
createSafe(long address)
|
static EXRImage.Buffer |
createSafe(long address,
int capacity)
|
int |
height()
Returns the value of the
height field. |
EXRImage |
height(int value)
Sets the specified value to the
height field. |
org.lwjgl.PointerBuffer |
images()
Returns a
PointerBuffer view of the data pointed to by the images field. |
EXRImage |
images(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the images field. |
static EXRImage |
malloc()
Returns a new
EXRImage instance allocated with memAlloc. |
static EXRImage.Buffer |
malloc(int capacity)
Returns a new
EXRImage.Buffer instance allocated with memAlloc. |
static EXRImage |
mallocStack()
Returns a new
EXRImage instance allocated on the thread-local MemoryStack. |
static EXRImage.Buffer |
mallocStack(int capacity)
Returns a new
EXRImage.Buffer instance allocated on the thread-local MemoryStack. |
static EXRImage.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
EXRImage.Buffer instance allocated on the specified MemoryStack. |
static EXRImage |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
EXRImage instance allocated on the specified MemoryStack. |
static int |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
int value)
Unsafe version of
height. |
static org.lwjgl.PointerBuffer |
nimages(long struct)
Unsafe version of
images. |
static void |
nimages(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
images. |
static int |
nnum_channels(long struct)
Unsafe version of
num_channels(). |
static void |
nnum_channels(long struct,
int value)
Sets the specified value to the
num_channels field of the specified struct. |
static int |
nnum_tiles(long struct)
Unsafe version of
num_tiles(). |
static void |
nnum_tiles(long struct,
int value)
Sets the specified value to the
num_tiles field of the specified struct. |
static EXRTile.Buffer |
ntiles(long struct)
Unsafe version of
tiles(). |
static void |
ntiles(long struct,
EXRTile.Buffer value)
Unsafe version of
tiles. |
int |
num_channels()
Returns the value of the
num_channels field. |
EXRImage |
num_channels(int value)
Sets the specified value to the
num_channels field. |
int |
num_tiles()
Returns the value of the
num_tiles field. |
static int |
nwidth(long struct)
Unsafe version of
width(). |
static void |
nwidth(long struct,
int value)
Unsafe version of
width. |
EXRImage |
set(EXRImage src)
Copies the specified struct data to this struct.
|
EXRImage |
set(EXRTile.Buffer tiles,
org.lwjgl.PointerBuffer images,
int width,
int height,
int num_channels)
Initializes this struct with the specified values.
|
int |
sizeof() |
EXRTile.Buffer |
tiles()
Returns a
EXRTile.Buffer view of the struct array pointed to by the tiles field. |
EXRImage |
tiles(EXRTile.Buffer value)
Sets the address of the specified
EXRTile.Buffer to the tiles field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
int |
width()
Returns the value of the
width field. |
EXRImage |
width(int value)
Sets the specified value to the
width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TILES
public static final int IMAGES
public static final int WIDTH
public static final int HEIGHT
public static final int NUM_CHANNELS
public static final int NUM_TILES
public EXRImage(java.nio.ByteBuffer container)
EXRImage instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Struct@Nullable public EXRTile.Buffer tiles()
EXRTile.Buffer view of the struct array pointed to by the tiles field.@Nullable public org.lwjgl.PointerBuffer images()
PointerBuffer view of the data pointed to by the images field.public int width()
width field.public int height()
height field.public int num_channels()
num_channels field.public int num_tiles()
num_tiles field.public EXRImage tiles(@Nullable EXRTile.Buffer value)
EXRTile.Buffer to the tiles field.public EXRImage images(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the images field.public EXRImage width(int value)
width field.public EXRImage height(int value)
height field.public EXRImage num_channels(int value)
num_channels field.public EXRImage set(@Nullable EXRTile.Buffer tiles, @Nullable org.lwjgl.PointerBuffer images, int width, int height, int num_channels)
public EXRImage set(EXRImage src)
src - the source structpublic static EXRImage malloc()
EXRImage instance allocated with memAlloc. The instance must be explicitly freed.public static EXRImage calloc()
EXRImage instance allocated with memCalloc. The instance must be explicitly freed.public static EXRImage create()
EXRImage instance allocated with BufferUtils.public static EXRImage create(long address)
EXRImage instance for the specified memory address.@Nullable public static EXRImage createSafe(long address)
public static EXRImage.Buffer malloc(int capacity)
EXRImage.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static EXRImage.Buffer calloc(int capacity)
EXRImage.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static EXRImage.Buffer create(int capacity)
EXRImage.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static EXRImage.Buffer create(long address, int capacity)
EXRImage.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static EXRImage.Buffer createSafe(long address, int capacity)
public static EXRImage mallocStack()
EXRImage instance allocated on the thread-local MemoryStack.public static EXRImage callocStack()
EXRImage instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static EXRImage mallocStack(org.lwjgl.system.MemoryStack stack)
EXRImage instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static EXRImage callocStack(org.lwjgl.system.MemoryStack stack)
EXRImage instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static EXRImage.Buffer mallocStack(int capacity)
EXRImage.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static EXRImage.Buffer callocStack(int capacity)
EXRImage.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static EXRImage.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
EXRImage.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static EXRImage.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
EXRImage.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacity@Nullable public static EXRTile.Buffer ntiles(long struct)
tiles().@Nullable public static org.lwjgl.PointerBuffer nimages(long struct)
images.public static int nwidth(long struct)
width().public static int nheight(long struct)
height().public static int nnum_channels(long struct)
num_channels().public static int nnum_tiles(long struct)
num_tiles().public static void ntiles(long struct,
@Nullable
EXRTile.Buffer value)
tiles.public static void nimages(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
images.public static void nwidth(long struct,
int value)
width.public static void nheight(long struct,
int value)
height.public static void nnum_channels(long struct,
int value)
num_channels field of the specified struct.public static void nnum_tiles(long struct,
int value)
num_tiles field of the specified struct.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.