Class ExrDeepTileSampleInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrDeepTileSampleInfo {
int32_t tile_x;
int32_t tile_y;
int32_t level_x;
int32_t level_y;
int32_t width;
int32_t height;
uint64_t total_samples;
uint32_t * sample_counts;
uint64_t * sample_offsets;
}-
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 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
ConstructorsConstructorDescriptionExrDeepTileSampleInfo(ByteBuffer container) Creates aExrDeepTileSampleInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrDeepTileSampleInfocalloc()Returns a newExrDeepTileSampleInfoinstance allocated withmemCalloc.static ExrDeepTileSampleInfo.Buffercalloc(int capacity) Returns a newExrDeepTileSampleInfo.Bufferinstance allocated withmemCalloc.static ExrDeepTileSampleInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrDeepTileSampleInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrDeepTileSampleInfocalloc(MemoryStack stack) Returns a newExrDeepTileSampleInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrDeepTileSampleInfocreate()Returns a newExrDeepTileSampleInfoinstance allocated withBufferUtils.static ExrDeepTileSampleInfo.Buffercreate(int capacity) Returns a newExrDeepTileSampleInfo.Bufferinstance allocated withBufferUtils.static ExrDeepTileSampleInfocreate(long address) Returns a newExrDeepTileSampleInfoinstance for the specified memory address.static ExrDeepTileSampleInfo.Buffercreate(long address, int capacity) Create aExrDeepTileSampleInfo.Bufferinstance at the specified memory.static @Nullable ExrDeepTileSampleInfocreateSafe(long address) static @Nullable ExrDeepTileSampleInfo.BuffercreateSafe(long address, int capacity) intheight()height(int value) Sets the specified value to theheightfield.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 ExrDeepTileSampleInfomalloc()Returns a newExrDeepTileSampleInfoinstance allocated withmemAlloc.static ExrDeepTileSampleInfo.Buffermalloc(int capacity) Returns a newExrDeepTileSampleInfo.Bufferinstance allocated withmemAlloc.static ExrDeepTileSampleInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrDeepTileSampleInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrDeepTileSampleInfomalloc(MemoryStack stack) Returns a newExrDeepTileSampleInfoinstance allocated on the specifiedMemoryStack.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.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 LongBuffernsample_offsets(long struct) Unsafe version ofsample_offsets.static voidnsample_offsets(long struct, LongBuffer value) Unsafe version ofsample_offsets.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.sample_offsets(LongBuffer value) Sets the address of the specifiedLongBufferto thesample_offsetsfield.set(int tile_x, int tile_y, int level_x, int level_y, int width, int height, long total_samples, IntBuffer sample_counts, LongBuffer sample_offsets) Initializes this struct with the specified values.set(ExrDeepTileSampleInfo 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. -
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. -
TOTAL_SAMPLES
public static final int TOTAL_SAMPLESThe struct member offsets. -
SAMPLE_COUNTS
public static final int SAMPLE_COUNTSThe struct member offsets. -
SAMPLE_OFFSETS
public static final int SAMPLE_OFFSETSThe struct member offsets.
-
-
Constructor Details
-
ExrDeepTileSampleInfo
Creates aExrDeepTileSampleInfoinstance 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<ExrDeepTileSampleInfo>
-
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.
-
total_samples
- Returns:
- the value of the
total_samplesfield.
-
sample_counts
- Returns:
- a
IntBufferview of the data pointed to by thesample_countsfield.
-
sample_offsets
- Returns:
- a
LongBufferview of the data pointed to by thesample_offsetsfield.
-
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. -
total_samples
Sets the specified value to thetotal_samplesfield. -
sample_counts
Sets the address of the specifiedIntBufferto thesample_countsfield. -
sample_offsets
Sets the address of the specifiedLongBufferto thesample_offsetsfield. -
set
public ExrDeepTileSampleInfo set(int tile_x, int tile_y, int level_x, int level_y, int width, int height, long total_samples, IntBuffer sample_counts, LongBuffer sample_offsets) 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 newExrDeepTileSampleInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrDeepTileSampleInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrDeepTileSampleInfoinstance allocated withBufferUtils. -
create
Returns a newExrDeepTileSampleInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrDeepTileSampleInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrDeepTileSampleInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrDeepTileSampleInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrDeepTileSampleInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrDeepTileSampleInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrDeepTileSampleInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrDeepTileSampleInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrDeepTileSampleInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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(). -
ntotal_samples
public static long ntotal_samples(long struct) Unsafe version oftotal_samples(). -
nsample_counts
Unsafe version ofsample_counts. -
nsample_offsets
Unsafe version ofsample_offsets. -
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. -
ntotal_samples
public static void ntotal_samples(long struct, long value) Unsafe version oftotal_samples. -
nsample_counts
Unsafe version ofsample_counts. -
nsample_offsets
Unsafe version ofsample_offsets. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-