Package org.lwjgl.util.tinyexr
Class EXRHeader.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<EXRHeader,EXRHeader.Buffer>
-
- org.lwjgl.util.tinyexr.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 ofEXRHeaderstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EXRChannelInfo.Bufferchannels()EXRHeader.Bufferchannels(EXRChannelInfo.Buffer value)Sets the address of the specifiedEXRChannelInfo.Bufferto thechannelsfield.intchunk_count()EXRHeader.Bufferchunk_count(int value)Sets the specified value to thechunk_countfield.intcompression_type()EXRHeader.Buffercompression_type(int value)Sets the specified value to theEXRHeader.compression_type()field.EXRAttribute.Buffercustom_attributes()EXRHeader.Buffercustom_attributes(EXRAttribute.Buffer value)Sets the address of the specifiedEXRAttribute.Bufferto theEXRHeader.custom_attributes()field.EXRBox2idata_window()EXRHeader.Bufferdata_window(java.util.function.Consumer<EXRBox2i> consumer)Passes thedata_windowfield to the specifiedConsumer.EXRHeader.Bufferdata_window(EXRBox2i value)Copies the specifiedEXRBox2ito thedata_windowfield.EXRBox2idisplay_window()EXRHeader.Bufferdisplay_window(java.util.function.Consumer<EXRBox2i> consumer)Passes thedisplay_windowfield to the specifiedConsumer.EXRHeader.Bufferdisplay_window(EXRBox2i value)Copies the specifiedEXRBox2ito thedisplay_windowfield.intheader_len()EXRHeader.Bufferheader_len(int value)Sets the specified value to theheader_lenfield.intline_order()EXRHeader.Bufferline_order(int value)Sets the specified value to theline_orderfield.booleanlong_name()EXRHeader.Bufferlong_name(boolean value)Sets the specified value to thelong_namefield.booleanmultipart()EXRHeader.Buffermultipart(boolean value)Sets the specified value to themultipartfield.java.nio.ByteBuffername()EXRHeader.Buffername(java.nio.ByteBuffer value)Copies the specified encoded string to theEXRHeader.name()field.java.lang.StringnameString()booleannon_image()EXRHeader.Buffernon_image(boolean value)Sets the specified value to theEXRHeader.non_image()field.intnum_channels()EXRHeader.Buffernum_channels(int value)Sets the specified value to thenum_channelsfield.intnum_custom_attributes()EXRHeader.Buffernum_custom_attributes(int value)Sets the specified value to theEXRHeader.num_custom_attributes()field.floatpixel_aspect_ratio()EXRHeader.Bufferpixel_aspect_ratio(float value)Sets the specified value to thepixel_aspect_ratiofield.java.nio.IntBufferpixel_types()EXRHeader.Bufferpixel_types(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto theEXRHeader.pixel_types()field.java.nio.IntBufferrequested_pixel_types()EXRHeader.Bufferrequested_pixel_types(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto theEXRHeader.requested_pixel_types()field.java.nio.FloatBufferscreen_window_center()floatscreen_window_center(int index)EXRHeader.Bufferscreen_window_center(int index, float value)Sets the specified value at the specified index of thescreen_window_centerfield.EXRHeader.Bufferscreen_window_center(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto thescreen_window_centerfield.floatscreen_window_width()EXRHeader.Bufferscreen_window_width(float value)Sets the specified value to thescreen_window_widthfield.inttile_level_mode()EXRHeader.Buffertile_level_mode(int value)Sets the specified value to thetile_level_modefield.inttile_rounding_mode()EXRHeader.Buffertile_rounding_mode(int value)Sets the specified value to thetile_rounding_modefield.inttile_size_x()EXRHeader.Buffertile_size_x(int value)Sets the specified value to thetile_size_xfield.inttile_size_y()EXRHeader.Buffertile_size_y(int value)Sets the specified value to thetile_size_yfield.booleantiled()EXRHeader.Buffertiled(boolean value)Sets the specified value to thetiledfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newEXRHeader.Bufferinstance 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 byEXRHeader.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_ratiofield.
-
line_order
public int line_order()
- Returns:
- the value of the
line_orderfield.
-
display_window
public EXRBox2i display_window()
- Returns:
- a
EXRBox2iview of thedisplay_windowfield.
-
screen_window_center
public java.nio.FloatBuffer screen_window_center()
- Returns:
- a
FloatBufferview of thescreen_window_centerfield.
-
screen_window_center
public float screen_window_center(int index)
- Returns:
- the value at the specified index of the
screen_window_centerfield.
-
screen_window_width
public float screen_window_width()
- Returns:
- the value of the
screen_window_widthfield.
-
chunk_count
public int chunk_count()
- Returns:
- the value of the
chunk_countfield.
-
tiled
public boolean tiled()
- Returns:
- the value of the
tiledfield.
-
tile_size_x
public int tile_size_x()
- Returns:
- the value of the
tile_size_xfield.
-
tile_size_y
public int tile_size_y()
- Returns:
- the value of the
tile_size_yfield.
-
tile_level_mode
public int tile_level_mode()
- Returns:
- the value of the
tile_level_modefield.
-
tile_rounding_mode
public int tile_rounding_mode()
- Returns:
- the value of the
tile_rounding_modefield.
-
long_name
public boolean long_name()
- Returns:
- the value of the
long_namefield.
-
non_image
public boolean non_image()
- Returns:
- the value of the
EXRHeader.non_image()field.
-
multipart
public boolean multipart()
- Returns:
- the value of the
multipartfield.
-
header_len
public int header_len()
- Returns:
- the value of the
header_lenfield.
-
num_custom_attributes
public int num_custom_attributes()
- Returns:
- the value of the
EXRHeader.num_custom_attributes()field.
-
custom_attributes
@Nullable public EXRAttribute.Buffer custom_attributes()
- Returns:
- a
EXRAttribute.Bufferview of the struct array pointed to by theEXRHeader.custom_attributes()field.
-
channels
public EXRChannelInfo.Buffer channels()
- Returns:
- a
EXRChannelInfo.Bufferview of the struct array pointed to by thechannelsfield.
-
pixel_types
public java.nio.IntBuffer pixel_types()
- Returns:
- a
IntBufferview of the data pointed to by theEXRHeader.pixel_types()field.
-
num_channels
public int num_channels()
- Returns:
- the value of the
num_channelsfield.
-
compression_type
public int compression_type()
- Returns:
- the value of the
EXRHeader.compression_type()field.
-
requested_pixel_types
public java.nio.IntBuffer requested_pixel_types()
- Returns:
- a
IntBufferview of the data pointed to by theEXRHeader.requested_pixel_types()field.
-
name
public java.nio.ByteBuffer name()
- Returns:
- a
ByteBufferview of theEXRHeader.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 thepixel_aspect_ratiofield.
-
line_order
public EXRHeader.Buffer line_order(int value)
Sets the specified value to theline_orderfield.
-
data_window
public EXRHeader.Buffer data_window(EXRBox2i value)
Copies the specifiedEXRBox2ito thedata_windowfield.
-
data_window
public EXRHeader.Buffer data_window(java.util.function.Consumer<EXRBox2i> consumer)
Passes thedata_windowfield to the specifiedConsumer.
-
display_window
public EXRHeader.Buffer display_window(EXRBox2i value)
Copies the specifiedEXRBox2ito thedisplay_windowfield.
-
display_window
public EXRHeader.Buffer display_window(java.util.function.Consumer<EXRBox2i> consumer)
Passes thedisplay_windowfield to the specifiedConsumer.
-
screen_window_center
public EXRHeader.Buffer screen_window_center(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto thescreen_window_centerfield.
-
screen_window_center
public EXRHeader.Buffer screen_window_center(int index, float value)
Sets the specified value at the specified index of thescreen_window_centerfield.
-
screen_window_width
public EXRHeader.Buffer screen_window_width(float value)
Sets the specified value to thescreen_window_widthfield.
-
chunk_count
public EXRHeader.Buffer chunk_count(int value)
Sets the specified value to thechunk_countfield.
-
tiled
public EXRHeader.Buffer tiled(boolean value)
Sets the specified value to thetiledfield.
-
tile_size_x
public EXRHeader.Buffer tile_size_x(int value)
Sets the specified value to thetile_size_xfield.
-
tile_size_y
public EXRHeader.Buffer tile_size_y(int value)
Sets the specified value to thetile_size_yfield.
-
tile_level_mode
public EXRHeader.Buffer tile_level_mode(int value)
Sets the specified value to thetile_level_modefield.
-
tile_rounding_mode
public EXRHeader.Buffer tile_rounding_mode(int value)
Sets the specified value to thetile_rounding_modefield.
-
long_name
public EXRHeader.Buffer long_name(boolean value)
Sets the specified value to thelong_namefield.
-
non_image
public EXRHeader.Buffer non_image(boolean value)
Sets the specified value to theEXRHeader.non_image()field.
-
multipart
public EXRHeader.Buffer multipart(boolean value)
Sets the specified value to themultipartfield.
-
header_len
public EXRHeader.Buffer header_len(int value)
Sets the specified value to theheader_lenfield.
-
num_custom_attributes
public EXRHeader.Buffer num_custom_attributes(int value)
Sets the specified value to theEXRHeader.num_custom_attributes()field.
-
custom_attributes
public EXRHeader.Buffer custom_attributes(@Nullable EXRAttribute.Buffer value)
Sets the address of the specifiedEXRAttribute.Bufferto theEXRHeader.custom_attributes()field.
-
channels
public EXRHeader.Buffer channels(EXRChannelInfo.Buffer value)
Sets the address of the specifiedEXRChannelInfo.Bufferto thechannelsfield.
-
pixel_types
public EXRHeader.Buffer pixel_types(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto theEXRHeader.pixel_types()field.
-
num_channels
public EXRHeader.Buffer num_channels(int value)
Sets the specified value to thenum_channelsfield.
-
compression_type
public EXRHeader.Buffer compression_type(int value)
Sets the specified value to theEXRHeader.compression_type()field.
-
requested_pixel_types
public EXRHeader.Buffer requested_pixel_types(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto theEXRHeader.requested_pixel_types()field.
-
name
public EXRHeader.Buffer name(java.nio.ByteBuffer value)
Copies the specified encoded string to theEXRHeader.name()field.
-
-