Class ExrTileRequest

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ExrTileRequest extends Struct<ExrTileRequest> implements NativeResource
struct ExrTileRequest {
    ExrPart part;
    int32_t tile_x;
    int32_t tile_y;
    int32_t level_x;
    int32_t level_y;
    ExrBuffer output;
    uint32_t channels_mask;
    uint32_t output_pixel_type;
    uint32_t output_layout;
}
  • Field Details

    • SIZEOF

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

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

      public static final int PART
      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.
    • OUTPUT

      public static final int OUTPUT
      The struct member offsets.
    • CHANNELS_MASK

      public static final int CHANNELS_MASK
      The struct member offsets.
    • OUTPUT_PIXEL_TYPE

      public static final int OUTPUT_PIXEL_TYPE
      The struct member offsets.
    • OUTPUT_LAYOUT

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

    • ExrTileRequest

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

      @NativeType("ExrPart") public long part()
      Returns:
      the value of the part 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.
    • output

      public ExrBuffer output()
      Returns:
      a ExrBuffer view of the output field.
    • channels_mask

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

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

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

      public ExrTileRequest part(@NativeType("ExrPart") long value)
      Sets the specified value to the part field.
    • tile_x

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

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

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

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

      public ExrTileRequest output(ExrBuffer value)
      Copies the specified ExrBuffer to the output field.
    • output

      public ExrTileRequest output(Consumer<ExrBuffer> consumer)
      Passes the output field to the specified Consumer.
    • channels_mask

      public ExrTileRequest channels_mask(@NativeType("uint32_t") int value)
      Sets the specified value to the channels_mask field.
    • output_pixel_type

      public ExrTileRequest output_pixel_type(@NativeType("uint32_t") int value)
      Sets the specified value to the output_pixel_type field.
    • output_layout

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

      public ExrTileRequest set(long part, int tile_x, int tile_y, int level_x, int level_y, ExrBuffer output, int channels_mask, int output_pixel_type, int output_layout)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long npart(long struct)
      Unsafe version of part().
    • 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().
    • noutput

      public static ExrBuffer noutput(long struct)
      Unsafe version of output().
    • nchannels_mask

      public static int nchannels_mask(long struct)
      Unsafe version of channels_mask().
    • noutput_pixel_type

      public static int noutput_pixel_type(long struct)
      Unsafe version of output_pixel_type().
    • noutput_layout

      public static int noutput_layout(long struct)
      Unsafe version of output_layout().
    • npart

      public static void npart(long struct, long value)
      Unsafe version of part.
    • 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.
    • noutput

      public static void noutput(long struct, ExrBuffer value)
      Unsafe version of output.
    • nchannels_mask

      public static void nchannels_mask(long struct, int value)
      Unsafe version of channels_mask.
    • noutput_pixel_type

      public static void noutput_pixel_type(long struct, int value)
      Unsafe version of output_pixel_type.
    • noutput_layout

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

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