Record Class StdVideoDecodeH264PictureInfoFlags

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.StdVideoDecodeH264PictureInfoFlags
All Implemented Interfaces:
IPointer, IStdVideoDecodeH264PictureInfoFlags

@ValueBasedCandidate @UnsafeConstructor public record StdVideoDecodeH264PictureInfoFlags(@NotNull MemorySegment segment) extends Record implements IStdVideoDecodeH264PictureInfoFlags

Represents a pointer to a StdVideoDecodeH264PictureInfoFlags structure in native memory.

Structure

typedef struct StdVideoDecodeH264PictureInfoFlags {
    uint32_t field_pic_flag : 1;
    uint32_t is_intra : 1;
    uint32_t IdrPicFlag : 1;
    uint32_t bottom_field_flag : 1;
    uint32_t is_reference : 1;
    uint32_t complementary_field_pair : 1;
} StdVideoDecodeH264PictureInfoFlags;

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$bitfield$field_pic_flag$complementary_field_pair

      public static final MemoryLayout.PathElement PATH$bitfield$field_pic_flag$complementary_field_pair
    • LAYOUT$bitfield$field_pic_flag$complementary_field_pair

      public static final ValueLayout.OfInt LAYOUT$bitfield$field_pic_flag$complementary_field_pair
    • OFFSET$bitfield$field_pic_flag$complementary_field_pair

      public static final long OFFSET$bitfield$field_pic_flag$complementary_field_pair
  • Constructor Details

    • StdVideoDecodeH264PictureInfoFlags

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

    • allocate

      public static StdVideoDecodeH264PictureInfoFlags allocate(Arena arena)
    • allocate

      public static StdVideoDecodeH264PictureInfoFlags.Ptr allocate(Arena arena, long count)
    • clone

    • field_pic_flag

      public boolean field_pic_flag()
    • field_pic_flag

      public StdVideoDecodeH264PictureInfoFlags field_pic_flag(boolean value)
    • is_intra

      public boolean is_intra()
    • is_intra

      public StdVideoDecodeH264PictureInfoFlags is_intra(boolean value)
    • IdrPicFlag

      public boolean IdrPicFlag()
    • IdrPicFlag

      public StdVideoDecodeH264PictureInfoFlags IdrPicFlag(boolean value)
    • bottom_field_flag

      public boolean bottom_field_flag()
    • bottom_field_flag

      public StdVideoDecodeH264PictureInfoFlags bottom_field_flag(boolean value)
    • is_reference

      public boolean is_reference()
    • is_reference

      public StdVideoDecodeH264PictureInfoFlags is_reference(boolean value)
    • complementary_field_pair

      public boolean complementary_field_pair()
    • complementary_field_pair

      public StdVideoDecodeH264PictureInfoFlags complementary_field_pair(boolean value)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • segment

      @NotNull public @NotNull MemorySegment segment()
      Returns the value of the segment record component.
      Specified by:
      segment in interface IPointer
      Returns:
      the value of the segment record component