Class ExrWriteImageCreateInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class ExrWriteImageCreateInfo
extends Struct<ExrWriteImageCreateInfo>
implements NativeResource
struct ExrWriteImageCreateInfo {
int32_t width;
int32_t height;
uint32_t num_channels;
ExrWriteChannelInfo const * channels;
uint32_t compression;
int32_t compression_level;
uint32_t flags;
int32_t tile_size_x;
int32_t tile_size_y;
ExrBox2i const * data_window;
ExrBox2i const * display_window;
char const * part_name;
}-
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 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
ConstructorsConstructorDescriptionExrWriteImageCreateInfo(ByteBuffer container) Creates aExrWriteImageCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrWriteImageCreateInfocalloc()Returns a newExrWriteImageCreateInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newExrWriteImageCreateInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newExrWriteImageCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrWriteImageCreateInfocalloc(MemoryStack stack) Returns a newExrWriteImageCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.channels()Sets the address of the specifiedExrWriteChannelInfo.Bufferto thechannelsfield.intcompression(int value) Sets the specified value to thecompressionfield.intcompression_level(int value) Sets the specified value to thecompression_levelfield.static ExrWriteImageCreateInfocreate()Returns a newExrWriteImageCreateInfoinstance allocated withBufferUtils.create(int capacity) Returns a newExrWriteImageCreateInfo.Bufferinstance allocated withBufferUtils.static ExrWriteImageCreateInfocreate(long address) Returns a newExrWriteImageCreateInfoinstance for the specified memory address.create(long address, int capacity) Create aExrWriteImageCreateInfo.Bufferinstance at the specified memory.static @Nullable ExrWriteImageCreateInfocreateSafe(long address) static @Nullable ExrWriteImageCreateInfo.BuffercreateSafe(long address, int capacity) @Nullable ExrBox2idata_window(@Nullable ExrBox2i value) Sets the address of the specifiedExrBox2ito thedata_windowfield.@Nullable ExrBox2idisplay_window(@Nullable ExrBox2i value) Sets the address of the specifiedExrBox2ito thedisplay_windowfield.intflags()flags(int value) Sets the specified value to theflagsfield.intheight()height(int value) Sets the specified value to theheightfield.static ExrWriteImageCreateInfomalloc()Returns a newExrWriteImageCreateInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newExrWriteImageCreateInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newExrWriteImageCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrWriteImageCreateInfomalloc(MemoryStack stack) Returns a newExrWriteImageCreateInfoinstance allocated on the specifiedMemoryStack.static ExrWriteChannelInfo.Buffernchannels(long struct) Unsafe version ofchannels().static voidnchannels(long struct, ExrWriteChannelInfo.Buffer value) Unsafe version ofchannels.static intncompression(long struct) Unsafe version ofcompression().static voidncompression(long struct, int value) Unsafe version ofcompression.static intncompression_level(long struct) Unsafe version ofcompression_level().static voidncompression_level(long struct, int value) Unsafe version ofcompression_level.static @Nullable ExrBox2indata_window(long struct) Unsafe version ofdata_window().static voidndata_window(long struct, @Nullable ExrBox2i value) Unsafe version ofdata_window.static @Nullable ExrBox2indisplay_window(long struct) Unsafe version ofdisplay_window().static voidndisplay_window(long struct, @Nullable ExrBox2i value) Unsafe version ofdisplay_window.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.static intnnum_channels(long struct) Unsafe version ofnum_channels().static voidnnum_channels(long struct, int value) Sets the specified value to thenum_channelsfield of the specifiedstruct.static @Nullable ByteBuffernpart_name(long struct) Unsafe version ofpart_name().static voidnpart_name(long struct, @Nullable ByteBuffer value) Unsafe version ofpart_name.static @Nullable Stringnpart_nameString(long struct) Unsafe version ofpart_nameString().static intntile_size_x(long struct) Unsafe version oftile_size_x().static voidntile_size_x(long struct, int value) Unsafe version oftile_size_x.static intntile_size_y(long struct) Unsafe version oftile_size_y().static voidntile_size_y(long struct, int value) Unsafe version oftile_size_y.intstatic intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.@Nullable ByteBufferpart_name(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thepart_namefield.@Nullable Stringset(int width, int height, ExrWriteChannelInfo.Buffer channels, int compression, int compression_level, int flags, int tile_size_x, int tile_size_y, @Nullable ExrBox2i data_window, @Nullable ExrBox2i display_window, @Nullable ByteBuffer part_name) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttile_size_x(int value) Sets the specified value to thetile_size_xfield.inttile_size_y(int value) Sets the specified value to thetile_size_yfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intwidth()width(int value) Sets the specified value to thewidthfield.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. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
NUM_CHANNELS
public static final int NUM_CHANNELSThe struct member offsets. -
CHANNELS
public static final int CHANNELSThe struct member offsets. -
COMPRESSION
public static final int COMPRESSIONThe struct member offsets. -
COMPRESSION_LEVEL
public static final int COMPRESSION_LEVELThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
TILE_SIZE_X
public static final int TILE_SIZE_XThe struct member offsets. -
TILE_SIZE_Y
public static final int TILE_SIZE_YThe struct member offsets. -
DATA_WINDOW
public static final int DATA_WINDOWThe struct member offsets. -
DISPLAY_WINDOW
public static final int DISPLAY_WINDOWThe struct member offsets. -
PART_NAME
public static final int PART_NAMEThe struct member offsets.
-
-
Constructor Details
-
ExrWriteImageCreateInfo
Creates aExrWriteImageCreateInfoinstance 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<ExrWriteImageCreateInfo>
-
width
- Returns:
- the value of the
widthfield.
-
height
- Returns:
- the value of the
heightfield.
-
num_channels
- Returns:
- the value of the
num_channelsfield.
-
channels
- Returns:
- a
ExrWriteChannelInfo.Bufferview of the struct array pointed to by thechannelsfield.
-
compression
- Returns:
- the value of the
compressionfield.
-
compression_level
- Returns:
- the value of the
compression_levelfield.
-
flags
- Returns:
- the value of the
flagsfield.
-
tile_size_x
- Returns:
- the value of the
tile_size_xfield.
-
tile_size_y
- Returns:
- the value of the
tile_size_yfield.
-
data_window
- Returns:
- a
ExrBox2iview of the struct pointed to by thedata_windowfield.
-
display_window
- Returns:
- a
ExrBox2iview of the struct pointed to by thedisplay_windowfield.
-
part_name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thepart_namefield.
-
part_nameString
- Returns:
- the null-terminated string pointed to by the
part_namefield.
-
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
channels
public ExrWriteImageCreateInfo channels(@NativeType("ExrWriteChannelInfo const *") ExrWriteChannelInfo.Buffer value) Sets the address of the specifiedExrWriteChannelInfo.Bufferto thechannelsfield. -
compression
Sets the specified value to thecompressionfield. -
compression_level
Sets the specified value to thecompression_levelfield. -
flags
Sets the specified value to theflagsfield. -
tile_size_x
Sets the specified value to thetile_size_xfield. -
tile_size_y
Sets the specified value to thetile_size_yfield. -
data_window
public ExrWriteImageCreateInfo data_window(@NativeType("ExrBox2i const *") @Nullable ExrBox2i value) Sets the address of the specifiedExrBox2ito thedata_windowfield. -
display_window
public ExrWriteImageCreateInfo display_window(@NativeType("ExrBox2i const *") @Nullable ExrBox2i value) Sets the address of the specifiedExrBox2ito thedisplay_windowfield. -
part_name
Sets the address of the specified encoded string to thepart_namefield. -
set
public ExrWriteImageCreateInfo set(int width, int height, ExrWriteChannelInfo.Buffer channels, int compression, int compression_level, int flags, int tile_size_x, int tile_size_y, @Nullable ExrBox2i data_window, @Nullable ExrBox2i display_window, @Nullable ByteBuffer part_name) 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 newExrWriteImageCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrWriteImageCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrWriteImageCreateInfoinstance allocated withBufferUtils. -
create
Returns a newExrWriteImageCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrWriteImageCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrWriteImageCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrWriteImageCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrWriteImageCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrWriteImageCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrWriteImageCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrWriteImageCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrWriteImageCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nwidth
public static int nwidth(long struct) Unsafe version ofwidth(). -
nheight
public static int nheight(long struct) Unsafe version ofheight(). -
nnum_channels
public static int nnum_channels(long struct) Unsafe version ofnum_channels(). -
nchannels
Unsafe version ofchannels(). -
ncompression
public static int ncompression(long struct) Unsafe version ofcompression(). -
ncompression_level
public static int ncompression_level(long struct) Unsafe version ofcompression_level(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
ntile_size_x
public static int ntile_size_x(long struct) Unsafe version oftile_size_x(). -
ntile_size_y
public static int ntile_size_y(long struct) Unsafe version oftile_size_y(). -
ndata_window
Unsafe version ofdata_window(). -
ndisplay_window
Unsafe version ofdisplay_window(). -
npart_name
Unsafe version ofpart_name(). -
npart_nameString
Unsafe version ofpart_nameString(). -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight. -
nnum_channels
public static void nnum_channels(long struct, int value) Sets the specified value to thenum_channelsfield of the specifiedstruct. -
nchannels
Unsafe version ofchannels. -
ncompression
public static void ncompression(long struct, int value) Unsafe version ofcompression. -
ncompression_level
public static void ncompression_level(long struct, int value) Unsafe version ofcompression_level. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
ntile_size_x
public static void ntile_size_x(long struct, int value) Unsafe version oftile_size_x. -
ntile_size_y
public static void ntile_size_y(long struct, int value) Unsafe version oftile_size_y. -
ndata_window
Unsafe version ofdata_window. -
ndisplay_window
Unsafe version ofdisplay_window. -
npart_name
Unsafe version ofpart_name. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-