Package org.lwjgl.stb
Class STBIR_RESIZE.Buffer
java.lang.Object
- All Implemented Interfaces:
AutoCloseable
,Iterable<STBIR_RESIZE>
,NativeResource
,Pointer
- Enclosing class:
STBIR_RESIZE
public static class STBIR_RESIZE.Buffer
extends StructBuffer<STBIR_RESIZE,STBIR_RESIZE.Buffer>
implements NativeResource
An array of
STBIR_RESIZE
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 newSTBIR_RESIZE.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionboolean
called_alloc
(boolean value) Sets the specified value to thecalled_alloc
field.boolean
fast_alpha
(boolean value) Sets the specified value to thefast_alpha
field.int
horizontal_edge
(int value) Sets the specified value to thehorizontal_edge
field.int
horizontal_filter
(int value) Sets the specified value to thehorizontal_filter
field.@Nullable PointerBuffer
horizontal_filter_kernel
(int capacity) horizontal_filter_kernel
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thehorizontal_filter_kernel
field.@Nullable PointerBuffer
horizontal_filter_support
(int capacity) horizontal_filter_support
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thehorizontal_filter_support
field.@Nullable PointerBuffer
input_cb
(int capacity) input_cb
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theinput_cb
field.int
input_data_type
(int value) Sets the specified value to theinput_data_type
field.int
input_h()
input_h
(int value) Sets the specified value to theinput_h
field.int
input_pixel_layout_public
(int value) Sets the specified value to theinput_pixel_layout_public
field.input_pixels
(int capacity) input_pixels
(ByteBuffer value) Sets the address of the specifiedByteBuffer
to theinput_pixels
field.double
input_s0()
input_s0
(double value) Sets the specified value to theinput_s0
field.double
input_s1()
input_s1
(double value) Sets the specified value to theinput_s1
field.int
input_stride_in_bytes
(int value) Sets the specified value to theinput_stride_in_bytes
field.double
input_t0()
input_t0
(double value) Sets the specified value to theinput_t0
field.double
input_t1()
input_t1
(double value) Sets the specified value to theinput_t1
field.int
input_w()
input_w
(int value) Sets the specified value to theinput_w
field.boolean
needs_rebuild
(boolean value) Sets the specified value to theneeds_rebuild
field.@Nullable PointerBuffer
output_cb
(int capacity) output_cb
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theoutput_cb
field.int
output_data_type
(int value) Sets the specified value to theoutput_data_type
field.int
output_h()
output_h
(int value) Sets the specified value to theoutput_h
field.int
output_pixel_layout_public
(int value) Sets the specified value to theoutput_pixel_layout_public
field.@Nullable ByteBuffer
output_pixels
(int capacity) output_pixels
(@Nullable ByteBuffer value) Sets the address of the specifiedByteBuffer
to theoutput_pixels
field.int
output_stride_in_bytes
(int value) Sets the specified value to theoutput_stride_in_bytes
field.int
output_subh
(int value) Sets the specified value to theoutput_subh
field.int
output_subw
(int value) Sets the specified value to theoutput_subw
field.int
output_subx
(int value) Sets the specified value to theoutput_subx
field.int
output_suby
(int value) Sets the specified value to theoutput_suby
field.int
output_w()
output_w
(int value) Sets the specified value to theoutput_w
field.long
samplers()
samplers
(long value) Sets the specified value to thesamplers
field.int
splits()
splits
(int value) Sets the specified value to thesplits
field.long
user_data
(long value) Sets the specified value to theuser_data
field.int
vertical_edge
(int value) Sets the specified value to thevertical_edge
field.int
vertical_filter
(int value) Sets the specified value to thevertical_filter
field.@Nullable PointerBuffer
vertical_filter_kernel
(int capacity) vertical_filter_kernel
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thevertical_filter_kernel
field.@Nullable PointerBuffer
vertical_filter_support
(int capacity) vertical_filter_support
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thevertical_filter_support
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 newSTBIR_RESIZE.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
STBIR_RESIZE.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
-
user_data
public long user_data()- Returns:
- the value of the
user_data
field.
-
input_pixels
- Returns:
- a
ByteBuffer
view of the data pointed to by theinput_pixels
field.
-
input_w
public int input_w()- Returns:
- the value of the
input_w
field.
-
input_h
public int input_h()- Returns:
- the value of the
input_h
field.
-
input_s0
public double input_s0()- Returns:
- the value of the
input_s0
field.
-
input_t0
public double input_t0()- Returns:
- the value of the
input_t0
field.
-
input_s1
public double input_s1()- Returns:
- the value of the
input_s1
field.
-
input_t1
public double input_t1()- Returns:
- the value of the
input_t1
field.
-
input_cb
- Returns:
- a
PointerBuffer
view of the data pointed to by theinput_cb
field.
-
output_pixels
- Returns:
- a
ByteBuffer
view of the data pointed to by theoutput_pixels
field.
-
output_w
public int output_w()- Returns:
- the value of the
output_w
field.
-
output_h
public int output_h()- Returns:
- the value of the
output_h
field.
-
output_subx
public int output_subx()- Returns:
- the value of the
output_subx
field.
-
output_suby
public int output_suby()- Returns:
- the value of the
output_suby
field.
-
output_subw
public int output_subw()- Returns:
- the value of the
output_subw
field.
-
output_subh
public int output_subh()- Returns:
- the value of the
output_subh
field.
-
output_cb
- Returns:
- a
PointerBuffer
view of the data pointed to by theoutput_cb
field.
-
input_stride_in_bytes
public int input_stride_in_bytes()- Returns:
- the value of the
input_stride_in_bytes
field.
-
output_stride_in_bytes
public int output_stride_in_bytes()- Returns:
- the value of the
output_stride_in_bytes
field.
-
splits
public int splits()- Returns:
- the value of the
splits
field.
-
fast_alpha
public boolean fast_alpha()- Returns:
- the value of the
fast_alpha
field.
-
needs_rebuild
public boolean needs_rebuild()- Returns:
- the value of the
needs_rebuild
field.
-
called_alloc
public boolean called_alloc()- Returns:
- the value of the
called_alloc
field.
-
input_pixel_layout_public
public int input_pixel_layout_public()- Returns:
- the value of the
input_pixel_layout_public
field.
-
output_pixel_layout_public
public int output_pixel_layout_public()- Returns:
- the value of the
output_pixel_layout_public
field.
-
input_data_type
public int input_data_type()- Returns:
- the value of the
input_data_type
field.
-
output_data_type
public int output_data_type()- Returns:
- the value of the
output_data_type
field.
-
horizontal_filter
public int horizontal_filter()- Returns:
- the value of the
horizontal_filter
field.
-
vertical_filter
public int vertical_filter()- Returns:
- the value of the
vertical_filter
field.
-
horizontal_edge
public int horizontal_edge()- Returns:
- the value of the
horizontal_edge
field.
-
vertical_edge
public int vertical_edge()- Returns:
- the value of the
vertical_edge
field.
-
horizontal_filter_kernel
- Returns:
- a
PointerBuffer
view of the data pointed to by thehorizontal_filter_kernel
field.
-
horizontal_filter_support
- Returns:
- a
PointerBuffer
view of the data pointed to by thehorizontal_filter_support
field.
-
vertical_filter_kernel
- Returns:
- a
PointerBuffer
view of the data pointed to by thevertical_filter_kernel
field.
-
vertical_filter_support
- Returns:
- a
PointerBuffer
view of the data pointed to by thevertical_filter_support
field.
-
samplers
public long samplers()- Returns:
- the value of the
samplers
field.
-
user_data
Sets the specified value to theuser_data
field. -
input_pixels
Sets the address of the specifiedByteBuffer
to theinput_pixels
field. -
input_w
Sets the specified value to theinput_w
field. -
input_h
Sets the specified value to theinput_h
field. -
input_s0
Sets the specified value to theinput_s0
field. -
input_t0
Sets the specified value to theinput_t0
field. -
input_s1
Sets the specified value to theinput_s1
field. -
input_t1
Sets the specified value to theinput_t1
field. -
input_cb
Sets the address of the specifiedPointerBuffer
to theinput_cb
field. -
output_pixels
Sets the address of the specifiedByteBuffer
to theoutput_pixels
field. -
output_w
Sets the specified value to theoutput_w
field. -
output_h
Sets the specified value to theoutput_h
field. -
output_subx
Sets the specified value to theoutput_subx
field. -
output_suby
Sets the specified value to theoutput_suby
field. -
output_subw
Sets the specified value to theoutput_subw
field. -
output_subh
Sets the specified value to theoutput_subh
field. -
output_cb
Sets the address of the specifiedPointerBuffer
to theoutput_cb
field. -
input_stride_in_bytes
Sets the specified value to theinput_stride_in_bytes
field. -
output_stride_in_bytes
Sets the specified value to theoutput_stride_in_bytes
field. -
splits
Sets the specified value to thesplits
field. -
fast_alpha
Sets the specified value to thefast_alpha
field. -
needs_rebuild
Sets the specified value to theneeds_rebuild
field. -
called_alloc
Sets the specified value to thecalled_alloc
field. -
input_pixel_layout_public
Sets the specified value to theinput_pixel_layout_public
field. -
output_pixel_layout_public
Sets the specified value to theoutput_pixel_layout_public
field. -
input_data_type
Sets the specified value to theinput_data_type
field. -
output_data_type
Sets the specified value to theoutput_data_type
field. -
horizontal_filter
Sets the specified value to thehorizontal_filter
field. -
vertical_filter
Sets the specified value to thevertical_filter
field. -
horizontal_edge
Sets the specified value to thehorizontal_edge
field. -
vertical_edge
Sets the specified value to thevertical_edge
field. -
horizontal_filter_kernel
Sets the address of the specifiedPointerBuffer
to thehorizontal_filter_kernel
field. -
horizontal_filter_support
Sets the address of the specifiedPointerBuffer
to thehorizontal_filter_support
field. -
vertical_filter_kernel
Sets the address of the specifiedPointerBuffer
to thevertical_filter_kernel
field. -
vertical_filter_support
Sets the address of the specifiedPointerBuffer
to thevertical_filter_support
field. -
samplers
Sets the specified value to thesamplers
field.
-