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 recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final SequenceLayoutstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVAImageFormatCLREF(@NotNull MemorySegment segment) Creates an instance of aVAImageFormatCLREFrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VAImageFormatCLREFstatic VAImageFormatCLREF.Ptrintalpha_mask(int value) intbits_per_pixel(int value) intblue_mask(int value) intbyte_order(int value) static VAImageFormatCLREFclone(Arena arena, VAImageFormatCLREF src) intdepth()depth(int value) final booleanIndicates whether some other object is "equal to" this one.intfourcc()fourcc(int value) intgreen_mask(int value) final inthashCode()Returns a hash code value for this object.intred_mask()red_mask(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()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 aVAImageFormatCLREFrecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-