Class ExrDeepSampleInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ExrDeepSampleInfo extends Struct<ExrDeepSampleInfo> implements NativeResource
struct ExrDeepSampleInfo {
    int32_t y_start;
    int32_t num_lines;
    int32_t width;
    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.
    • Y_START

      public static final int Y_START
      The struct member offsets.
    • NUM_LINES

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

      public static final int WIDTH
      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

    • ExrDeepSampleInfo

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

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

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

      @NativeType("int32_t") public int width()
      Returns:
      the value of the width 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.
    • y_start

      public ExrDeepSampleInfo y_start(@NativeType("int32_t") int value)
      Sets the specified value to the y_start field.
    • num_lines

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

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

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

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

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

      public ExrDeepSampleInfo set(int y_start, int num_lines, int width, 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 ExrDeepSampleInfo malloc()
      Returns a new ExrDeepSampleInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int ny_start(long struct)
      Unsafe version of y_start().
    • nnum_lines

      public static int nnum_lines(long struct)
      Unsafe version of num_lines().
    • nwidth

      public static int nwidth(long struct)
      Unsafe version of width().
    • 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.
    • ny_start

      public static void ny_start(long struct, int value)
      Unsafe version of y_start.
    • nnum_lines

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

      public static void nwidth(long struct, int value)
      Unsafe version of width.
    • 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