Class ExrScanlineWrite
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrScanlineWrite {
ExrWriteImage image;
int32_t y_start;
int32_t num_lines;
ExrBuffer input;
uint32_t input_layout;
uint32_t input_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 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
ConstructorsConstructorDescriptionExrScanlineWrite(ByteBuffer container) Creates aExrScanlineWriteinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrScanlineWritecalloc()Returns a newExrScanlineWriteinstance allocated withmemCalloc.static ExrScanlineWrite.Buffercalloc(int capacity) Returns a newExrScanlineWrite.Bufferinstance allocated withmemCalloc.static ExrScanlineWrite.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrScanlineWrite.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrScanlineWritecalloc(MemoryStack stack) Returns a newExrScanlineWriteinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrScanlineWritecreate()Returns a newExrScanlineWriteinstance allocated withBufferUtils.static ExrScanlineWrite.Buffercreate(int capacity) Returns a newExrScanlineWrite.Bufferinstance allocated withBufferUtils.static ExrScanlineWritecreate(long address) Returns a newExrScanlineWriteinstance for the specified memory address.static ExrScanlineWrite.Buffercreate(long address, int capacity) Create aExrScanlineWrite.Bufferinstance at the specified memory.static @Nullable ExrScanlineWritecreateSafe(long address) static @Nullable ExrScanlineWrite.BuffercreateSafe(long address, int capacity) longimage()image(long value) Sets the specified value to theimagefield.input()Passes theinputfield to the specifiedConsumer.Copies the specifiedExrBufferto theinputfield.intinput_layout(int value) Sets the specified value to theinput_layoutfield.intinput_pixel_type(int value) Sets the specified value to theinput_pixel_typefield.static ExrScanlineWritemalloc()Returns a newExrScanlineWriteinstance allocated withmemAlloc.static ExrScanlineWrite.Buffermalloc(int capacity) Returns a newExrScanlineWrite.Bufferinstance allocated withmemAlloc.static ExrScanlineWrite.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrScanlineWrite.Bufferinstance allocated on the specifiedMemoryStack.static ExrScanlineWritemalloc(MemoryStack stack) Returns a newExrScanlineWriteinstance allocated on the specifiedMemoryStack.static longnimage(long struct) Unsafe version ofimage().static voidnimage(long struct, long value) Unsafe version ofimage.static ExrBufferninput(long struct) Unsafe version ofinput().static voidUnsafe version ofinput.static intninput_layout(long struct) Unsafe version ofinput_layout().static voidninput_layout(long struct, int value) Unsafe version ofinput_layout.static intninput_pixel_type(long struct) Unsafe version ofinput_pixel_type().static voidninput_pixel_type(long struct, int value) Unsafe version ofinput_pixel_type.static intnnum_lines(long struct) Unsafe version ofnum_lines().static voidnnum_lines(long struct, int value) Unsafe version ofnum_lines.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.set(long image, int y_start, int num_lines, ExrBuffer input, int input_layout, int input_pixel_type) Initializes this struct with the specified values.set(ExrScanlineWrite 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. -
IMAGE
public static final int IMAGEThe 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. -
INPUT
public static final int INPUTThe struct member offsets. -
INPUT_LAYOUT
public static final int INPUT_LAYOUTThe struct member offsets. -
INPUT_PIXEL_TYPE
public static final int INPUT_PIXEL_TYPEThe struct member offsets.
-
-
Constructor Details
-
ExrScanlineWrite
Creates aExrScanlineWriteinstance 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<ExrScanlineWrite>
-
image
- Returns:
- the value of the
imagefield.
-
y_start
- Returns:
- the value of the
y_startfield.
-
num_lines
- Returns:
- the value of the
num_linesfield.
-
input
-
input_layout
- Returns:
- the value of the
input_layoutfield.
-
input_pixel_type
- Returns:
- the value of the
input_pixel_typefield.
-
image
Sets the specified value to theimagefield. -
y_start
Sets the specified value to they_startfield. -
num_lines
Sets the specified value to thenum_linesfield. -
input
Copies the specifiedExrBufferto theinputfield. -
input
Passes theinputfield to the specifiedConsumer. -
input_layout
Sets the specified value to theinput_layoutfield. -
input_pixel_type
Sets the specified value to theinput_pixel_typefield. -
set
public ExrScanlineWrite set(long image, int y_start, int num_lines, ExrBuffer input, int input_layout, int input_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 newExrScanlineWriteinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrScanlineWriteinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrScanlineWriteinstance allocated withBufferUtils. -
create
Returns a newExrScanlineWriteinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrScanlineWrite.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrScanlineWrite.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrScanlineWrite.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrScanlineWrite.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrScanlineWriteinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrScanlineWriteinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrScanlineWrite.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrScanlineWrite.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nimage
public static long nimage(long struct) Unsafe version ofimage(). -
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(). -
ninput
-
ninput_layout
public static int ninput_layout(long struct) Unsafe version ofinput_layout(). -
ninput_pixel_type
public static int ninput_pixel_type(long struct) Unsafe version ofinput_pixel_type(). -
nimage
public static void nimage(long struct, long value) Unsafe version ofimage. -
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. -
ninput
-
ninput_layout
public static void ninput_layout(long struct, int value) Unsafe version ofinput_layout. -
ninput_pixel_type
public static void ninput_pixel_type(long struct, int value) Unsafe version ofinput_pixel_type. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-