Class ExrImageInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrImageInfo {
int32_t width;
int32_t height;
ExrBox2i data_window;
ExrBox2i display_window;
uint32_t num_channels;
uint32_t num_parts;
uint32_t compression;
uint32_t flags;
uint32_t tile_size_x;
uint32_t tile_size_y;
uint32_t num_x_levels;
uint32_t num_y_levels;
float pixel_aspect_ratio;
ExrVec2f screen_window_center;
float screen_window_width;
}-
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 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
ConstructorsConstructorDescriptionExrImageInfo(ByteBuffer container) Creates aExrImageInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrImageInfocalloc()Returns a newExrImageInfoinstance allocated withmemCalloc.static ExrImageInfo.Buffercalloc(int capacity) Returns a newExrImageInfo.Bufferinstance allocated withmemCalloc.static ExrImageInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrImageInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrImageInfocalloc(MemoryStack stack) Returns a newExrImageInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcompression(int value) Sets the specified value to thecompressionfield.static ExrImageInfocreate()Returns a newExrImageInfoinstance allocated withBufferUtils.static ExrImageInfo.Buffercreate(int capacity) Returns a newExrImageInfo.Bufferinstance allocated withBufferUtils.static ExrImageInfocreate(long address) Returns a newExrImageInfoinstance for the specified memory address.static ExrImageInfo.Buffercreate(long address, int capacity) Create aExrImageInfo.Bufferinstance at the specified memory.static @Nullable ExrImageInfocreateSafe(long address) static @Nullable ExrImageInfo.BuffercreateSafe(long address, int capacity) data_window(Consumer<ExrBox2i> consumer) Passes thedata_windowfield to the specifiedConsumer.data_window(ExrBox2i value) Copies the specifiedExrBox2ito thedata_windowfield.display_window(Consumer<ExrBox2i> consumer) Passes thedisplay_windowfield to the specifiedConsumer.display_window(ExrBox2i value) Copies 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 ExrImageInfomalloc()Returns a newExrImageInfoinstance allocated withmemAlloc.static ExrImageInfo.Buffermalloc(int capacity) Returns a newExrImageInfo.Bufferinstance allocated withmemAlloc.static ExrImageInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrImageInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrImageInfomalloc(MemoryStack stack) Returns a newExrImageInfoinstance allocated on the specifiedMemoryStack.static intncompression(long struct) Unsafe version ofcompression().static voidncompression(long struct, int value) Unsafe version ofcompression.static ExrBox2indata_window(long struct) Unsafe version ofdata_window().static voidndata_window(long struct, ExrBox2i value) Unsafe version ofdata_window.static ExrBox2indisplay_window(long struct) Unsafe version ofdisplay_window().static voidndisplay_window(long struct, 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) Unsafe version ofnum_channels.static intnnum_parts(long struct) Unsafe version ofnum_parts().static voidnnum_parts(long struct, int value) Unsafe version ofnum_parts.static intnnum_x_levels(long struct) Unsafe version ofnum_x_levels().static voidnnum_x_levels(long struct, int value) Unsafe version ofnum_x_levels.static intnnum_y_levels(long struct) Unsafe version ofnum_y_levels().static voidnnum_y_levels(long struct, int value) Unsafe version ofnum_y_levels.static floatnpixel_aspect_ratio(long struct) Unsafe version ofpixel_aspect_ratio().static voidnpixel_aspect_ratio(long struct, float value) Unsafe version ofpixel_aspect_ratio.static ExrVec2fnscreen_window_center(long struct) Unsafe version ofscreen_window_center().static voidnscreen_window_center(long struct, ExrVec2f value) Unsafe version ofscreen_window_center.static floatnscreen_window_width(long struct) Unsafe version ofscreen_window_width().static voidnscreen_window_width(long struct, float value) Unsafe version ofscreen_window_width.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.intnum_channels(int value) Sets the specified value to thenum_channelsfield.intnum_parts(int value) Sets the specified value to thenum_partsfield.intnum_x_levels(int value) Sets the specified value to thenum_x_levelsfield.intnum_y_levels(int value) Sets the specified value to thenum_y_levelsfield.static intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.floatpixel_aspect_ratio(float value) Sets the specified value to thepixel_aspect_ratiofield.screen_window_center(Consumer<ExrVec2f> consumer) Passes thescreen_window_centerfield to the specifiedConsumer.screen_window_center(ExrVec2f value) Copies the specifiedExrVec2fto thescreen_window_centerfield.floatscreen_window_width(float value) Sets the specified value to thescreen_window_widthfield.set(int width, int height, ExrBox2i data_window, ExrBox2i display_window, int num_channels, int num_parts, int compression, int flags, int tile_size_x, int tile_size_y, int num_x_levels, int num_y_levels, float pixel_aspect_ratio, ExrVec2f screen_window_center, float screen_window_width) Initializes this struct with the specified values.set(ExrImageInfo src) 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.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. -
DATA_WINDOW
public static final int DATA_WINDOWThe struct member offsets. -
DISPLAY_WINDOW
public static final int DISPLAY_WINDOWThe struct member offsets. -
NUM_CHANNELS
public static final int NUM_CHANNELSThe struct member offsets. -
NUM_PARTS
public static final int NUM_PARTSThe struct member offsets. -
COMPRESSION
public static final int COMPRESSIONThe 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. -
NUM_X_LEVELS
public static final int NUM_X_LEVELSThe struct member offsets. -
NUM_Y_LEVELS
public static final int NUM_Y_LEVELSThe struct member offsets. -
PIXEL_ASPECT_RATIO
public static final int PIXEL_ASPECT_RATIOThe struct member offsets. -
SCREEN_WINDOW_CENTER
public static final int SCREEN_WINDOW_CENTERThe struct member offsets. -
SCREEN_WINDOW_WIDTH
public static final int SCREEN_WINDOW_WIDTHThe struct member offsets.
-
-
Constructor Details
-
ExrImageInfo
Creates aExrImageInfoinstance 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<ExrImageInfo>
-
width
- Returns:
- the value of the
widthfield.
-
height
- Returns:
- the value of the
heightfield.
-
data_window
-
display_window
-
num_channels
- Returns:
- the value of the
num_channelsfield.
-
num_parts
- Returns:
- the value of the
num_partsfield.
-
compression
- Returns:
- the value of the
compressionfield.
-
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.
-
num_x_levels
- Returns:
- the value of the
num_x_levelsfield.
-
num_y_levels
- Returns:
- the value of the
num_y_levelsfield.
-
pixel_aspect_ratio
public float pixel_aspect_ratio()- Returns:
- the value of the
pixel_aspect_ratiofield.
-
screen_window_center
-
screen_window_width
public float screen_window_width()- Returns:
- the value of the
screen_window_widthfield.
-
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
data_window
Copies the specifiedExrBox2ito thedata_windowfield. -
data_window
Passes thedata_windowfield to the specifiedConsumer. -
display_window
Copies the specifiedExrBox2ito thedisplay_windowfield. -
display_window
Passes thedisplay_windowfield to the specifiedConsumer. -
num_channels
Sets the specified value to thenum_channelsfield. -
num_parts
Sets the specified value to thenum_partsfield. -
compression
Sets the specified value to thecompressionfield. -
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. -
num_x_levels
Sets the specified value to thenum_x_levelsfield. -
num_y_levels
Sets the specified value to thenum_y_levelsfield. -
pixel_aspect_ratio
Sets the specified value to thepixel_aspect_ratiofield. -
screen_window_center
Copies the specifiedExrVec2fto thescreen_window_centerfield. -
screen_window_center
Passes thescreen_window_centerfield to the specifiedConsumer. -
screen_window_width
Sets the specified value to thescreen_window_widthfield. -
set
public ExrImageInfo set(int width, int height, ExrBox2i data_window, ExrBox2i display_window, int num_channels, int num_parts, int compression, int flags, int tile_size_x, int tile_size_y, int num_x_levels, int num_y_levels, float pixel_aspect_ratio, ExrVec2f screen_window_center, float screen_window_width) 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 newExrImageInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrImageInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrImageInfoinstance allocated withBufferUtils. -
create
Returns a newExrImageInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrImageInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrImageInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrImageInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrImageInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrImageInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrImageInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrImageInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrImageInfo.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(). -
ndata_window
Unsafe version ofdata_window(). -
ndisplay_window
Unsafe version ofdisplay_window(). -
nnum_channels
public static int nnum_channels(long struct) Unsafe version ofnum_channels(). -
nnum_parts
public static int nnum_parts(long struct) Unsafe version ofnum_parts(). -
ncompression
public static int ncompression(long struct) Unsafe version ofcompression(). -
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(). -
nnum_x_levels
public static int nnum_x_levels(long struct) Unsafe version ofnum_x_levels(). -
nnum_y_levels
public static int nnum_y_levels(long struct) Unsafe version ofnum_y_levels(). -
npixel_aspect_ratio
public static float npixel_aspect_ratio(long struct) Unsafe version ofpixel_aspect_ratio(). -
nscreen_window_center
Unsafe version ofscreen_window_center(). -
nscreen_window_width
public static float nscreen_window_width(long struct) Unsafe version ofscreen_window_width(). -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight. -
ndata_window
Unsafe version ofdata_window. -
ndisplay_window
Unsafe version ofdisplay_window. -
nnum_channels
public static void nnum_channels(long struct, int value) Unsafe version ofnum_channels. -
nnum_parts
public static void nnum_parts(long struct, int value) Unsafe version ofnum_parts. -
ncompression
public static void ncompression(long struct, int value) Unsafe version ofcompression. -
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. -
nnum_x_levels
public static void nnum_x_levels(long struct, int value) Unsafe version ofnum_x_levels. -
nnum_y_levels
public static void nnum_y_levels(long struct, int value) Unsafe version ofnum_y_levels. -
npixel_aspect_ratio
public static void npixel_aspect_ratio(long struct, float value) Unsafe version ofpixel_aspect_ratio. -
nscreen_window_center
Unsafe version ofscreen_window_center. -
nscreen_window_width
public static void nscreen_window_width(long struct, float value) Unsafe version ofscreen_window_width.
-