Class SpvcMslSamplerYcbcrConversion.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<SpvcMslSamplerYcbcrConversion>, NativeResource, Pointer
Enclosing class:
SpvcMslSamplerYcbcrConversion

public static class SpvcMslSamplerYcbcrConversion.Buffer extends StructBuffer<SpvcMslSamplerYcbcrConversion,SpvcMslSamplerYcbcrConversion.Buffer> implements NativeResource
An array of SpvcMslSamplerYcbcrConversion structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SpvcMslSamplerYcbcrConversion.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by SpvcMslSamplerYcbcrConversion.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • planes

      public int planes()
      Returns:
      the value of the planes field.
    • resolution

      public int resolution()
      Returns:
      the value of the resolution field.
    • chroma_filter

      public int chroma_filter()
      Returns:
      the value of the chroma_filter field.
    • x_chroma_offset

      public int x_chroma_offset()
      Returns:
      the value of the x_chroma_offset field.
    • y_chroma_offset

      public int y_chroma_offset()
      Returns:
      the value of the y_chroma_offset field.
    • swizzle

      public IntBuffer swizzle()
      Returns:
      a IntBuffer view of the swizzle field.
    • swizzle

      public int swizzle(int index)
      Returns:
      the value at the specified index of the swizzle field.
    • ycbcr_model

      public int ycbcr_model()
      Returns:
      the value of the ycbcr_model field.
    • ycbcr_range

      public int ycbcr_range()
      Returns:
      the value of the ycbcr_range field.
    • bpc

      public int bpc()
      Returns:
      the value of the bpc field.
    • planes

      public SpvcMslSamplerYcbcrConversion.Buffer planes(int value)
      Sets the specified value to the planes field.
    • resolution

      public SpvcMslSamplerYcbcrConversion.Buffer resolution(int value)
      Sets the specified value to the resolution field.
    • chroma_filter

      public SpvcMslSamplerYcbcrConversion.Buffer chroma_filter(int value)
      Sets the specified value to the chroma_filter field.
    • x_chroma_offset

      public SpvcMslSamplerYcbcrConversion.Buffer x_chroma_offset(int value)
      Sets the specified value to the x_chroma_offset field.
    • y_chroma_offset

      public SpvcMslSamplerYcbcrConversion.Buffer y_chroma_offset(int value)
      Sets the specified value to the y_chroma_offset field.
    • swizzle

      Copies the specified IntBuffer to the swizzle field.
    • swizzle

      public SpvcMslSamplerYcbcrConversion.Buffer swizzle(int index, int value)
      Sets the specified value at the specified index of the swizzle field.
    • ycbcr_model

      public SpvcMslSamplerYcbcrConversion.Buffer ycbcr_model(int value)
      Sets the specified value to the ycbcr_model field.
    • ycbcr_range

      public SpvcMslSamplerYcbcrConversion.Buffer ycbcr_range(int value)
      Sets the specified value to the ycbcr_range field.
    • bpc

      public SpvcMslSamplerYcbcrConversion.Buffer bpc(int value)
      Sets the specified value to the bpc field.