Class ExrImageInfo.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<ExrImageInfo>, NativeResource, Pointer
Enclosing class:
ExrImageInfo

public static class ExrImageInfo.Buffer extends StructBuffer<ExrImageInfo, ExrImageInfo.Buffer> implements NativeResource
An array of ExrImageInfo structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new ExrImageInfo.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by ExrImageInfo.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • 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.Buffer width(@NativeType("int32_t") int value)
      Sets the specified value to the width field.
    • height

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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