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.

  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$fourcc

      public static final MemoryLayout.PathElement PATH$fourcc
    • PATH$byte_order

      public static final MemoryLayout.PathElement PATH$byte_order
    • PATH$bits_per_pixel

      public static final MemoryLayout.PathElement PATH$bits_per_pixel
    • PATH$depth

      public static final MemoryLayout.PathElement PATH$depth
    • PATH$red_mask

      public static final MemoryLayout.PathElement PATH$red_mask
    • PATH$green_mask

      public static final MemoryLayout.PathElement PATH$green_mask
    • PATH$blue_mask

      public static final MemoryLayout.PathElement PATH$blue_mask
    • PATH$alpha_mask

      public static final MemoryLayout.PathElement PATH$alpha_mask
    • PATH$va_reserved

      public static final MemoryLayout.PathElement PATH$va_reserved
    • LAYOUT$fourcc

      public static final ValueLayout.OfInt LAYOUT$fourcc
    • LAYOUT$byte_order

      public static final ValueLayout.OfInt LAYOUT$byte_order
    • LAYOUT$bits_per_pixel

      public static final ValueLayout.OfInt LAYOUT$bits_per_pixel
    • LAYOUT$depth

      public static final ValueLayout.OfInt LAYOUT$depth
    • LAYOUT$red_mask

      public static final ValueLayout.OfInt LAYOUT$red_mask
    • LAYOUT$green_mask

      public static final ValueLayout.OfInt LAYOUT$green_mask
    • LAYOUT$blue_mask

      public static final ValueLayout.OfInt LAYOUT$blue_mask
    • LAYOUT$alpha_mask

      public static final ValueLayout.OfInt LAYOUT$alpha_mask
    • LAYOUT$va_reserved

      public static final SequenceLayout 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

      public VAImageFormatCLREF(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a VAImageFormatCLREF record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details