Class ExrDeepSampleInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrDeepSampleInfo {
int32_t y_start;
int32_t num_lines;
int32_t width;
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 size in bytes.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
ConstructorsConstructorDescriptionExrDeepSampleInfo(ByteBuffer container) Creates aExrDeepSampleInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrDeepSampleInfocalloc()Returns a newExrDeepSampleInfoinstance allocated withmemCalloc.static ExrDeepSampleInfo.Buffercalloc(int capacity) Returns a newExrDeepSampleInfo.Bufferinstance allocated withmemCalloc.static ExrDeepSampleInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrDeepSampleInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrDeepSampleInfocalloc(MemoryStack stack) Returns a newExrDeepSampleInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrDeepSampleInfocreate()Returns a newExrDeepSampleInfoinstance allocated withBufferUtils.static ExrDeepSampleInfo.Buffercreate(int capacity) Returns a newExrDeepSampleInfo.Bufferinstance allocated withBufferUtils.static ExrDeepSampleInfocreate(long address) Returns a newExrDeepSampleInfoinstance for the specified memory address.static ExrDeepSampleInfo.Buffercreate(long address, int capacity) Create aExrDeepSampleInfo.Bufferinstance at the specified memory.static @Nullable ExrDeepSampleInfocreateSafe(long address) static @Nullable ExrDeepSampleInfo.BuffercreateSafe(long address, int capacity) static ExrDeepSampleInfomalloc()Returns a newExrDeepSampleInfoinstance allocated withmemAlloc.static ExrDeepSampleInfo.Buffermalloc(int capacity) Returns a newExrDeepSampleInfo.Bufferinstance allocated withmemAlloc.static ExrDeepSampleInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrDeepSampleInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrDeepSampleInfomalloc(MemoryStack stack) Returns a newExrDeepSampleInfoinstance allocated on the specifiedMemoryStack.static intnnum_lines(long struct) Unsafe version ofnum_lines().static voidnnum_lines(long struct, int value) Unsafe version ofnum_lines.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 longntotal_samples(long struct) Unsafe version oftotal_samples().static voidntotal_samples(long struct, long value) Unsafe version oftotal_samples.intnum_lines(int value) Sets the specified value to thenum_linesfield.static intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.static intny_start(long struct) Unsafe version ofy_start().static voidny_start(long struct, int value) Unsafe version ofy_start.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 y_start, int num_lines, int width, long total_samples, IntBuffer sample_counts, LongBuffer sample_offsets) Initializes this struct with the specified values.set(ExrDeepSampleInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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.inty_start()y_start(int value) Sets the specified value to they_startfield.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. -
Y_START
public static final int Y_STARTThe struct member offsets. -
NUM_LINES
public static final int NUM_LINESThe struct member offsets. -
WIDTH
public static final int WIDTHThe 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
-
ExrDeepSampleInfo
Creates aExrDeepSampleInfoinstance 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<ExrDeepSampleInfo>
-
y_start
- Returns:
- the value of the
y_startfield.
-
num_lines
- Returns:
- the value of the
num_linesfield.
-
width
- Returns:
- the value of the
widthfield.
-
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.
-
y_start
Sets the specified value to they_startfield. -
num_lines
Sets the specified value to thenum_linesfield. -
width
Sets the specified value to thewidthfield. -
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 ExrDeepSampleInfo set(int y_start, int num_lines, int width, 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 newExrDeepSampleInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrDeepSampleInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrDeepSampleInfoinstance allocated withBufferUtils. -
create
Returns a newExrDeepSampleInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrDeepSampleInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrDeepSampleInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrDeepSampleInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrDeepSampleInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrDeepSampleInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrDeepSampleInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrDeepSampleInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrDeepSampleInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ny_start
public static int ny_start(long struct) Unsafe version ofy_start(). -
nnum_lines
public static int nnum_lines(long struct) Unsafe version ofnum_lines(). -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth(). -
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. -
ny_start
public static void ny_start(long struct, int value) Unsafe version ofy_start. -
nnum_lines
public static void nnum_lines(long struct, int value) Unsafe version ofnum_lines. -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth. -
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
-