public class DeepImage
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
image – image[channels][scanlines][samples]offset_table – offset_table[scanline][offsets]
struct DeepImage {
char const ** channel_names;
float *** image;
int ** offset_table;
int num_channels;
int width;
int height;
char[4];
}| Modifier and Type | Class and Description |
|---|---|
static class |
DeepImage.Buffer
An array of
DeepImage structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CHANNEL_NAMES
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
IMAGE
The struct member offsets.
|
static int |
NUM_CHANNELS
The struct member offsets.
|
static int |
OFFSET_TABLE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
DeepImage(java.nio.ByteBuffer container)
Creates a
DeepImage instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static DeepImage |
calloc()
Returns a new
DeepImage instance allocated with memCalloc. |
static DeepImage.Buffer |
calloc(int capacity)
Returns a new
DeepImage.Buffer instance allocated with memCalloc. |
static DeepImage |
callocStack()
Returns a new
DeepImage instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static DeepImage.Buffer |
callocStack(int capacity)
Returns a new
DeepImage.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static DeepImage.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
DeepImage.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static DeepImage |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
DeepImage instance allocated on the specified MemoryStack and initializes all its bits to zero. |
org.lwjgl.PointerBuffer |
channel_names()
Returns a
PointerBuffer view of the data pointed to by the channel_names field. |
DeepImage |
channel_names(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the channel_names field. |
static DeepImage |
create()
Returns a new
DeepImage instance allocated with BufferUtils. |
static DeepImage.Buffer |
create(int capacity)
Returns a new
DeepImage.Buffer instance allocated with BufferUtils. |
static DeepImage |
create(long address)
Returns a new
DeepImage instance for the specified memory address. |
static DeepImage.Buffer |
create(long address,
int capacity)
Create a
DeepImage.Buffer instance at the specified memory. |
static DeepImage |
createSafe(long address)
|
static DeepImage.Buffer |
createSafe(long address,
int capacity)
|
int |
height()
Returns the value of the
height field. |
DeepImage |
height(int value)
Sets the specified value to the
height field. |
org.lwjgl.PointerBuffer |
image()
Returns a
PointerBuffer view of the data pointed to by the image field. |
DeepImage |
image(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the image field. |
static DeepImage |
malloc()
Returns a new
DeepImage instance allocated with memAlloc. |
static DeepImage.Buffer |
malloc(int capacity)
Returns a new
DeepImage.Buffer instance allocated with memAlloc. |
static DeepImage |
mallocStack()
Returns a new
DeepImage instance allocated on the thread-local MemoryStack. |
static DeepImage.Buffer |
mallocStack(int capacity)
Returns a new
DeepImage.Buffer instance allocated on the thread-local MemoryStack. |
static DeepImage.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
DeepImage.Buffer instance allocated on the specified MemoryStack. |
static DeepImage |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
DeepImage instance allocated on the specified MemoryStack. |
static org.lwjgl.PointerBuffer |
nchannel_names(long struct)
Unsafe version of
channel_names. |
static void |
nchannel_names(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
channel_names. |
static int |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
int value)
Unsafe version of
height. |
static org.lwjgl.PointerBuffer |
nimage(long struct)
Unsafe version of
image. |
static void |
nimage(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
image. |
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 org.lwjgl.PointerBuffer |
noffset_table(long struct,
int capacity)
Unsafe version of
offset_table. |
static void |
noffset_table(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
offset_table. |
int |
num_channels()
Returns the value of the
num_channels field. |
DeepImage |
num_channels(int value)
Sets the specified value to the
num_channels field. |
static int |
nwidth(long struct)
Unsafe version of
width(). |
static void |
nwidth(long struct,
int value)
Unsafe version of
width. |
org.lwjgl.PointerBuffer |
offset_table(int capacity)
Returns a
PointerBuffer view of the data pointed to by the offset_table field. |
DeepImage |
offset_table(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the offset_table field. |
DeepImage |
set(DeepImage src)
Copies the specified struct data to this struct.
|
DeepImage |
set(org.lwjgl.PointerBuffer channel_names,
org.lwjgl.PointerBuffer image,
org.lwjgl.PointerBuffer offset_table,
int num_channels,
int width,
int height)
Initializes this struct with the specified values.
|
int |
sizeof() |
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. |
DeepImage |
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 CHANNEL_NAMES
public static final int IMAGE
public static final int OFFSET_TABLE
public static final int NUM_CHANNELS
public static final int WIDTH
public static final int HEIGHT
public DeepImage(java.nio.ByteBuffer container)
DeepImage 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.Structpublic org.lwjgl.PointerBuffer channel_names()
PointerBuffer view of the data pointed to by the channel_names field.public org.lwjgl.PointerBuffer image()
PointerBuffer view of the data pointed to by the image field.public org.lwjgl.PointerBuffer offset_table(int capacity)
PointerBuffer view of the data pointed to by the offset_table field.capacity - the number of elements in the returned bufferpublic int num_channels()
num_channels field.public int width()
width field.public int height()
height field.public DeepImage channel_names(org.lwjgl.PointerBuffer value)
PointerBuffer to the channel_names field.public DeepImage image(org.lwjgl.PointerBuffer value)
PointerBuffer to the image field.public DeepImage offset_table(org.lwjgl.PointerBuffer value)
PointerBuffer to the offset_table field.public DeepImage num_channels(int value)
num_channels field.public DeepImage width(int value)
width field.public DeepImage height(int value)
height field.public DeepImage set(org.lwjgl.PointerBuffer channel_names, org.lwjgl.PointerBuffer image, org.lwjgl.PointerBuffer offset_table, int num_channels, int width, int height)
public DeepImage set(DeepImage src)
src - the source structpublic static DeepImage malloc()
DeepImage instance allocated with memAlloc. The instance must be explicitly freed.public static DeepImage calloc()
DeepImage instance allocated with memCalloc. The instance must be explicitly freed.public static DeepImage create()
DeepImage instance allocated with BufferUtils.public static DeepImage create(long address)
DeepImage instance for the specified memory address.@Nullable public static DeepImage createSafe(long address)
public static DeepImage.Buffer malloc(int capacity)
DeepImage.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static DeepImage.Buffer calloc(int capacity)
DeepImage.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static DeepImage.Buffer create(int capacity)
DeepImage.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static DeepImage.Buffer create(long address, int capacity)
DeepImage.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static DeepImage.Buffer createSafe(long address, int capacity)
public static DeepImage mallocStack()
DeepImage instance allocated on the thread-local MemoryStack.public static DeepImage callocStack()
DeepImage instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static DeepImage mallocStack(org.lwjgl.system.MemoryStack stack)
DeepImage instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static DeepImage callocStack(org.lwjgl.system.MemoryStack stack)
DeepImage instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static DeepImage.Buffer mallocStack(int capacity)
DeepImage.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static DeepImage.Buffer callocStack(int capacity)
DeepImage.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static DeepImage.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
DeepImage.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static DeepImage.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
DeepImage.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static org.lwjgl.PointerBuffer nchannel_names(long struct)
channel_names.public static org.lwjgl.PointerBuffer nimage(long struct)
image.public static org.lwjgl.PointerBuffer noffset_table(long struct,
int capacity)
offset_table.public static int nnum_channels(long struct)
num_channels().public static int nwidth(long struct)
width().public static int nheight(long struct)
height().public static void nchannel_names(long struct,
org.lwjgl.PointerBuffer value)
channel_names.public static void nimage(long struct,
org.lwjgl.PointerBuffer value)
image.public static void noffset_table(long struct,
org.lwjgl.PointerBuffer value)
offset_table.public static void nnum_channels(long struct,
int value)
num_channels field of the specified struct.public static void nwidth(long struct,
int value)
width.public static void nheight(long struct,
int value)
height.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.