Class ExrScanlineRequest
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrScanlineRequest {
ExrPart part;
int32_t y_start;
int32_t num_lines;
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 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
ConstructorsConstructorDescriptionExrScanlineRequest(ByteBuffer container) Creates aExrScanlineRequestinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrScanlineRequestcalloc()Returns a newExrScanlineRequestinstance allocated withmemCalloc.static ExrScanlineRequest.Buffercalloc(int capacity) Returns a newExrScanlineRequest.Bufferinstance allocated withmemCalloc.static ExrScanlineRequest.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrScanlineRequest.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrScanlineRequestcalloc(MemoryStack stack) Returns a newExrScanlineRequestinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchannels_mask(int value) Sets the specified value to thechannels_maskfield.static ExrScanlineRequestcreate()Returns a newExrScanlineRequestinstance allocated withBufferUtils.static ExrScanlineRequest.Buffercreate(int capacity) Returns a newExrScanlineRequest.Bufferinstance allocated withBufferUtils.static ExrScanlineRequestcreate(long address) Returns a newExrScanlineRequestinstance for the specified memory address.static ExrScanlineRequest.Buffercreate(long address, int capacity) Create aExrScanlineRequest.Bufferinstance at the specified memory.static @Nullable ExrScanlineRequestcreateSafe(long address) static @Nullable ExrScanlineRequest.BuffercreateSafe(long address, int capacity) static ExrScanlineRequestmalloc()Returns a newExrScanlineRequestinstance allocated withmemAlloc.static ExrScanlineRequest.Buffermalloc(int capacity) Returns a newExrScanlineRequest.Bufferinstance allocated withmemAlloc.static ExrScanlineRequest.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrScanlineRequest.Bufferinstance allocated on the specifiedMemoryStack.static ExrScanlineRequestmalloc(MemoryStack stack) Returns a newExrScanlineRequestinstance 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 intnnum_lines(long struct) Unsafe version ofnum_lines().static voidnnum_lines(long struct, int value) Unsafe version ofnum_lines.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.intnum_lines(int value) Sets the specified value to thenum_linesfield.static intny_start(long struct) Unsafe version ofy_start().static voidny_start(long struct, int value) Unsafe version ofy_start.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 y_start, int num_lines, ExrBuffer output, int channels_mask, int output_pixel_type, int output_layout) Initializes this struct with the specified values.set(ExrScanlineRequest src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
PART
public static final int PARTThe struct member offsets. -
Y_START
public static final int Y_STARTThe struct member offsets. -
NUM_LINES
public static final int NUM_LINESThe 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
-
ExrScanlineRequest
Creates aExrScanlineRequestinstance 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<ExrScanlineRequest>
-
part
- Returns:
- the value of the
partfield.
-
y_start
- Returns:
- the value of the
y_startfield.
-
num_lines
- Returns:
- the value of the
num_linesfield.
-
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. -
y_start
Sets the specified value to they_startfield. -
num_lines
Sets the specified value to thenum_linesfield. -
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 ExrScanlineRequest set(long part, int y_start, int num_lines, 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 newExrScanlineRequestinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrScanlineRequestinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrScanlineRequestinstance allocated withBufferUtils. -
create
Returns a newExrScanlineRequestinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrScanlineRequest.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrScanlineRequest.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrScanlineRequest.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrScanlineRequest.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrScanlineRequestinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrScanlineRequestinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrScanlineRequest.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrScanlineRequest.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(). -
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(). -
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. -
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. -
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
-