Class ExrImageInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ExrImageInfo extends Struct<ExrImageInfo> implements NativeResource
struct ExrImageInfo {
    int32_t width;
    int32_t height;
    ExrBox2i data_window;
    ExrBox2i display_window;
    uint32_t num_channels;
    uint32_t num_parts;
    uint32_t compression;
    uint32_t flags;
    uint32_t tile_size_x;
    uint32_t tile_size_y;
    uint32_t num_x_levels;
    uint32_t num_y_levels;
    float pixel_aspect_ratio;
    ExrVec2f screen_window_center;
    float screen_window_width;
}
  • Field Details

    • SIZEOF

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

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

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

      public static final int HEIGHT
      The struct member offsets.
    • DATA_WINDOW

      public static final int DATA_WINDOW
      The struct member offsets.
    • DISPLAY_WINDOW

      public static final int DISPLAY_WINDOW
      The struct member offsets.
    • NUM_CHANNELS

      public static final int NUM_CHANNELS
      The struct member offsets.
    • NUM_PARTS

      public static final int NUM_PARTS
      The struct member offsets.
    • COMPRESSION

      public static final int COMPRESSION
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • TILE_SIZE_X

      public static final int TILE_SIZE_X
      The struct member offsets.
    • TILE_SIZE_Y

      public static final int TILE_SIZE_Y
      The struct member offsets.
    • NUM_X_LEVELS

      public static final int NUM_X_LEVELS
      The struct member offsets.
    • NUM_Y_LEVELS

      public static final int NUM_Y_LEVELS
      The struct member offsets.
    • PIXEL_ASPECT_RATIO

      public static final int PIXEL_ASPECT_RATIO
      The struct member offsets.
    • SCREEN_WINDOW_CENTER

      public static final int SCREEN_WINDOW_CENTER
      The struct member offsets.
    • SCREEN_WINDOW_WIDTH

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

    • ExrImageInfo

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

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

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

      public ExrBox2i data_window()
      Returns:
      a ExrBox2i view of the data_window field.
    • display_window

      public ExrBox2i display_window()
      Returns:
      a ExrBox2i view of the display_window field.
    • num_channels

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

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

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

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

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

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

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

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

      public float pixel_aspect_ratio()
      Returns:
      the value of the pixel_aspect_ratio field.
    • screen_window_center

      public ExrVec2f screen_window_center()
      Returns:
      a ExrVec2f view of the screen_window_center field.
    • screen_window_width

      public float screen_window_width()
      Returns:
      the value of the screen_window_width field.
    • width

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

      public ExrImageInfo height(@NativeType("int32_t") int value)
      Sets the specified value to the height field.
    • data_window

      public ExrImageInfo data_window(ExrBox2i value)
      Copies the specified ExrBox2i to the data_window field.
    • data_window

      public ExrImageInfo data_window(Consumer<ExrBox2i> consumer)
      Passes the data_window field to the specified Consumer.
    • display_window

      public ExrImageInfo display_window(ExrBox2i value)
      Copies the specified ExrBox2i to the display_window field.
    • display_window

      public ExrImageInfo display_window(Consumer<ExrBox2i> consumer)
      Passes the display_window field to the specified Consumer.
    • num_channels

      public ExrImageInfo num_channels(@NativeType("uint32_t") int value)
      Sets the specified value to the num_channels field.
    • num_parts

      public ExrImageInfo num_parts(@NativeType("uint32_t") int value)
      Sets the specified value to the num_parts field.
    • compression

      public ExrImageInfo compression(@NativeType("uint32_t") int value)
      Sets the specified value to the compression field.
    • flags

      public ExrImageInfo flags(@NativeType("uint32_t") int value)
      Sets the specified value to the flags field.
    • tile_size_x

      public ExrImageInfo tile_size_x(@NativeType("uint32_t") int value)
      Sets the specified value to the tile_size_x field.
    • tile_size_y

      public ExrImageInfo tile_size_y(@NativeType("uint32_t") int value)
      Sets the specified value to the tile_size_y field.
    • num_x_levels

      public ExrImageInfo num_x_levels(@NativeType("uint32_t") int value)
      Sets the specified value to the num_x_levels field.
    • num_y_levels

      public ExrImageInfo num_y_levels(@NativeType("uint32_t") int value)
      Sets the specified value to the num_y_levels field.
    • pixel_aspect_ratio

      public ExrImageInfo pixel_aspect_ratio(float value)
      Sets the specified value to the pixel_aspect_ratio field.
    • screen_window_center

      public ExrImageInfo screen_window_center(ExrVec2f value)
      Copies the specified ExrVec2f to the screen_window_center field.
    • screen_window_center

      public ExrImageInfo screen_window_center(Consumer<ExrVec2f> consumer)
      Passes the screen_window_center field to the specified Consumer.
    • screen_window_width

      public ExrImageInfo screen_window_width(float value)
      Sets the specified value to the screen_window_width field.
    • set

      public ExrImageInfo set(int width, int height, ExrBox2i data_window, ExrBox2i display_window, int num_channels, int num_parts, int compression, int flags, int tile_size_x, int tile_size_y, int num_x_levels, int num_y_levels, float pixel_aspect_ratio, ExrVec2f screen_window_center, float screen_window_width)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nwidth(long struct)
      Unsafe version of width().
    • nheight

      public static int nheight(long struct)
      Unsafe version of height().
    • ndata_window

      public static ExrBox2i ndata_window(long struct)
      Unsafe version of data_window().
    • ndisplay_window

      public static ExrBox2i ndisplay_window(long struct)
      Unsafe version of display_window().
    • nnum_channels

      public static int nnum_channels(long struct)
      Unsafe version of num_channels().
    • nnum_parts

      public static int nnum_parts(long struct)
      Unsafe version of num_parts().
    • ncompression

      public static int ncompression(long struct)
      Unsafe version of compression().
    • nflags

      public static int nflags(long struct)
      Unsafe version of flags().
    • ntile_size_x

      public static int ntile_size_x(long struct)
      Unsafe version of tile_size_x().
    • ntile_size_y

      public static int ntile_size_y(long struct)
      Unsafe version of tile_size_y().
    • nnum_x_levels

      public static int nnum_x_levels(long struct)
      Unsafe version of num_x_levels().
    • nnum_y_levels

      public static int nnum_y_levels(long struct)
      Unsafe version of num_y_levels().
    • npixel_aspect_ratio

      public static float npixel_aspect_ratio(long struct)
      Unsafe version of pixel_aspect_ratio().
    • nscreen_window_center

      public static ExrVec2f nscreen_window_center(long struct)
      Unsafe version of screen_window_center().
    • nscreen_window_width

      public static float nscreen_window_width(long struct)
      Unsafe version of screen_window_width().
    • nwidth

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

      public static void nheight(long struct, int value)
      Unsafe version of height.
    • ndata_window

      public static void ndata_window(long struct, ExrBox2i value)
      Unsafe version of data_window.
    • ndisplay_window

      public static void ndisplay_window(long struct, ExrBox2i value)
      Unsafe version of display_window.
    • nnum_channels

      public static void nnum_channels(long struct, int value)
      Unsafe version of num_channels.
    • nnum_parts

      public static void nnum_parts(long struct, int value)
      Unsafe version of num_parts.
    • ncompression

      public static void ncompression(long struct, int value)
      Unsafe version of compression.
    • nflags

      public static void nflags(long struct, int value)
      Unsafe version of flags.
    • ntile_size_x

      public static void ntile_size_x(long struct, int value)
      Unsafe version of tile_size_x.
    • ntile_size_y

      public static void ntile_size_y(long struct, int value)
      Unsafe version of tile_size_y.
    • nnum_x_levels

      public static void nnum_x_levels(long struct, int value)
      Unsafe version of num_x_levels.
    • nnum_y_levels

      public static void nnum_y_levels(long struct, int value)
      Unsafe version of num_y_levels.
    • npixel_aspect_ratio

      public static void npixel_aspect_ratio(long struct, float value)
      Unsafe version of pixel_aspect_ratio.
    • nscreen_window_center

      public static void nscreen_window_center(long struct, ExrVec2f value)
      Unsafe version of screen_window_center.
    • nscreen_window_width

      public static void nscreen_window_width(long struct, float value)
      Unsafe version of screen_window_width.