Class StdVideoAV1Segmentation.Buffer

All Implemented Interfaces:
Addressable
Enclosing class:
StdVideoAV1Segmentation

public static final class StdVideoAV1Segmentation.Buffer extends StdVideoAV1Segmentation
  • Constructor Details

    • Buffer

      public Buffer(MemorySegment segment, long elementCount)
      Creates StdVideoAV1Segmentation.Buffer with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count
  • Method Details

    • estimateCount

      public long estimateCount()
      Description copied from class: GroupType
      Estimates the element count of this group type buffer.
      Overrides:
      estimateCount in class GroupType
      Returns:
      the estimated element count of the group type buffer
    • asSlice

      public StdVideoAV1Segmentation asSlice(long index)
      Creates a slice of StdVideoAV1Segmentation.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of StdVideoAV1Segmentation
    • asSlice

      public StdVideoAV1Segmentation.Buffer asSlice(long index, long count)
      Creates a slice of StdVideoAV1Segmentation.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of StdVideoAV1Segmentation
    • FeatureEnabledAt

      public MemorySegment FeatureEnabledAt(long index)
      Returns FeatureEnabled at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      FeatureEnabled at the given index
    • FeatureEnabledAt

      public byte FeatureEnabledAt(long index, long index0)
      Returns FeatureEnabled at the given index.
      Parameters:
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      Returns:
      FeatureEnabled at the given index
    • FeatureEnabledAt

      public StdVideoAV1Segmentation.Buffer FeatureEnabledAt(long index, MemorySegment value)
      Sets FeatureEnabled with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • FeatureEnabledAt

      public StdVideoAV1Segmentation.Buffer FeatureEnabledAt(long index, long index0, byte value)
      Sets FeatureEnabled with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      value - the value
      Returns:
      this
    • FeatureDataAt

      public MemorySegment FeatureDataAt(long index)
      Returns FeatureData at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      FeatureData at the given index
    • FeatureDataAt

      public short FeatureDataAt(long index, long index0, long index1)
      Returns FeatureData at the given index.
      Parameters:
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      index1 - the Index 1 of the array
      Returns:
      FeatureData at the given index
    • FeatureDataAt

      public StdVideoAV1Segmentation.Buffer FeatureDataAt(long index, MemorySegment value)
      Sets FeatureData with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • FeatureDataAt

      public StdVideoAV1Segmentation.Buffer FeatureDataAt(long index, long index0, long index1, short value)
      Sets FeatureData with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      index1 - the Index 1 of the array
      value - the value
      Returns:
      this