Class EXRHeader.Buffer

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.lang.Iterable<EXRHeader>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
    Enclosing class:
    EXRHeader

    public static class EXRHeader.Buffer
    extends org.lwjgl.system.StructBuffer<EXRHeader,EXRHeader.Buffer>
    implements org.lwjgl.system.NativeResource
    An array of EXRHeader structs.
    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.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 Detail

      • 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 java.nio.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.
      • 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.
      • pixel_types

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

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

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

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

        public java.lang.String nameString()
        Returns:
        the null-terminated string stored in the EXRHeader.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​(java.util.function.Consumer<EXRBox2i> consumer)
        Passes the data_window field to the specified Consumer.
      • display_window

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

        public EXRHeader.Buffer screen_window_center​(java.nio.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.
      • 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_channels

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