Class ExrTileRequest
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrTileRequest {
ExrPart part;
int32_t tile_x;
int32_t tile_y;
int32_t level_x;
int32_t level_y;
ExrBuffer output;
uint32_t channels_mask;
uint32_t output_pixel_type;
uint32_t output_layout;
}-
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 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
ConstructorsConstructorDescriptionExrTileRequest(ByteBuffer container) Creates aExrTileRequestinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrTileRequestcalloc()Returns a newExrTileRequestinstance allocated withmemCalloc.static ExrTileRequest.Buffercalloc(int capacity) Returns a newExrTileRequest.Bufferinstance allocated withmemCalloc.static ExrTileRequest.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrTileRequest.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrTileRequestcalloc(MemoryStack stack) Returns a newExrTileRequestinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchannels_mask(int value) Sets the specified value to thechannels_maskfield.static ExrTileRequestcreate()Returns a newExrTileRequestinstance allocated withBufferUtils.static ExrTileRequest.Buffercreate(int capacity) Returns a newExrTileRequest.Bufferinstance allocated withBufferUtils.static ExrTileRequestcreate(long address) Returns a newExrTileRequestinstance for the specified memory address.static ExrTileRequest.Buffercreate(long address, int capacity) Create aExrTileRequest.Bufferinstance at the specified memory.static @Nullable ExrTileRequestcreateSafe(long address) static @Nullable ExrTileRequest.BuffercreateSafe(long address, int capacity) 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 ExrTileRequestmalloc()Returns a newExrTileRequestinstance allocated withmemAlloc.static ExrTileRequest.Buffermalloc(int capacity) Returns a newExrTileRequest.Bufferinstance allocated withmemAlloc.static ExrTileRequest.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrTileRequest.Bufferinstance allocated on the specifiedMemoryStack.static ExrTileRequestmalloc(MemoryStack stack) Returns a newExrTileRequestinstance allocated on the specifiedMemoryStack.static intnchannels_mask(long struct) Unsafe version ofchannels_mask().static voidnchannels_mask(long struct, int value) Unsafe version ofchannels_mask.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 ExrBuffernoutput(long struct) Unsafe version ofoutput().static voidUnsafe version ofoutput.static intnoutput_layout(long struct) Unsafe version ofoutput_layout().static voidnoutput_layout(long struct, int value) Unsafe version ofoutput_layout.static intnoutput_pixel_type(long struct) Unsafe version ofoutput_pixel_type().static voidnoutput_pixel_type(long struct, int value) Unsafe version ofoutput_pixel_type.static longnpart(long struct) Unsafe version ofpart().static voidnpart(long struct, long value) Unsafe version ofpart.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.output()Passes theoutputfield to the specifiedConsumer.Copies the specifiedExrBufferto theoutputfield.intoutput_layout(int value) Sets the specified value to theoutput_layoutfield.intoutput_pixel_type(int value) Sets the specified value to theoutput_pixel_typefield.longpart()part(long value) Sets the specified value to thepartfield.set(long part, int tile_x, int tile_y, int level_x, int level_y, ExrBuffer output, int channels_mask, int output_pixel_type, int output_layout) Initializes this struct with the specified values.set(ExrTileRequest 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. -
PART
public static final int PARTThe 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. -
OUTPUT
public static final int OUTPUTThe struct member offsets. -
CHANNELS_MASK
public static final int CHANNELS_MASKThe struct member offsets. -
OUTPUT_PIXEL_TYPE
public static final int OUTPUT_PIXEL_TYPEThe struct member offsets. -
OUTPUT_LAYOUT
public static final int OUTPUT_LAYOUTThe struct member offsets.
-
-
Constructor Details
-
ExrTileRequest
Creates aExrTileRequestinstance 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<ExrTileRequest>
-
part
- Returns:
- the value of the
partfield.
-
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.
-
output
-
channels_mask
- Returns:
- the value of the
channels_maskfield.
-
output_pixel_type
- Returns:
- the value of the
output_pixel_typefield.
-
output_layout
- Returns:
- the value of the
output_layoutfield.
-
part
Sets the specified value to thepartfield. -
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. -
output
Copies the specifiedExrBufferto theoutputfield. -
output
Passes theoutputfield to the specifiedConsumer. -
channels_mask
Sets the specified value to thechannels_maskfield. -
output_pixel_type
Sets the specified value to theoutput_pixel_typefield. -
output_layout
Sets the specified value to theoutput_layoutfield. -
set
public ExrTileRequest set(long part, int tile_x, int tile_y, int level_x, int level_y, ExrBuffer output, int channels_mask, int output_pixel_type, int output_layout) 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 newExrTileRequestinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrTileRequestinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrTileRequestinstance allocated withBufferUtils. -
create
Returns a newExrTileRequestinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrTileRequest.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrTileRequest.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrTileRequest.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrTileRequest.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrTileRequestinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrTileRequestinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrTileRequest.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrTileRequest.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
npart
public static long npart(long struct) Unsafe version ofpart(). -
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(). -
noutput
-
nchannels_mask
public static int nchannels_mask(long struct) Unsafe version ofchannels_mask(). -
noutput_pixel_type
public static int noutput_pixel_type(long struct) Unsafe version ofoutput_pixel_type(). -
noutput_layout
public static int noutput_layout(long struct) Unsafe version ofoutput_layout(). -
npart
public static void npart(long struct, long value) Unsafe version ofpart. -
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. -
noutput
-
nchannels_mask
public static void nchannels_mask(long struct, int value) Unsafe version ofchannels_mask. -
noutput_pixel_type
public static void noutput_pixel_type(long struct, int value) Unsafe version ofoutput_pixel_type. -
noutput_layout
public static void noutput_layout(long struct, int value) Unsafe version ofoutput_layout. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-