Class ExrDeepScanlineWrite

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ExrDeepScanlineWrite extends Struct<ExrDeepScanlineWrite> implements NativeResource
struct ExrDeepScanlineWrite {
    ExrWriteImage image;
    int32_t y_start;
    int32_t num_lines;
    int32_t width;
    uint32_t const * sample_counts;
    uint64_t total_samples;
    ExrBuffer input;
    uint32_t input_layout;
    uint32_t input_pixel_type;
}
  • Field Details

    • SIZEOF

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

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

      public static final int IMAGE
      The struct member offsets.
    • 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.
    • SAMPLE_COUNTS

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

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

      public static final int INPUT
      The struct member offsets.
    • INPUT_LAYOUT

      public static final int INPUT_LAYOUT
      The struct member offsets.
    • INPUT_PIXEL_TYPE

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

    • ExrDeepScanlineWrite

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

      @NativeType("ExrWriteImage") public long image()
      Returns:
      the value of the image field.
    • 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.
    • sample_counts

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

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

      public ExrBuffer input()
      Returns:
      a ExrBuffer view of the input field.
    • input_layout

      @NativeType("uint32_t") public int input_layout()
      Returns:
      the value of the input_layout field.
    • input_pixel_type

      @NativeType("uint32_t") public int input_pixel_type()
      Returns:
      the value of the input_pixel_type field.
    • image

      public ExrDeepScanlineWrite image(@NativeType("ExrWriteImage") long value)
      Sets the specified value to the image field.
    • y_start

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

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

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

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

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

      public ExrDeepScanlineWrite input(ExrBuffer value)
      Copies the specified ExrBuffer to the input field.
    • input

      public ExrDeepScanlineWrite input(Consumer<ExrBuffer> consumer)
      Passes the input field to the specified Consumer.
    • input_layout

      public ExrDeepScanlineWrite input_layout(@NativeType("uint32_t") int value)
      Sets the specified value to the input_layout field.
    • input_pixel_type

      public ExrDeepScanlineWrite input_pixel_type(@NativeType("uint32_t") int value)
      Sets the specified value to the input_pixel_type field.
    • set

      public ExrDeepScanlineWrite set(long image, int y_start, int num_lines, int width, IntBuffer sample_counts, long total_samples, ExrBuffer input, int input_layout, int input_pixel_type)
      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 ExrDeepScanlineWrite malloc()
      Returns a new ExrDeepScanlineWrite instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nimage(long struct)
      Unsafe version of image().
    • 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().
    • nsample_counts

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

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

      public static ExrBuffer ninput(long struct)
      Unsafe version of input().
    • ninput_layout

      public static int ninput_layout(long struct)
      Unsafe version of input_layout().
    • ninput_pixel_type

      public static int ninput_pixel_type(long struct)
      Unsafe version of input_pixel_type().
    • nimage

      public static void nimage(long struct, long value)
      Unsafe version of image.
    • 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.
    • nsample_counts

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

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

      public static void ninput(long struct, ExrBuffer value)
      Unsafe version of input.
    • ninput_layout

      public static void ninput_layout(long struct, int value)
      Unsafe version of input_layout.
    • ninput_pixel_type

      public static void ninput_pixel_type(long struct, int value)
      Unsafe version of input_pixel_type.
    • validate

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