Class StdVideoAV1TimingInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<StdVideoAV1TimingInfo>
org.lwjgl.vulkan.video.StdVideoAV1TimingInfo
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class StdVideoAV1TimingInfo extends org.lwjgl.system.Struct<StdVideoAV1TimingInfo> implements org.lwjgl.system.NativeResource

Layout


 struct StdVideoAV1TimingInfo {
     StdVideoAV1TimingInfoFlags flags;
     uint32_t num_units_in_display_tick;
     uint32_t time_scale;
     uint32_t num_ticks_per_picture_minus_1;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • NUM_UNITS_IN_DISPLAY_TICK

      public static final int NUM_UNITS_IN_DISPLAY_TICK
      The struct member offsets.
    • TIME_SCALE

      public static final int TIME_SCALE
      The struct member offsets.
    • NUM_TICKS_PER_PICTURE_MINUS_1

      public static final int NUM_TICKS_PER_PICTURE_MINUS_1
      The struct member offsets.
  • Constructor Details

    • StdVideoAV1TimingInfo

      public StdVideoAV1TimingInfo(ByteBuffer container)
      Creates a StdVideoAV1TimingInfo instance at the current position of the specified ByteBuffer container. 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<StdVideoAV1TimingInfo>
    • flags

      Returns:
      a StdVideoAV1TimingInfoFlags view of the flags field.
    • num_units_in_display_tick

      public int num_units_in_display_tick()
      Returns:
      the value of the num_units_in_display_tick field.
    • time_scale

      public int time_scale()
      Returns:
      the value of the time_scale field.
    • num_ticks_per_picture_minus_1

      public int num_ticks_per_picture_minus_1()
      Returns:
      the value of the num_ticks_per_picture_minus_1 field.
    • flags

      Copies the specified StdVideoAV1TimingInfoFlags to the flags field.
    • flags

      Passes the flags field to the specified Consumer.
    • num_units_in_display_tick

      public StdVideoAV1TimingInfo num_units_in_display_tick(int value)
      Sets the specified value to the num_units_in_display_tick field.
    • time_scale

      public StdVideoAV1TimingInfo time_scale(int value)
      Sets the specified value to the time_scale field.
    • num_ticks_per_picture_minus_1

      public StdVideoAV1TimingInfo num_ticks_per_picture_minus_1(int value)
      Sets the specified value to the num_ticks_per_picture_minus_1 field.
    • set

      public StdVideoAV1TimingInfo set(StdVideoAV1TimingInfoFlags flags, int num_units_in_display_tick, int time_scale, int num_ticks_per_picture_minus_1)
      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

      public static StdVideoAV1TimingInfo malloc()
      Returns a new StdVideoAV1TimingInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static StdVideoAV1TimingInfo calloc()
      Returns a new StdVideoAV1TimingInfo instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static StdVideoAV1TimingInfo create()
      Returns a new StdVideoAV1TimingInfo instance allocated with BufferUtils.
    • create

      public static StdVideoAV1TimingInfo create(long address)
      Returns a new StdVideoAV1TimingInfo instance for the specified memory address.
    • createSafe

      public static @Nullable StdVideoAV1TimingInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static StdVideoAV1TimingInfo.Buffer malloc(int capacity)
      Returns a new StdVideoAV1TimingInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static StdVideoAV1TimingInfo.Buffer calloc(int capacity)
      Returns a new StdVideoAV1TimingInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static StdVideoAV1TimingInfo.Buffer create(int capacity)
      Returns a new StdVideoAV1TimingInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static StdVideoAV1TimingInfo.Buffer create(long address, int capacity)
      Create a StdVideoAV1TimingInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable StdVideoAV1TimingInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static StdVideoAV1TimingInfo malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new StdVideoAV1TimingInfo instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static StdVideoAV1TimingInfo calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new StdVideoAV1TimingInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static StdVideoAV1TimingInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new StdVideoAV1TimingInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static StdVideoAV1TimingInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new StdVideoAV1TimingInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nflags

      public static StdVideoAV1TimingInfoFlags nflags(long struct)
      Unsafe version of flags().
    • nnum_units_in_display_tick

      public static int nnum_units_in_display_tick(long struct)
      Unsafe version of num_units_in_display_tick().
    • ntime_scale

      public static int ntime_scale(long struct)
      Unsafe version of time_scale().
    • nnum_ticks_per_picture_minus_1

      public static int nnum_ticks_per_picture_minus_1(long struct)
    • nflags

      public static void nflags(long struct, StdVideoAV1TimingInfoFlags value)
      Unsafe version of flags.
    • nnum_units_in_display_tick

      public static void nnum_units_in_display_tick(long struct, int value)
      Unsafe version of num_units_in_display_tick.
    • ntime_scale

      public static void ntime_scale(long struct, int value)
      Unsafe version of time_scale.
    • nnum_ticks_per_picture_minus_1

      public static void nnum_ticks_per_picture_minus_1(long struct, int value)