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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionchannels()
channels
(EXRChannelInfo.Buffer value) Sets the address of the specifiedEXRChannelInfo.Buffer
to thechannels
field.int
chunk_count
(int value) Sets the specified value to thechunk_count
field.int
compression_type
(int value) Sets the specified value to thecompression_type
field.@Nullable EXRAttribute.Buffer
custom_attributes
(@Nullable EXRAttribute.Buffer value) Sets the address of the specifiedEXRAttribute.Buffer
to thecustom_attributes
field.data_window
(Consumer<EXRBox2i> consumer) Passes thedata_window
field to the specifiedConsumer
.data_window
(EXRBox2i value) Copies the specifiedEXRBox2i
to thedata_window
field.display_window
(Consumer<EXRBox2i> consumer) Passes thedisplay_window
field to the specifiedConsumer
.display_window
(EXRBox2i value) Copies the specifiedEXRBox2i
to thedisplay_window
field.int
header_len
(int value) Sets the specified value to theheader_len
field.int
line_order
(int value) Sets the specified value to theline_order
field.boolean
long_name
(boolean value) Sets the specified value to thelong_name
field.boolean
multipart
(boolean value) Sets the specified value to themultipart
field.name()
name
(ByteBuffer value) Copies the specified encoded string to thename
field.boolean
non_image
(boolean value) Sets the specified value to thenon_image
field.int
num_channels
(int value) Sets the specified value to thenum_channels
field.int
num_custom_attributes
(int value) Sets the specified value to thenum_custom_attributes
field.float
pixel_aspect_ratio
(float value) Sets the specified value to thepixel_aspect_ratio
field.pixel_types
(IntBuffer value) Sets the address of the specifiedIntBuffer
to thepixel_types
field.requested_pixel_types
(IntBuffer value) Sets the address of the specifiedIntBuffer
to therequested_pixel_types
field.float
screen_window_center
(int index) screen_window_center
(int index, float value) Sets the specified value at the specified index of thescreen_window_center
field.screen_window_center
(FloatBuffer value) Copies the specifiedFloatBuffer
to thescreen_window_center
field.float
screen_window_width
(float value) Sets the specified value to thescreen_window_width
field.int
tile_level_mode
(int value) Sets the specified value to thetile_level_mode
field.int
tile_rounding_mode
(int value) Sets the specified value to thetile_rounding_mode
field.int
tile_size_x
(int value) Sets the specified value to thetile_size_x
field.int
tile_size_y
(int value) Sets the specified value to thetile_size_y
field.boolean
tiled()
tiled
(boolean value) Sets the specified value to thetiled
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newEXRHeader.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
- Returns:
- a
EXRBox2i
view of thedata_window
field.
-
display_window
- Returns:
- a
EXRBox2i
view of thedisplay_window
field.
-
screen_window_center
- Returns:
- a
FloatBuffer
view of thescreen_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
- Returns:
- a
EXRAttribute.Buffer
view of the struct array pointed to by thecustom_attributes
field.
-
channels
- Returns:
- a
EXRChannelInfo.Buffer
view of the struct array pointed to by thechannels
field.
-
pixel_types
- Returns:
- a
IntBuffer
view of the data pointed to by thepixel_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
- Returns:
- a
IntBuffer
view of the data pointed to by therequested_pixel_types
field.
-
name
- Returns:
- a
ByteBuffer
view of thename
field.
-
nameString
- Returns:
- the null-terminated string stored in the
name
field.
-
pixel_aspect_ratio
Sets the specified value to thepixel_aspect_ratio
field. -
line_order
Sets the specified value to theline_order
field. -
data_window
Copies the specifiedEXRBox2i
to thedata_window
field. -
data_window
Passes thedata_window
field to the specifiedConsumer
. -
display_window
Copies the specifiedEXRBox2i
to thedisplay_window
field. -
display_window
Passes thedisplay_window
field to the specifiedConsumer
. -
screen_window_center
Copies the specifiedFloatBuffer
to thescreen_window_center
field. -
screen_window_center
Sets the specified value at the specified index of thescreen_window_center
field. -
screen_window_width
Sets the specified value to thescreen_window_width
field. -
chunk_count
Sets the specified value to thechunk_count
field. -
tiled
Sets the specified value to thetiled
field. -
tile_size_x
Sets the specified value to thetile_size_x
field. -
tile_size_y
Sets the specified value to thetile_size_y
field. -
tile_level_mode
Sets the specified value to thetile_level_mode
field. -
tile_rounding_mode
Sets the specified value to thetile_rounding_mode
field. -
long_name
Sets the specified value to thelong_name
field. -
non_image
Sets the specified value to thenon_image
field. -
multipart
Sets the specified value to themultipart
field. -
header_len
Sets the specified value to theheader_len
field. -
num_custom_attributes
Sets the specified value to thenum_custom_attributes
field. -
custom_attributes
Sets the address of the specifiedEXRAttribute.Buffer
to thecustom_attributes
field. -
channels
Sets the address of the specifiedEXRChannelInfo.Buffer
to thechannels
field. -
pixel_types
Sets the address of the specifiedIntBuffer
to thepixel_types
field. -
num_channels
Sets the specified value to thenum_channels
field. -
compression_type
Sets the specified value to thecompression_type
field. -
requested_pixel_types
Sets the address of the specifiedIntBuffer
to therequested_pixel_types
field. -
name
Copies the specified encoded string to thename
field.
-