Class ExrDeepScanlineRequest
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class ExrDeepScanlineRequest
extends Struct<ExrDeepScanlineRequest>
implements NativeResource
struct ExrDeepScanlineRequest {
ExrPart part;
int32_t y_start;
int32_t num_lines;
ExrDeepSampleInfo * sample_info;
ExrBuffer output;
uint32_t channels_mask;
uint32_t output_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 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
ConstructorsConstructorDescriptionExrDeepScanlineRequest(ByteBuffer container) Creates aExrDeepScanlineRequestinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrDeepScanlineRequestcalloc()Returns a newExrDeepScanlineRequestinstance allocated withmemCalloc.calloc(int capacity) Returns a newExrDeepScanlineRequest.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newExrDeepScanlineRequest.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrDeepScanlineRequestcalloc(MemoryStack stack) Returns a newExrDeepScanlineRequestinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchannels_mask(int value) Sets the specified value to thechannels_maskfield.static ExrDeepScanlineRequestcreate()Returns a newExrDeepScanlineRequestinstance allocated withBufferUtils.create(int capacity) Returns a newExrDeepScanlineRequest.Bufferinstance allocated withBufferUtils.static ExrDeepScanlineRequestcreate(long address) Returns a newExrDeepScanlineRequestinstance for the specified memory address.create(long address, int capacity) Create aExrDeepScanlineRequest.Bufferinstance at the specified memory.static @Nullable ExrDeepScanlineRequestcreateSafe(long address) static @Nullable ExrDeepScanlineRequest.BuffercreateSafe(long address, int capacity) static ExrDeepScanlineRequestmalloc()Returns a newExrDeepScanlineRequestinstance allocated withmemAlloc.malloc(int capacity) Returns a newExrDeepScanlineRequest.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newExrDeepScanlineRequest.Bufferinstance allocated on the specifiedMemoryStack.static ExrDeepScanlineRequestmalloc(MemoryStack stack) Returns a newExrDeepScanlineRequestinstance 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_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 ExrDeepSampleInfonsample_info(long struct) Unsafe version ofsample_info().static voidnsample_info(long struct, ExrDeepSampleInfo value) Unsafe version ofsample_info.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_pixel_type(int value) Sets the specified value to theoutput_pixel_typefield.longpart()part(long value) Sets the specified value to thepartfield.sample_info(ExrDeepSampleInfo value) Sets the address of the specifiedExrDeepSampleInfoto thesample_infofield.set(long part, int y_start, int num_lines, ExrDeepSampleInfo sample_info, ExrBuffer output, int channels_mask, int output_pixel_type) Initializes this struct with the specified values.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. -
SAMPLE_INFO
public static final int SAMPLE_INFOThe 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.
-
-
Constructor Details
-
ExrDeepScanlineRequest
Creates aExrDeepScanlineRequestinstance 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<ExrDeepScanlineRequest>
-
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.
-
sample_info
- Returns:
- a
ExrDeepSampleInfoview of the struct pointed to by thesample_infofield.
-
output
-
channels_mask
- Returns:
- the value of the
channels_maskfield.
-
output_pixel_type
- Returns:
- the value of the
output_pixel_typefield.
-
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. -
sample_info
public ExrDeepScanlineRequest sample_info(@NativeType("ExrDeepSampleInfo *") ExrDeepSampleInfo value) Sets the address of the specifiedExrDeepSampleInfoto thesample_infofield. -
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. -
set
public ExrDeepScanlineRequest set(long part, int y_start, int num_lines, ExrDeepSampleInfo sample_info, ExrBuffer output, int channels_mask, int output_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 newExrDeepScanlineRequestinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrDeepScanlineRequestinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrDeepScanlineRequestinstance allocated withBufferUtils. -
create
Returns a newExrDeepScanlineRequestinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrDeepScanlineRequest.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrDeepScanlineRequest.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrDeepScanlineRequest.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrDeepScanlineRequest.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrDeepScanlineRequestinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrDeepScanlineRequestinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrDeepScanlineRequest.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrDeepScanlineRequest.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(). -
nsample_info
Unsafe version ofsample_info(). -
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(). -
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. -
nsample_info
Unsafe version ofsample_info. -
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. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-