Class ExrFullImageRequest

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ExrFullImageRequest extends Struct<ExrFullImageRequest> implements NativeResource
struct ExrFullImageRequest {
    ExrPart part;
    ExrBuffer output;
    uint32_t channels_mask;
    uint32_t output_pixel_type;
    uint32_t output_layout;
    int32_t target_level;
}
  • 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.
    • 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.
    • TARGET_LEVEL

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

    • ExrFullImageRequest

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

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

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

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

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

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

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

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

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

      public ExrFullImageRequest target_level(@NativeType("int32_t") int value)
      Sets the specified value to the target_level field.
    • set

      public ExrFullImageRequest set(long part, ExrBuffer output, int channels_mask, int output_pixel_type, int output_layout, int target_level)
      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 ExrFullImageRequest malloc()
      Returns a new ExrFullImageRequest instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int ntarget_level(long struct)
      Unsafe version of target_level().
    • npart

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

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

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