Class ExrFullImageRequest
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrFullImageRequest {
ExrPart part;
ExrBuffer output;
uint32_t channels_mask;
uint32_t output_pixel_type;
uint32_t output_layout;
int32_t target_level;
}-
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.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionExrFullImageRequest(ByteBuffer container) Creates aExrFullImageRequestinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrFullImageRequestcalloc()Returns a newExrFullImageRequestinstance allocated withmemCalloc.static ExrFullImageRequest.Buffercalloc(int capacity) Returns a newExrFullImageRequest.Bufferinstance allocated withmemCalloc.static ExrFullImageRequest.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrFullImageRequest.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrFullImageRequestcalloc(MemoryStack stack) Returns a newExrFullImageRequestinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchannels_mask(int value) Sets the specified value to thechannels_maskfield.static ExrFullImageRequestcreate()Returns a newExrFullImageRequestinstance allocated withBufferUtils.static ExrFullImageRequest.Buffercreate(int capacity) Returns a newExrFullImageRequest.Bufferinstance allocated withBufferUtils.static ExrFullImageRequestcreate(long address) Returns a newExrFullImageRequestinstance for the specified memory address.static ExrFullImageRequest.Buffercreate(long address, int capacity) Create aExrFullImageRequest.Bufferinstance at the specified memory.static @Nullable ExrFullImageRequestcreateSafe(long address) static @Nullable ExrFullImageRequest.BuffercreateSafe(long address, int capacity) static ExrFullImageRequestmalloc()Returns a newExrFullImageRequestinstance allocated withmemAlloc.static ExrFullImageRequest.Buffermalloc(int capacity) Returns a newExrFullImageRequest.Bufferinstance allocated withmemAlloc.static ExrFullImageRequest.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrFullImageRequest.Bufferinstance allocated on the specifiedMemoryStack.static ExrFullImageRequestmalloc(MemoryStack stack) Returns a newExrFullImageRequestinstance 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 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 intntarget_level(long struct) Unsafe version oftarget_level().static voidntarget_level(long struct, int value) Unsafe version oftarget_level.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, ExrBuffer output, int channels_mask, int output_pixel_type, int output_layout, int target_level) Initializes this struct with the specified values.set(ExrFullImageRequest src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttarget_level(int value) Sets the specified value to thetarget_levelfield.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. -
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. -
TARGET_LEVEL
public static final int TARGET_LEVELThe struct member offsets.
-
-
Constructor Details
-
ExrFullImageRequest
Creates aExrFullImageRequestinstance 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<ExrFullImageRequest>
-
part
- Returns:
- the value of the
partfield.
-
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.
-
target_level
- Returns:
- the value of the
target_levelfield.
-
part
Sets the specified value to thepartfield. -
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. -
target_level
Sets the specified value to thetarget_levelfield. -
set
public ExrFullImageRequest set(long part, ExrBuffer output, int channels_mask, int output_pixel_type, int output_layout, int target_level) 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 newExrFullImageRequestinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrFullImageRequestinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrFullImageRequestinstance allocated withBufferUtils. -
create
Returns a newExrFullImageRequestinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrFullImageRequest.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrFullImageRequest.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrFullImageRequest.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrFullImageRequest.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrFullImageRequestinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrFullImageRequestinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrFullImageRequest.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrFullImageRequest.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(). -
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(). -
ntarget_level
public static int ntarget_level(long struct) Unsafe version oftarget_level(). -
npart
public static void npart(long struct, long value) Unsafe version ofpart. -
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. -
ntarget_level
public static void ntarget_level(long struct, int value) Unsafe version oftarget_level. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-