Record Class VAImageFormatCLREF
java.lang.Object
java.lang.Record
club.doki7.opencl.datatype.VAImageFormatCLREF
- All Implemented Interfaces:
IPointer
,IVAImageFormatCLREF
@ValueBasedCandidate
@UnsafeConstructor
public record VAImageFormatCLREF(@NotNull MemorySegment segment)
extends Record
implements IVAImageFormatCLREF
Represents a pointer to a VAImageFormat
structure in native memory.
Structure
typedef struct VAImageFormat {
uint32_t fourcc
;
uint32_t byte_order
;
uint32_t bits_per_pixel
;
uint32_t depth
;
uint32_t red_mask
;
uint32_t green_mask
;
uint32_t blue_mask
;
uint32_t alpha_mask
;
uint32_t[4] va_reserved
;
} VAImageFormat;
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final SequenceLayout
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVAImageFormatCLREF
(@NotNull MemorySegment segment) Creates an instance of aVAImageFormatCLREF
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VAImageFormatCLREF
static VAImageFormatCLREF.Ptr
int
alpha_mask
(int value) int
bits_per_pixel
(int value) int
blue_mask
(int value) int
byte_order
(int value) static VAImageFormatCLREF
clone
(Arena arena, VAImageFormatCLREF src) int
depth()
depth
(int value) final boolean
Indicates whether some other object is "equal to" this one.int
fourcc()
fourcc
(int value) int
green_mask
(int value) final int
hashCode()
Returns a hash code value for this object.int
red_mask()
red_mask
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.va_reserved
(IntPtr value) va_reserved
(@NotNull Consumer<IntPtr> consumer) @NotNull MemorySegment
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$fourcc
-
PATH$byte_order
-
PATH$bits_per_pixel
-
PATH$depth
-
PATH$red_mask
-
PATH$green_mask
-
PATH$blue_mask
-
PATH$alpha_mask
-
PATH$va_reserved
-
LAYOUT$fourcc
-
LAYOUT$byte_order
-
LAYOUT$bits_per_pixel
-
LAYOUT$depth
-
LAYOUT$red_mask
-
LAYOUT$green_mask
-
LAYOUT$blue_mask
-
LAYOUT$alpha_mask
-
LAYOUT$va_reserved
-
SIZE$fourcc
public static final long SIZE$fourcc -
SIZE$byte_order
public static final long SIZE$byte_order -
SIZE$bits_per_pixel
public static final long SIZE$bits_per_pixel -
SIZE$depth
public static final long SIZE$depth -
SIZE$red_mask
public static final long SIZE$red_mask -
SIZE$green_mask
public static final long SIZE$green_mask -
SIZE$blue_mask
public static final long SIZE$blue_mask -
SIZE$alpha_mask
public static final long SIZE$alpha_mask -
SIZE$va_reserved
public static final long SIZE$va_reserved -
OFFSET$fourcc
public static final long OFFSET$fourcc -
OFFSET$byte_order
public static final long OFFSET$byte_order -
OFFSET$bits_per_pixel
public static final long OFFSET$bits_per_pixel -
OFFSET$depth
public static final long OFFSET$depth -
OFFSET$red_mask
public static final long OFFSET$red_mask -
OFFSET$green_mask
public static final long OFFSET$green_mask -
OFFSET$blue_mask
public static final long OFFSET$blue_mask -
OFFSET$alpha_mask
public static final long OFFSET$alpha_mask -
OFFSET$va_reserved
public static final long OFFSET$va_reserved
-
-
Constructor Details
-
VAImageFormatCLREF
Creates an instance of aVAImageFormatCLREF
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
fourcc
-
fourcc
-
byte_order
-
byte_order
-
bits_per_pixel
-
bits_per_pixel
-
depth
-
depth
-
red_mask
-
red_mask
-
green_mask
-
green_mask
-
blue_mask
-
blue_mask
-
alpha_mask
-
alpha_mask
-
va_reserved
-
va_reserved
-
va_reserved
-
va_reservedRaw
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-