Class ExrDeepTileWrite
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrDeepTileWrite {
ExrWriteImage image;
int32_t tile_x;
int32_t tile_y;
int32_t level_x;
int32_t level_y;
int32_t width;
int32_t height;
uint32_t const * sample_counts;
uint64_t total_samples;
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 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.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
ConstructorsConstructorDescriptionExrDeepTileWrite(ByteBuffer container) Creates aExrDeepTileWriteinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrDeepTileWritecalloc()Returns a newExrDeepTileWriteinstance allocated withmemCalloc.static ExrDeepTileWrite.Buffercalloc(int capacity) Returns a newExrDeepTileWrite.Bufferinstance allocated withmemCalloc.static ExrDeepTileWrite.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrDeepTileWrite.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrDeepTileWritecalloc(MemoryStack stack) Returns a newExrDeepTileWriteinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrDeepTileWritecreate()Returns a newExrDeepTileWriteinstance allocated withBufferUtils.static ExrDeepTileWrite.Buffercreate(int capacity) Returns a newExrDeepTileWrite.Bufferinstance allocated withBufferUtils.static ExrDeepTileWritecreate(long address) Returns a newExrDeepTileWriteinstance for the specified memory address.static ExrDeepTileWrite.Buffercreate(long address, int capacity) Create aExrDeepTileWrite.Bufferinstance at the specified memory.static @Nullable ExrDeepTileWritecreateSafe(long address) static @Nullable ExrDeepTileWrite.BuffercreateSafe(long address, int capacity) intheight()height(int value) Sets the specified value to theheightfield.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 ExrDeepTileWritemalloc()Returns a newExrDeepTileWriteinstance allocated withmemAlloc.static ExrDeepTileWrite.Buffermalloc(int capacity) Returns a newExrDeepTileWrite.Bufferinstance allocated withmemAlloc.static ExrDeepTileWrite.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrDeepTileWrite.Bufferinstance allocated on the specifiedMemoryStack.static ExrDeepTileWritemalloc(MemoryStack stack) Returns a newExrDeepTileWriteinstance allocated on the specifiedMemoryStack.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.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 IntBuffernsample_counts(long struct) Unsafe version ofsample_counts.static voidnsample_counts(long struct, IntBuffer value) Unsafe version ofsample_counts.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.static longntotal_samples(long struct) Unsafe version oftotal_samples().static voidntotal_samples(long struct, long value) Unsafe version oftotal_samples.static intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.sample_counts(IntBuffer value) Sets the address of the specifiedIntBufferto thesample_countsfield.set(long image, int tile_x, int tile_y, int level_x, int level_y, int width, int height, IntBuffer sample_counts, long total_samples, ExrBuffer input, int input_layout, int input_pixel_type) Initializes this struct with the specified values.set(ExrDeepTileWrite 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.longtotal_samples(long value) Sets the specified value to thetotal_samplesfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intwidth()width(int value) Sets the specified value to thewidthfield.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. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
SAMPLE_COUNTS
public static final int SAMPLE_COUNTSThe struct member offsets. -
TOTAL_SAMPLES
public static final int TOTAL_SAMPLESThe 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
-
ExrDeepTileWrite
Creates aExrDeepTileWriteinstance 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<ExrDeepTileWrite>
-
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.
-
width
- Returns:
- the value of the
widthfield.
-
height
- Returns:
- the value of the
heightfield.
-
sample_counts
- Returns:
- a
IntBufferview of the data pointed to by thesample_countsfield.
-
total_samples
- Returns:
- the value of the
total_samplesfield.
-
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. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
sample_counts
Sets the address of the specifiedIntBufferto thesample_countsfield. -
total_samples
Sets the specified value to thetotal_samplesfield. -
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 ExrDeepTileWrite set(long image, int tile_x, int tile_y, int level_x, int level_y, int width, int height, IntBuffer sample_counts, long total_samples, 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 newExrDeepTileWriteinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrDeepTileWriteinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrDeepTileWriteinstance allocated withBufferUtils. -
create
Returns a newExrDeepTileWriteinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrDeepTileWrite.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrDeepTileWrite.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrDeepTileWrite.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrDeepTileWrite.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrDeepTileWriteinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrDeepTileWriteinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrDeepTileWrite.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrDeepTileWrite.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(). -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth(). -
nheight
public static int nheight(long struct) Unsafe version ofheight(). -
nsample_counts
Unsafe version ofsample_counts. -
ntotal_samples
public static long ntotal_samples(long struct) Unsafe version oftotal_samples(). -
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. -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight. -
nsample_counts
Unsafe version ofsample_counts. -
ntotal_samples
public static void ntotal_samples(long struct, long value) Unsafe version oftotal_samples. -
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
-