Class ExrTileWrite
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrTileWrite {
ExrWriteImage image;
int32_t tile_x;
int32_t tile_y;
int32_t level_x;
int32_t level_y;
ExrBuffer input;
uint32_t input_layout;
uint32_t input_pixel_type;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionExrTileWrite(ByteBuffer container) Creates aExrTileWriteinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrTileWritecalloc()Returns a newExrTileWriteinstance allocated withmemCalloc.static ExrTileWrite.Buffercalloc(int capacity) Returns a newExrTileWrite.Bufferinstance allocated withmemCalloc.static ExrTileWrite.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrTileWrite.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrTileWritecalloc(MemoryStack stack) Returns a newExrTileWriteinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrTileWritecreate()Returns a newExrTileWriteinstance allocated withBufferUtils.static ExrTileWrite.Buffercreate(int capacity) Returns a newExrTileWrite.Bufferinstance allocated withBufferUtils.static ExrTileWritecreate(long address) Returns a newExrTileWriteinstance for the specified memory address.static ExrTileWrite.Buffercreate(long address, int capacity) Create aExrTileWrite.Bufferinstance at the specified memory.static @Nullable ExrTileWritecreateSafe(long address) static @Nullable ExrTileWrite.BuffercreateSafe(long address, int capacity) longimage()image(long value) Sets the specified value to theimagefield.input()Passes theinputfield to the specifiedConsumer.Copies the specifiedExrBufferto theinputfield.intinput_layout(int value) Sets the specified value to theinput_layoutfield.intinput_pixel_type(int value) Sets the specified value to theinput_pixel_typefield.intlevel_x()level_x(int value) Sets the specified value to thelevel_xfield.intlevel_y()level_y(int value) Sets the specified value to thelevel_yfield.static ExrTileWritemalloc()Returns a newExrTileWriteinstance allocated withmemAlloc.static ExrTileWrite.Buffermalloc(int capacity) Returns a newExrTileWrite.Bufferinstance allocated withmemAlloc.static ExrTileWrite.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrTileWrite.Bufferinstance allocated on the specifiedMemoryStack.static ExrTileWritemalloc(MemoryStack stack) Returns a newExrTileWriteinstance allocated on the specifiedMemoryStack.static longnimage(long struct) Unsafe version ofimage().static voidnimage(long struct, long value) Unsafe version ofimage.static ExrBufferninput(long struct) Unsafe version ofinput().static voidUnsafe version ofinput.static intninput_layout(long struct) Unsafe version ofinput_layout().static voidninput_layout(long struct, int value) Unsafe version ofinput_layout.static intninput_pixel_type(long struct) Unsafe version ofinput_pixel_type().static voidninput_pixel_type(long struct, int value) Unsafe version ofinput_pixel_type.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 intntile_x(long struct) Unsafe version oftile_x().static voidntile_x(long struct, int value) Unsafe version oftile_x.static intntile_y(long struct) Unsafe version oftile_y().static voidntile_y(long struct, int value) Unsafe version oftile_y.set(long image, int tile_x, int tile_y, int level_x, int level_y, ExrBuffer input, int input_layout, int input_pixel_type) Initializes this struct with the specified values.set(ExrTileWrite src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttile_x()tile_x(int value) Sets the specified value to thetile_xfield.inttile_y()tile_y(int value) Sets the specified value to thetile_yfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
IMAGE
public static final int IMAGEThe struct member offsets. -
TILE_X
public static final int TILE_XThe struct member offsets. -
TILE_Y
public static final int TILE_YThe struct member offsets. -
LEVEL_X
public static final int LEVEL_XThe struct member offsets. -
LEVEL_Y
public static final int LEVEL_YThe struct member offsets. -
INPUT
public static final int INPUTThe struct member offsets. -
INPUT_LAYOUT
public static final int INPUT_LAYOUTThe struct member offsets. -
INPUT_PIXEL_TYPE
public static final int INPUT_PIXEL_TYPEThe struct member offsets.
-
-
Constructor Details
-
ExrTileWrite
Creates aExrTileWriteinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<ExrTileWrite>
-
image
- Returns:
- the value of the
imagefield.
-
tile_x
- Returns:
- the value of the
tile_xfield.
-
tile_y
- Returns:
- the value of the
tile_yfield.
-
level_x
- Returns:
- the value of the
level_xfield.
-
level_y
- Returns:
- the value of the
level_yfield.
-
input
-
input_layout
- Returns:
- the value of the
input_layoutfield.
-
input_pixel_type
- Returns:
- the value of the
input_pixel_typefield.
-
image
Sets the specified value to theimagefield. -
tile_x
Sets the specified value to thetile_xfield. -
tile_y
Sets the specified value to thetile_yfield. -
level_x
Sets the specified value to thelevel_xfield. -
level_y
Sets the specified value to thelevel_yfield. -
input
Copies the specifiedExrBufferto theinputfield. -
input
Passes theinputfield to the specifiedConsumer. -
input_layout
Sets the specified value to theinput_layoutfield. -
input_pixel_type
Sets the specified value to theinput_pixel_typefield. -
set
public ExrTileWrite set(long image, int tile_x, int tile_y, int level_x, int level_y, ExrBuffer input, int input_layout, int input_pixel_type) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newExrTileWriteinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrTileWriteinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrTileWriteinstance allocated withBufferUtils. -
create
Returns a newExrTileWriteinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrTileWrite.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrTileWrite.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrTileWrite.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrTileWrite.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrTileWriteinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrTileWriteinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrTileWrite.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrTileWrite.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nimage
public static long nimage(long struct) Unsafe version ofimage(). -
ntile_x
public static int ntile_x(long struct) Unsafe version oftile_x(). -
ntile_y
public static int ntile_y(long struct) Unsafe version oftile_y(). -
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(). -
ninput
-
ninput_layout
public static int ninput_layout(long struct) Unsafe version ofinput_layout(). -
ninput_pixel_type
public static int ninput_pixel_type(long struct) Unsafe version ofinput_pixel_type(). -
nimage
public static void nimage(long struct, long value) Unsafe version ofimage. -
ntile_x
public static void ntile_x(long struct, int value) Unsafe version oftile_x. -
ntile_y
public static void ntile_y(long struct, int value) Unsafe version oftile_y. -
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. -
ninput
-
ninput_layout
public static void ninput_layout(long struct, int value) Unsafe version ofinput_layout. -
ninput_pixel_type
public static void ninput_pixel_type(long struct, int value) Unsafe version ofinput_pixel_type. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-