Class ExrChunkInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrChunkInfo {
uint64_t file_offset;
uint32_t compressed_size;
uint32_t uncompressed_size;
int32_t y_start;
int32_t tile_x;
int32_t tile_y;
int32_t level_x;
int32_t level_y;
uint32_t chunk_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.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
ConstructorsConstructorDescriptionExrChunkInfo(ByteBuffer container) Creates aExrChunkInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrChunkInfocalloc()Returns a newExrChunkInfoinstance allocated withmemCalloc.static ExrChunkInfo.Buffercalloc(int capacity) Returns a newExrChunkInfo.Bufferinstance allocated withmemCalloc.static ExrChunkInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrChunkInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrChunkInfocalloc(MemoryStack stack) Returns a newExrChunkInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchunk_type(int value) Sets the specified value to thechunk_typefield.intcompressed_size(int value) Sets the specified value to thecompressed_sizefield.static ExrChunkInfocreate()Returns a newExrChunkInfoinstance allocated withBufferUtils.static ExrChunkInfo.Buffercreate(int capacity) Returns a newExrChunkInfo.Bufferinstance allocated withBufferUtils.static ExrChunkInfocreate(long address) Returns a newExrChunkInfoinstance for the specified memory address.static ExrChunkInfo.Buffercreate(long address, int capacity) Create aExrChunkInfo.Bufferinstance at the specified memory.static @Nullable ExrChunkInfocreateSafe(long address) static @Nullable ExrChunkInfo.BuffercreateSafe(long address, int capacity) longfile_offset(long value) Sets the specified value to thefile_offsetfield.intlevel_x()level_x(int value) Sets the specified value to thelevel_xfield.intlevel_y()level_y(int value) Sets the specified value to thelevel_yfield.static ExrChunkInfomalloc()Returns a newExrChunkInfoinstance allocated withmemAlloc.static ExrChunkInfo.Buffermalloc(int capacity) Returns a newExrChunkInfo.Bufferinstance allocated withmemAlloc.static ExrChunkInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrChunkInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrChunkInfomalloc(MemoryStack stack) Returns a newExrChunkInfoinstance allocated on the specifiedMemoryStack.static intnchunk_type(long struct) Unsafe version ofchunk_type().static voidnchunk_type(long struct, int value) Unsafe version ofchunk_type.static intncompressed_size(long struct) Unsafe version ofcompressed_size().static voidncompressed_size(long struct, int value) Unsafe version ofcompressed_size.static longnfile_offset(long struct) Unsafe version offile_offset().static voidnfile_offset(long struct, long value) Unsafe version offile_offset.static intnlevel_x(long struct) Unsafe version oflevel_x().static voidnlevel_x(long struct, int value) Unsafe version oflevel_x.static intnlevel_y(long struct) Unsafe version oflevel_y().static voidnlevel_y(long struct, int value) Unsafe version oflevel_y.static intntile_x(long struct) Unsafe version oftile_x().static voidntile_x(long struct, int value) Unsafe version oftile_x.static intntile_y(long struct) Unsafe version oftile_y().static voidntile_y(long struct, int value) Unsafe version oftile_y.static intnuncompressed_size(long struct) Unsafe version ofuncompressed_size().static voidnuncompressed_size(long struct, int value) Unsafe version ofuncompressed_size.static intny_start(long struct) Unsafe version ofy_start().static voidny_start(long struct, int value) Unsafe version ofy_start.set(long file_offset, int compressed_size, int uncompressed_size, int y_start, int tile_x, int tile_y, int level_x, int level_y, int chunk_type) Initializes this struct with the specified values.set(ExrChunkInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttile_x()tile_x(int value) Sets the specified value to thetile_xfield.inttile_y()tile_y(int value) Sets the specified value to thetile_yfield.intuncompressed_size(int value) Sets the specified value to theuncompressed_sizefield.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. -
FILE_OFFSET
public static final int FILE_OFFSETThe struct member offsets. -
COMPRESSED_SIZE
public static final int COMPRESSED_SIZEThe struct member offsets. -
UNCOMPRESSED_SIZE
public static final int UNCOMPRESSED_SIZEThe struct member offsets. -
Y_START
public static final int Y_STARTThe struct member offsets. -
TILE_X
public static final int TILE_XThe struct member offsets. -
TILE_Y
public static final int TILE_YThe struct member offsets. -
LEVEL_X
public static final int LEVEL_XThe struct member offsets. -
LEVEL_Y
public static final int LEVEL_YThe struct member offsets. -
CHUNK_TYPE
public static final int CHUNK_TYPEThe struct member offsets.
-
-
Constructor Details
-
ExrChunkInfo
Creates aExrChunkInfoinstance 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<ExrChunkInfo>
-
file_offset
- Returns:
- the value of the
file_offsetfield.
-
compressed_size
- Returns:
- the value of the
compressed_sizefield.
-
uncompressed_size
- Returns:
- the value of the
uncompressed_sizefield.
-
y_start
- Returns:
- the value of the
y_startfield.
-
tile_x
- Returns:
- the value of the
tile_xfield.
-
tile_y
- Returns:
- the value of the
tile_yfield.
-
level_x
- Returns:
- the value of the
level_xfield.
-
level_y
- Returns:
- the value of the
level_yfield.
-
chunk_type
- Returns:
- the value of the
chunk_typefield.
-
file_offset
Sets the specified value to thefile_offsetfield. -
compressed_size
Sets the specified value to thecompressed_sizefield. -
uncompressed_size
Sets the specified value to theuncompressed_sizefield. -
y_start
Sets the specified value to they_startfield. -
tile_x
Sets the specified value to thetile_xfield. -
tile_y
Sets the specified value to thetile_yfield. -
level_x
Sets the specified value to thelevel_xfield. -
level_y
Sets the specified value to thelevel_yfield. -
chunk_type
Sets the specified value to thechunk_typefield. -
set
public ExrChunkInfo set(long file_offset, int compressed_size, int uncompressed_size, int y_start, int tile_x, int tile_y, int level_x, int level_y, int chunk_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 newExrChunkInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrChunkInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrChunkInfoinstance allocated withBufferUtils. -
create
Returns a newExrChunkInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrChunkInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrChunkInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrChunkInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrChunkInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrChunkInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrChunkInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrChunkInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrChunkInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nfile_offset
public static long nfile_offset(long struct) Unsafe version offile_offset(). -
ncompressed_size
public static int ncompressed_size(long struct) Unsafe version ofcompressed_size(). -
nuncompressed_size
public static int nuncompressed_size(long struct) Unsafe version ofuncompressed_size(). -
ny_start
public static int ny_start(long struct) Unsafe version ofy_start(). -
ntile_x
public static int ntile_x(long struct) Unsafe version oftile_x(). -
ntile_y
public static int ntile_y(long struct) Unsafe version oftile_y(). -
nlevel_x
public static int nlevel_x(long struct) Unsafe version oflevel_x(). -
nlevel_y
public static int nlevel_y(long struct) Unsafe version oflevel_y(). -
nchunk_type
public static int nchunk_type(long struct) Unsafe version ofchunk_type(). -
nfile_offset
public static void nfile_offset(long struct, long value) Unsafe version offile_offset. -
ncompressed_size
public static void ncompressed_size(long struct, int value) Unsafe version ofcompressed_size. -
nuncompressed_size
public static void nuncompressed_size(long struct, int value) Unsafe version ofuncompressed_size. -
ny_start
public static void ny_start(long struct, int value) Unsafe version ofy_start. -
ntile_x
public static void ntile_x(long struct, int value) Unsafe version oftile_x. -
ntile_y
public static void ntile_y(long struct, int value) Unsafe version oftile_y. -
nlevel_x
public static void nlevel_x(long struct, int value) Unsafe version oflevel_x. -
nlevel_y
public static void nlevel_y(long struct, int value) Unsafe version oflevel_y. -
nchunk_type
public static void nchunk_type(long struct, int value) Unsafe version ofchunk_type.
-