Class SpvcMslSamplerYcbcrConversion

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SpvcMslSamplerYcbcrConversion extends Struct<SpvcMslSamplerYcbcrConversion> implements NativeResource

 struct spvc_msl_sampler_ycbcr_conversion {
     unsigned int planes;
     spvc_msl_format_resolution resolution;
     spvc_msl_sampler_filter chroma_filter;
     spvc_msl_chroma_location x_chroma_offset;
     spvc_msl_chroma_location y_chroma_offset;
     spvc_msl_component_swizzle swizzle[4];
     spvc_msl_sampler_ycbcr_model_conversion ycbcr_model;
     spvc_msl_sampler_ycbcr_range ycbcr_range;
     unsigned int bpc;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PLANES
      The struct member offsets.
    • RESOLUTION

      public static final int RESOLUTION
      The struct member offsets.
    • CHROMA_FILTER

      public static final int CHROMA_FILTER
      The struct member offsets.
    • X_CHROMA_OFFSET

      public static final int X_CHROMA_OFFSET
      The struct member offsets.
    • Y_CHROMA_OFFSET

      public static final int Y_CHROMA_OFFSET
      The struct member offsets.
    • SWIZZLE

      public static final int SWIZZLE
      The struct member offsets.
    • YCBCR_MODEL

      public static final int YCBCR_MODEL
      The struct member offsets.
    • YCBCR_RANGE

      public static final int YCBCR_RANGE
      The struct member offsets.
    • BPC

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

    • SpvcMslSamplerYcbcrConversion

      public SpvcMslSamplerYcbcrConversion(ByteBuffer container)
      Creates a SpvcMslSamplerYcbcrConversion 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<SpvcMslSamplerYcbcrConversion>
    • 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 planes(int value)
      Sets the specified value to the planes field.
    • resolution

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

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

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

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

      public SpvcMslSamplerYcbcrConversion swizzle(IntBuffer value)
      Copies the specified IntBuffer to the swizzle field.
    • swizzle

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

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

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

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

      public SpvcMslSamplerYcbcrConversion set(int planes, int resolution, int chroma_filter, int x_chroma_offset, int y_chroma_offset, IntBuffer swizzle, int ycbcr_model, int ycbcr_range, int bpc)
      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 SpvcMslSamplerYcbcrConversion malloc()
      Returns a new SpvcMslSamplerYcbcrConversion instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nplanes(long struct)
      Unsafe version of planes().
    • nresolution

      public static int nresolution(long struct)
      Unsafe version of resolution().
    • nchroma_filter

      public static int nchroma_filter(long struct)
      Unsafe version of chroma_filter().
    • nx_chroma_offset

      public static int nx_chroma_offset(long struct)
      Unsafe version of x_chroma_offset().
    • ny_chroma_offset

      public static int ny_chroma_offset(long struct)
      Unsafe version of y_chroma_offset().
    • nswizzle

      public static IntBuffer nswizzle(long struct)
      Unsafe version of swizzle().
    • nswizzle

      public static int nswizzle(long struct, int index)
      Unsafe version of swizzle.
    • nycbcr_model

      public static int nycbcr_model(long struct)
      Unsafe version of ycbcr_model().
    • nycbcr_range

      public static int nycbcr_range(long struct)
      Unsafe version of ycbcr_range().
    • nbpc

      public static int nbpc(long struct)
      Unsafe version of bpc().
    • nplanes

      public static void nplanes(long struct, int value)
      Unsafe version of planes.
    • nresolution

      public static void nresolution(long struct, int value)
      Unsafe version of resolution.
    • nchroma_filter

      public static void nchroma_filter(long struct, int value)
      Unsafe version of chroma_filter.
    • nx_chroma_offset

      public static void nx_chroma_offset(long struct, int value)
      Unsafe version of x_chroma_offset.
    • ny_chroma_offset

      public static void ny_chroma_offset(long struct, int value)
      Unsafe version of y_chroma_offset.
    • nswizzle

      public static void nswizzle(long struct, IntBuffer value)
      Unsafe version of swizzle.
    • nswizzle

      public static void nswizzle(long struct, int index, int value)
      Unsafe version of swizzle.
    • nycbcr_model

      public static void nycbcr_model(long struct, int value)
      Unsafe version of ycbcr_model.
    • nycbcr_range

      public static void nycbcr_range(long struct, int value)
      Unsafe version of ycbcr_range.
    • nbpc

      public static void nbpc(long struct, int value)
      Unsafe version of bpc.