Package org.lwjgl.util.tinyexr
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newEXRHeader.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionchannels()channels(EXRChannelInfo.Buffer value) Sets the address of the specifiedEXRChannelInfo.Bufferto thechannelsfield.intchunk_count(int value) Sets the specified value to thechunk_countfield.intcompression_type(int value) Sets the specified value to thecompression_typefield.@Nullable EXRAttribute.Buffercustom_attributes(@Nullable EXRAttribute.Buffer value) Sets the address of the specifiedEXRAttribute.Bufferto thecustom_attributesfield.data_window(Consumer<EXRBox2i> consumer) Passes thedata_windowfield to the specifiedConsumer.data_window(EXRBox2i value) Copies the specifiedEXRBox2ito thedata_windowfield.display_window(Consumer<EXRBox2i> consumer) Passes thedisplay_windowfield to the specifiedConsumer.display_window(EXRBox2i value) Copies the specifiedEXRBox2ito thedisplay_windowfield.intheader_len(int value) Sets the specified value to theheader_lenfield.intline_order(int value) Sets the specified value to theline_orderfield.booleanlong_name(boolean value) Sets the specified value to thelong_namefield.booleanmultipart(boolean value) Sets the specified value to themultipartfield.name()name(ByteBuffer value) Copies the specified encoded string to thenamefield.booleannon_image(boolean value) Sets the specified value to thenon_imagefield.intnum_channels(int value) Sets the specified value to thenum_channelsfield.intnum_custom_attributes(int value) Sets the specified value to thenum_custom_attributesfield.floatpixel_aspect_ratio(float value) Sets the specified value to thepixel_aspect_ratiofield.pixel_types(IntBuffer value) Sets the address of the specifiedIntBufferto thepixel_typesfield.requested_pixel_types(IntBuffer value) Sets the address of the specifiedIntBufferto therequested_pixel_typesfield.floatscreen_window_center(int index) screen_window_center(int index, float value) Sets the specified value at the specified index of thescreen_window_centerfield.screen_window_center(FloatBuffer value) Copies the specifiedFloatBufferto thescreen_window_centerfield.floatscreen_window_width(float value) Sets the specified value to thescreen_window_widthfield.inttile_level_mode(int value) Sets the specified value to thetile_level_modefield.inttile_rounding_mode(int value) Sets the specified value to thetile_rounding_modefield.inttile_size_x(int value) Sets the specified value to thetile_size_xfield.inttile_size_y(int value) Sets the specified value to thetile_size_yfield.booleantiled()tiled(boolean value) Sets the specified value to thetiledfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 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_ratiofield.
-
line_order
public int line_order()- Returns:
- the value of the
line_orderfield.
-
data_window
- Returns:
- a
EXRBox2iview of thedata_windowfield.
-
display_window
- Returns:
- a
EXRBox2iview of thedisplay_windowfield.
-
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
non_imagefield.
-
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
num_custom_attributesfield.
-
custom_attributes
- Returns:
- a
EXRAttribute.Bufferview of the struct array pointed to by thecustom_attributesfield.
-
channels
- Returns:
- a
EXRChannelInfo.Bufferview of the struct array pointed to by thechannelsfield.
-
pixel_types
- Returns:
- a
IntBufferview of the data pointed to by thepixel_typesfield.
-
num_channels
public int num_channels()- Returns:
- the value of the
num_channelsfield.
-
compression_type
public int compression_type()- Returns:
- the value of the
compression_typefield.
-
requested_pixel_types
- Returns:
- a
IntBufferview of the data pointed to by therequested_pixel_typesfield.
-
name
- Returns:
- a
ByteBufferview of thenamefield.
-
nameString
- Returns:
- the null-terminated string stored in the
namefield.
-
pixel_aspect_ratio
Sets the specified value to thepixel_aspect_ratiofield. -
line_order
Sets the specified value to theline_orderfield. -
data_window
Copies the specifiedEXRBox2ito thedata_windowfield. -
data_window
Passes thedata_windowfield to the specifiedConsumer. -
display_window
Copies the specifiedEXRBox2ito thedisplay_windowfield. -
display_window
Passes thedisplay_windowfield to the specifiedConsumer. -
screen_window_center
Copies the specifiedFloatBufferto thescreen_window_centerfield. -
screen_window_center
Sets the specified value at the specified index of thescreen_window_centerfield. -
screen_window_width
Sets the specified value to thescreen_window_widthfield. -
chunk_count
Sets the specified value to thechunk_countfield. -
tiled
Sets the specified value to thetiledfield. -
tile_size_x
Sets the specified value to thetile_size_xfield. -
tile_size_y
Sets the specified value to thetile_size_yfield. -
tile_level_mode
Sets the specified value to thetile_level_modefield. -
tile_rounding_mode
Sets the specified value to thetile_rounding_modefield. -
long_name
Sets the specified value to thelong_namefield. -
non_image
Sets the specified value to thenon_imagefield. -
multipart
Sets the specified value to themultipartfield. -
header_len
Sets the specified value to theheader_lenfield. -
num_custom_attributes
Sets the specified value to thenum_custom_attributesfield. -
custom_attributes
Sets the address of the specifiedEXRAttribute.Bufferto thecustom_attributesfield. -
channels
Sets the address of the specifiedEXRChannelInfo.Bufferto thechannelsfield. -
pixel_types
Sets the address of the specifiedIntBufferto thepixel_typesfield. -
num_channels
Sets the specified value to thenum_channelsfield. -
compression_type
Sets the specified value to thecompression_typefield. -
requested_pixel_types
Sets the address of the specifiedIntBufferto therequested_pixel_typesfield. -
name
Copies the specified encoded string to thenamefield.
-