Class ExrTileWrite

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ExrTileWrite extends Struct<ExrTileWrite> implements NativeResource
struct ExrTileWrite {
    ExrWriteImage image;
    int32_t tile_x;
    int32_t tile_y;
    int32_t level_x;
    int32_t level_y;
    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.
    • 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.
    • 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

    • ExrTileWrite

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

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

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

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

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

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

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

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

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

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

      public ExrTileWrite set(long image, int tile_x, int tile_y, int level_x, int level_y, ExrBuffer input, int input_layout, int input_pixel_type)
      Initializes this struct with the specified values.
    • set

      public ExrTileWrite set(ExrTileWrite src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static ExrTileWrite malloc()
      Returns a new ExrTileWrite instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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