Class ExrWriteChannelInfo
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct ExrWriteChannelInfo {
char const * name;
uint32_t pixel_type;
int32_t x_sampling;
int32_t y_sampling;
uint8_t p_linear;
}-
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 size in bytes.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
ConstructorsConstructorDescriptionExrWriteChannelInfo(ByteBuffer container) Creates aExrWriteChannelInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExrWriteChannelInfocalloc()Returns a newExrWriteChannelInfoinstance allocated withmemCalloc.static ExrWriteChannelInfo.Buffercalloc(int capacity) Returns a newExrWriteChannelInfo.Bufferinstance allocated withmemCalloc.static ExrWriteChannelInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newExrWriteChannelInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrWriteChannelInfocalloc(MemoryStack stack) Returns a newExrWriteChannelInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ExrWriteChannelInfocreate()Returns a newExrWriteChannelInfoinstance allocated withBufferUtils.static ExrWriteChannelInfo.Buffercreate(int capacity) Returns a newExrWriteChannelInfo.Bufferinstance allocated withBufferUtils.static ExrWriteChannelInfocreate(long address) Returns a newExrWriteChannelInfoinstance for the specified memory address.static ExrWriteChannelInfo.Buffercreate(long address, int capacity) Create aExrWriteChannelInfo.Bufferinstance at the specified memory.static @Nullable ExrWriteChannelInfocreateSafe(long address) static @Nullable ExrWriteChannelInfo.BuffercreateSafe(long address, int capacity) static ExrWriteChannelInfomalloc()Returns a newExrWriteChannelInfoinstance allocated withmemAlloc.static ExrWriteChannelInfo.Buffermalloc(int capacity) Returns a newExrWriteChannelInfo.Bufferinstance allocated withmemAlloc.static ExrWriteChannelInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newExrWriteChannelInfo.Bufferinstance allocated on the specifiedMemoryStack.static ExrWriteChannelInfomalloc(MemoryStack stack) Returns a newExrWriteChannelInfoinstance allocated on the specifiedMemoryStack.name()name(ByteBuffer value) Sets the address of the specified encoded string to thenamefield.static ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, ByteBuffer value) Unsafe version ofname.static StringnnameString(long struct) Unsafe version ofnameString().static bytenp_linear(long struct) Unsafe version ofp_linear().static voidnp_linear(long struct, byte value) Unsafe version ofp_linear.static intnpixel_type(long struct) Unsafe version ofpixel_type().static voidnpixel_type(long struct, int value) Unsafe version ofpixel_type.static intnx_sampling(long struct) Unsafe version ofx_sampling().static voidnx_sampling(long struct, int value) Unsafe version ofx_sampling.static intny_sampling(long struct) Unsafe version ofy_sampling().static voidny_sampling(long struct, int value) Unsafe version ofy_sampling.bytep_linear()p_linear(byte value) Sets the specified value to thep_linearfield.intpixel_type(int value) Sets the specified value to thepixel_typefield.set(ByteBuffer name, int pixel_type, int x_sampling, int y_sampling, byte p_linear) Initializes this struct with the specified values.set(ExrWriteChannelInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.intx_sampling(int value) Sets the specified value to thex_samplingfield.inty_sampling(int value) Sets the specified value to they_samplingfield.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. -
NAME
public static final int NAMEThe struct member offsets. -
PIXEL_TYPE
public static final int PIXEL_TYPEThe struct member offsets. -
X_SAMPLING
public static final int X_SAMPLINGThe struct member offsets. -
Y_SAMPLING
public static final int Y_SAMPLINGThe struct member offsets. -
P_LINEAR
public static final int P_LINEARThe struct member offsets.
-
-
Constructor Details
-
ExrWriteChannelInfo
Creates aExrWriteChannelInfoinstance 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<ExrWriteChannelInfo>
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
pixel_type
- Returns:
- the value of the
pixel_typefield.
-
x_sampling
- Returns:
- the value of the
x_samplingfield.
-
y_sampling
- Returns:
- the value of the
y_samplingfield.
-
p_linear
- Returns:
- the value of the
p_linearfield.
-
name
Sets the address of the specified encoded string to thenamefield. -
pixel_type
Sets the specified value to thepixel_typefield. -
x_sampling
Sets the specified value to thex_samplingfield. -
y_sampling
Sets the specified value to they_samplingfield. -
p_linear
Sets the specified value to thep_linearfield. -
set
public ExrWriteChannelInfo set(ByteBuffer name, int pixel_type, int x_sampling, int y_sampling, byte p_linear) 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 newExrWriteChannelInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newExrWriteChannelInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newExrWriteChannelInfoinstance allocated withBufferUtils. -
create
Returns a newExrWriteChannelInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newExrWriteChannelInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newExrWriteChannelInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newExrWriteChannelInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aExrWriteChannelInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newExrWriteChannelInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newExrWriteChannelInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newExrWriteChannelInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newExrWriteChannelInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nname
Unsafe version ofname(). -
nnameString
Unsafe version ofnameString(). -
npixel_type
public static int npixel_type(long struct) Unsafe version ofpixel_type(). -
nx_sampling
public static int nx_sampling(long struct) Unsafe version ofx_sampling(). -
ny_sampling
public static int ny_sampling(long struct) Unsafe version ofy_sampling(). -
np_linear
public static byte np_linear(long struct) Unsafe version ofp_linear(). -
nname
Unsafe version ofname. -
npixel_type
public static void npixel_type(long struct, int value) Unsafe version ofpixel_type. -
nx_sampling
public static void nx_sampling(long struct, int value) Unsafe version ofx_sampling. -
ny_sampling
public static void ny_sampling(long struct, int value) Unsafe version ofy_sampling. -
np_linear
public static void np_linear(long struct, byte value) Unsafe version ofp_linear. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-