Class StdVideoDecodeVP9PictureInfoFlags

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class StdVideoDecodeVP9PictureInfoFlags extends Struct<StdVideoDecodeVP9PictureInfoFlags> implements NativeResource

 struct StdVideoDecodeVP9PictureInfoFlags {
     uint32_t error_resilient_mode : 1;
     uint32_t intra_only : 1;
     uint32_t allow_high_precision_mv : 1;
     uint32_t refresh_frame_context : 1;
     uint32_t frame_parallel_decoding_mode : 1;
     uint32_t segmentation_enabled : 1;
     uint32_t show_frame : 1;
     uint32_t UsePrevFrameMvs : 1;
     uint32_t reserved : 24;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int BITFIELD0
      The struct member offsets.
    • BITFIELD1

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

    • StdVideoDecodeVP9PictureInfoFlags

      public StdVideoDecodeVP9PictureInfoFlags(ByteBuffer container)
      Creates a StdVideoDecodeVP9PictureInfoFlags 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<StdVideoDecodeVP9PictureInfoFlags>
    • error_resilient_mode

      public boolean error_resilient_mode()
      Returns:
      the value of the error_resilient_mode field.
    • intra_only

      public boolean intra_only()
      Returns:
      the value of the intra_only field.
    • allow_high_precision_mv

      public boolean allow_high_precision_mv()
      Returns:
      the value of the allow_high_precision_mv field.
    • refresh_frame_context

      public boolean refresh_frame_context()
      Returns:
      the value of the refresh_frame_context field.
    • frame_parallel_decoding_mode

      public boolean frame_parallel_decoding_mode()
      Returns:
      the value of the frame_parallel_decoding_mode field.
    • segmentation_enabled

      public boolean segmentation_enabled()
      Returns:
      the value of the segmentation_enabled field.
    • show_frame

      public boolean show_frame()
      Returns:
      the value of the show_frame field.
    • UsePrevFrameMvs

      public boolean UsePrevFrameMvs()
      Returns:
      the value of the UsePrevFrameMvs field.
    • error_resilient_mode

      public StdVideoDecodeVP9PictureInfoFlags error_resilient_mode(boolean value)
      Sets the specified value to the error_resilient_mode field.
    • intra_only

      public StdVideoDecodeVP9PictureInfoFlags intra_only(boolean value)
      Sets the specified value to the intra_only field.
    • allow_high_precision_mv

      public StdVideoDecodeVP9PictureInfoFlags allow_high_precision_mv(boolean value)
      Sets the specified value to the allow_high_precision_mv field.
    • refresh_frame_context

      public StdVideoDecodeVP9PictureInfoFlags refresh_frame_context(boolean value)
      Sets the specified value to the refresh_frame_context field.
    • frame_parallel_decoding_mode

      public StdVideoDecodeVP9PictureInfoFlags frame_parallel_decoding_mode(boolean value)
      Sets the specified value to the frame_parallel_decoding_mode field.
    • segmentation_enabled

      public StdVideoDecodeVP9PictureInfoFlags segmentation_enabled(boolean value)
      Sets the specified value to the segmentation_enabled field.
    • show_frame

      public StdVideoDecodeVP9PictureInfoFlags show_frame(boolean value)
      Sets the specified value to the show_frame field.
    • UsePrevFrameMvs

      public StdVideoDecodeVP9PictureInfoFlags UsePrevFrameMvs(boolean value)
      Sets the specified value to the UsePrevFrameMvs field.
    • set

      public StdVideoDecodeVP9PictureInfoFlags set(boolean error_resilient_mode, boolean intra_only, boolean allow_high_precision_mv, boolean refresh_frame_context, boolean frame_parallel_decoding_mode, boolean segmentation_enabled, boolean show_frame, boolean UsePrevFrameMvs)
      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 StdVideoDecodeVP9PictureInfoFlags malloc()
      Returns a new StdVideoDecodeVP9PictureInfoFlags instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static StdVideoDecodeVP9PictureInfoFlags.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new StdVideoDecodeVP9PictureInfoFlags.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
    • nbitfield0

      public static int nbitfield0(long struct)
    • nerror_resilient_mode

      public static int nerror_resilient_mode(long struct)
      Unsafe version of error_resilient_mode().
    • nintra_only

      public static int nintra_only(long struct)
      Unsafe version of intra_only().
    • nallow_high_precision_mv

      public static int nallow_high_precision_mv(long struct)
      Unsafe version of allow_high_precision_mv().
    • nrefresh_frame_context

      public static int nrefresh_frame_context(long struct)
      Unsafe version of refresh_frame_context().
    • nframe_parallel_decoding_mode

      public static int nframe_parallel_decoding_mode(long struct)
    • nsegmentation_enabled

      public static int nsegmentation_enabled(long struct)
      Unsafe version of segmentation_enabled().
    • nshow_frame

      public static int nshow_frame(long struct)
      Unsafe version of show_frame().
    • nUsePrevFrameMvs

      public static int nUsePrevFrameMvs(long struct)
      Unsafe version of UsePrevFrameMvs().
    • nbitfield1

      public static int nbitfield1(long struct)
    • nreserved

      public static int nreserved(long struct)
    • nbitfield0

      public static void nbitfield0(long struct, int value)
    • nerror_resilient_mode

      public static void nerror_resilient_mode(long struct, int value)
      Unsafe version of error_resilient_mode.
    • nintra_only

      public static void nintra_only(long struct, int value)
      Unsafe version of intra_only.
    • nallow_high_precision_mv

      public static void nallow_high_precision_mv(long struct, int value)
      Unsafe version of allow_high_precision_mv.
    • nrefresh_frame_context

      public static void nrefresh_frame_context(long struct, int value)
      Unsafe version of refresh_frame_context.
    • nframe_parallel_decoding_mode

      public static void nframe_parallel_decoding_mode(long struct, int value)
      Unsafe version of frame_parallel_decoding_mode.
    • nsegmentation_enabled

      public static void nsegmentation_enabled(long struct, int value)
      Unsafe version of segmentation_enabled.
    • nshow_frame

      public static void nshow_frame(long struct, int value)
      Unsafe version of show_frame.
    • nUsePrevFrameMvs

      public static void nUsePrevFrameMvs(long struct, int value)
      Unsafe version of UsePrevFrameMvs.
    • nbitfield1

      public static void nbitfield1(long struct, int value)
    • nreserved

      public static void nreserved(long struct, int value)