Class ExrDeepTileSampleInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ExrDeepTileSampleInfo extends Struct<ExrDeepTileSampleInfo> implements NativeResource
struct ExrDeepTileSampleInfo {
    int32_t tile_x;
    int32_t tile_y;
    int32_t level_x;
    int32_t level_y;
    int32_t width;
    int32_t height;
    uint64_t total_samples;
    uint32_t * sample_counts;
    uint64_t * sample_offsets;
}
  • Field Details

    • SIZEOF

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

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

      public static final int TILE_X
      The struct member offsets.
    • TILE_Y

      public static final int TILE_Y
      The struct member offsets.
    • LEVEL_X

      public static final int LEVEL_X
      The struct member offsets.
    • LEVEL_Y

      public static final int LEVEL_Y
      The struct member offsets.
    • WIDTH

      public static final int WIDTH
      The struct member offsets.
    • HEIGHT

      public static final int HEIGHT
      The struct member offsets.
    • TOTAL_SAMPLES

      public static final int TOTAL_SAMPLES
      The struct member offsets.
    • SAMPLE_COUNTS

      public static final int SAMPLE_COUNTS
      The struct member offsets.
    • SAMPLE_OFFSETS

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

    • ExrDeepTileSampleInfo

      public ExrDeepTileSampleInfo(ByteBuffer container)
      Creates a ExrDeepTileSampleInfo 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<ExrDeepTileSampleInfo>
    • tile_x

      @NativeType("int32_t") public int tile_x()
      Returns:
      the value of the tile_x field.
    • tile_y

      @NativeType("int32_t") public int tile_y()
      Returns:
      the value of the tile_y field.
    • level_x

      @NativeType("int32_t") public int level_x()
      Returns:
      the value of the level_x field.
    • level_y

      @NativeType("int32_t") public int level_y()
      Returns:
      the value of the level_y field.
    • width

      @NativeType("int32_t") public int width()
      Returns:
      the value of the width field.
    • height

      @NativeType("int32_t") public int height()
      Returns:
      the value of the height field.
    • total_samples

      @NativeType("uint64_t") public long total_samples()
      Returns:
      the value of the total_samples field.
    • sample_counts

      @NativeType("uint32_t *") public IntBuffer sample_counts()
      Returns:
      a IntBuffer view of the data pointed to by the sample_counts field.
    • sample_offsets

      @NativeType("uint64_t *") public LongBuffer sample_offsets()
      Returns:
      a LongBuffer view of the data pointed to by the sample_offsets field.
    • tile_x

      public ExrDeepTileSampleInfo tile_x(@NativeType("int32_t") int value)
      Sets the specified value to the tile_x field.
    • tile_y

      public ExrDeepTileSampleInfo tile_y(@NativeType("int32_t") int value)
      Sets the specified value to the tile_y field.
    • level_x

      public ExrDeepTileSampleInfo level_x(@NativeType("int32_t") int value)
      Sets the specified value to the level_x field.
    • level_y

      public ExrDeepTileSampleInfo level_y(@NativeType("int32_t") int value)
      Sets the specified value to the level_y field.
    • width

      public ExrDeepTileSampleInfo width(@NativeType("int32_t") int value)
      Sets the specified value to the width field.
    • height

      public ExrDeepTileSampleInfo height(@NativeType("int32_t") int value)
      Sets the specified value to the height field.
    • total_samples

      public ExrDeepTileSampleInfo total_samples(@NativeType("uint64_t") long value)
      Sets the specified value to the total_samples field.
    • sample_counts

      public ExrDeepTileSampleInfo sample_counts(@NativeType("uint32_t *") IntBuffer value)
      Sets the address of the specified IntBuffer to the sample_counts field.
    • sample_offsets

      public ExrDeepTileSampleInfo sample_offsets(@NativeType("uint64_t *") LongBuffer value)
      Sets the address of the specified LongBuffer to the sample_offsets field.
    • set

      public ExrDeepTileSampleInfo set(int tile_x, int tile_y, int level_x, int level_y, int width, int height, long total_samples, IntBuffer sample_counts, LongBuffer sample_offsets)
      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 ExrDeepTileSampleInfo malloc()
      Returns a new ExrDeepTileSampleInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int ntile_x(long struct)
      Unsafe version of tile_x().
    • ntile_y

      public static int ntile_y(long struct)
      Unsafe version of tile_y().
    • nlevel_x

      public static int nlevel_x(long struct)
      Unsafe version of level_x().
    • nlevel_y

      public static int nlevel_y(long struct)
      Unsafe version of level_y().
    • nwidth

      public static int nwidth(long struct)
      Unsafe version of width().
    • nheight

      public static int nheight(long struct)
      Unsafe version of height().
    • ntotal_samples

      public static long ntotal_samples(long struct)
      Unsafe version of total_samples().
    • nsample_counts

      public static IntBuffer nsample_counts(long struct)
      Unsafe version of sample_counts.
    • nsample_offsets

      public static LongBuffer nsample_offsets(long struct)
      Unsafe version of sample_offsets.
    • ntile_x

      public static void ntile_x(long struct, int value)
      Unsafe version of tile_x.
    • ntile_y

      public static void ntile_y(long struct, int value)
      Unsafe version of tile_y.
    • nlevel_x

      public static void nlevel_x(long struct, int value)
      Unsafe version of level_x.
    • nlevel_y

      public static void nlevel_y(long struct, int value)
      Unsafe version of level_y.
    • nwidth

      public static void nwidth(long struct, int value)
      Unsafe version of width.
    • nheight

      public static void nheight(long struct, int value)
      Unsafe version of height.
    • ntotal_samples

      public static void ntotal_samples(long struct, long value)
      Unsafe version of total_samples.
    • nsample_counts

      public static void nsample_counts(long struct, IntBuffer value)
      Unsafe version of sample_counts.
    • nsample_offsets

      public static void nsample_offsets(long struct, LongBuffer value)
      Unsafe version of sample_offsets.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate