Class EXRHeader.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new EXRHeader.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 EXRHeader.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

    • pixel_aspect_ratio

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

      public int line_order()
      Returns:
      the value of the line_order 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.
    • screen_window_center

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

      public float screen_window_center(int index)
      Returns:
      the value at the specified index of the screen_window_center field.
    • screen_window_width

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

      public int chunk_count()
      Returns:
      the value of the chunk_count field.
    • tiled

      public boolean tiled()
      Returns:
      the value of the tiled field.
    • tile_size_x

      public int tile_size_x()
      Returns:
      the value of the tile_size_x field.
    • tile_size_y

      public int tile_size_y()
      Returns:
      the value of the tile_size_y field.
    • tile_level_mode

      public int tile_level_mode()
      Returns:
      the value of the tile_level_mode field.
    • tile_rounding_mode

      public int tile_rounding_mode()
      Returns:
      the value of the tile_rounding_mode field.
    • long_name

      public boolean long_name()
      Returns:
      the value of the long_name field.
    • non_image

      public boolean non_image()
      Returns:
      the value of the non_image field.
    • multipart

      public boolean multipart()
      Returns:
      the value of the multipart field.
    • header_len

      public int header_len()
      Returns:
      the value of the header_len field.
    • num_custom_attributes

      public int num_custom_attributes()
      Returns:
      the value of the num_custom_attributes field.
    • custom_attributes

      public @Nullable EXRAttribute.Buffer custom_attributes()
      Returns:
      a EXRAttribute.Buffer view of the struct array pointed to by the custom_attributes field.
    • channels

      public EXRChannelInfo.Buffer channels()
      Returns:
      a EXRChannelInfo.Buffer view of the struct array pointed to by the channels field.
    • pixel_types

      public IntBuffer pixel_types()
      Returns:
      a IntBuffer view of the data pointed to by the pixel_types field.
    • num_channels

      public int num_channels()
      Returns:
      the value of the num_channels field.
    • compression_type

      public int compression_type()
      Returns:
      the value of the compression_type field.
    • requested_pixel_types

      public IntBuffer requested_pixel_types()
      Returns:
      a IntBuffer view of the data pointed to by the requested_pixel_types field.
    • name

      public ByteBuffer name()
      Returns:
      a ByteBuffer view of the name field.
    • nameString

      public String nameString()
      Returns:
      the null-terminated string stored in the name field.
    • pixel_aspect_ratio

      public EXRHeader.Buffer pixel_aspect_ratio(float value)
      Sets the specified value to the pixel_aspect_ratio field.
    • line_order

      public EXRHeader.Buffer line_order(int value)
      Sets the specified value to the line_order field.
    • data_window

      public EXRHeader.Buffer data_window(EXRBox2i value)
      Copies the specified EXRBox2i to the data_window field.
    • data_window

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

      public EXRHeader.Buffer display_window(EXRBox2i value)
      Copies the specified EXRBox2i to the display_window field.
    • display_window

      public EXRHeader.Buffer display_window(Consumer<EXRBox2i> consumer)
      Passes the display_window field to the specified Consumer.
    • screen_window_center

      public EXRHeader.Buffer screen_window_center(FloatBuffer value)
      Copies the specified FloatBuffer to the screen_window_center field.
    • screen_window_center

      public EXRHeader.Buffer screen_window_center(int index, float value)
      Sets the specified value at the specified index of the screen_window_center field.
    • screen_window_width

      public EXRHeader.Buffer screen_window_width(float value)
      Sets the specified value to the screen_window_width field.
    • chunk_count

      public EXRHeader.Buffer chunk_count(int value)
      Sets the specified value to the chunk_count field.
    • tiled

      public EXRHeader.Buffer tiled(boolean value)
      Sets the specified value to the tiled field.
    • tile_size_x

      public EXRHeader.Buffer tile_size_x(int value)
      Sets the specified value to the tile_size_x field.
    • tile_size_y

      public EXRHeader.Buffer tile_size_y(int value)
      Sets the specified value to the tile_size_y field.
    • tile_level_mode

      public EXRHeader.Buffer tile_level_mode(int value)
      Sets the specified value to the tile_level_mode field.
    • tile_rounding_mode

      public EXRHeader.Buffer tile_rounding_mode(int value)
      Sets the specified value to the tile_rounding_mode field.
    • long_name

      public EXRHeader.Buffer long_name(boolean value)
      Sets the specified value to the long_name field.
    • non_image

      public EXRHeader.Buffer non_image(boolean value)
      Sets the specified value to the non_image field.
    • multipart

      public EXRHeader.Buffer multipart(boolean value)
      Sets the specified value to the multipart field.
    • header_len

      public EXRHeader.Buffer header_len(int value)
      Sets the specified value to the header_len field.
    • num_custom_attributes

      public EXRHeader.Buffer num_custom_attributes(int value)
      Sets the specified value to the num_custom_attributes field.
    • custom_attributes

      public EXRHeader.Buffer custom_attributes(@Nullable EXRAttribute.Buffer value)
      Sets the address of the specified EXRAttribute.Buffer to the custom_attributes field.
    • channels

      public EXRHeader.Buffer channels(EXRChannelInfo.Buffer value)
      Sets the address of the specified EXRChannelInfo.Buffer to the channels field.
    • pixel_types

      public EXRHeader.Buffer pixel_types(IntBuffer value)
      Sets the address of the specified IntBuffer to the pixel_types field.
    • num_channels

      public EXRHeader.Buffer num_channels(int value)
      Sets the specified value to the num_channels field.
    • compression_type

      public EXRHeader.Buffer compression_type(int value)
      Sets the specified value to the compression_type field.
    • requested_pixel_types

      public EXRHeader.Buffer requested_pixel_types(IntBuffer value)
      Sets the address of the specified IntBuffer to the requested_pixel_types field.
    • name

      public EXRHeader.Buffer name(ByteBuffer value)
      Copies the specified encoded string to the name field.