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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbooleancalled_alloc(boolean value) Sets the specified value to thecalled_allocfield.booleanfast_alpha(boolean value) Sets the specified value to thefast_alphafield.inthorizontal_edge(int value) Sets the specified value to thehorizontal_edgefield.inthorizontal_filter(int value) Sets the specified value to thehorizontal_filterfield.@Nullable PointerBufferhorizontal_filter_kernel(int capacity) horizontal_filter_kernel(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thehorizontal_filter_kernelfield.@Nullable PointerBufferhorizontal_filter_support(int capacity) horizontal_filter_support(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thehorizontal_filter_supportfield.@Nullable PointerBufferinput_cb(int capacity) input_cb(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theinput_cbfield.intinput_data_type(int value) Sets the specified value to theinput_data_typefield.intinput_h()input_h(int value) Sets the specified value to theinput_hfield.intinput_pixel_layout_public(int value) Sets the specified value to theinput_pixel_layout_publicfield.input_pixels(int capacity) input_pixels(ByteBuffer value) Sets the address of the specifiedByteBufferto theinput_pixelsfield.doubleinput_s0()input_s0(double value) Sets the specified value to theinput_s0field.doubleinput_s1()input_s1(double value) Sets the specified value to theinput_s1field.intinput_stride_in_bytes(int value) Sets the specified value to theinput_stride_in_bytesfield.doubleinput_t0()input_t0(double value) Sets the specified value to theinput_t0field.doubleinput_t1()input_t1(double value) Sets the specified value to theinput_t1field.intinput_w()input_w(int value) Sets the specified value to theinput_wfield.booleanneeds_rebuild(boolean value) Sets the specified value to theneeds_rebuildfield.@Nullable PointerBufferoutput_cb(int capacity) output_cb(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theoutput_cbfield.intoutput_data_type(int value) Sets the specified value to theoutput_data_typefield.intoutput_h()output_h(int value) Sets the specified value to theoutput_hfield.intoutput_pixel_layout_public(int value) Sets the specified value to theoutput_pixel_layout_publicfield.@Nullable ByteBufferoutput_pixels(int capacity) output_pixels(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto theoutput_pixelsfield.intoutput_stride_in_bytes(int value) Sets the specified value to theoutput_stride_in_bytesfield.intoutput_subh(int value) Sets the specified value to theoutput_subhfield.intoutput_subw(int value) Sets the specified value to theoutput_subwfield.intoutput_subx(int value) Sets the specified value to theoutput_subxfield.intoutput_suby(int value) Sets the specified value to theoutput_subyfield.intoutput_w()output_w(int value) Sets the specified value to theoutput_wfield.longsamplers()samplers(long value) Sets the specified value to thesamplersfield.intsplits()splits(int value) Sets the specified value to thesplitsfield.longuser_data(long value) Sets the specified value to theuser_datafield.intvertical_edge(int value) Sets the specified value to thevertical_edgefield.intvertical_filter(int value) Sets the specified value to thevertical_filterfield.@Nullable PointerBuffervertical_filter_kernel(int capacity) vertical_filter_kernel(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thevertical_filter_kernelfield.@Nullable PointerBuffervertical_filter_support(int capacity) vertical_filter_support(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thevertical_filter_supportfield.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 newSTBIR_RESIZE.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
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_datafield.
-
input_pixels
- Returns:
- a
ByteBufferview of the data pointed to by theinput_pixelsfield.
-
input_w
public int input_w()- Returns:
- the value of the
input_wfield.
-
input_h
public int input_h()- Returns:
- the value of the
input_hfield.
-
input_s0
public double input_s0()- Returns:
- the value of the
input_s0field.
-
input_t0
public double input_t0()- Returns:
- the value of the
input_t0field.
-
input_s1
public double input_s1()- Returns:
- the value of the
input_s1field.
-
input_t1
public double input_t1()- Returns:
- the value of the
input_t1field.
-
input_cb
- Returns:
- a
PointerBufferview of the data pointed to by theinput_cbfield.
-
output_pixels
- Returns:
- a
ByteBufferview of the data pointed to by theoutput_pixelsfield.
-
output_w
public int output_w()- Returns:
- the value of the
output_wfield.
-
output_h
public int output_h()- Returns:
- the value of the
output_hfield.
-
output_subx
public int output_subx()- Returns:
- the value of the
output_subxfield.
-
output_suby
public int output_suby()- Returns:
- the value of the
output_subyfield.
-
output_subw
public int output_subw()- Returns:
- the value of the
output_subwfield.
-
output_subh
public int output_subh()- Returns:
- the value of the
output_subhfield.
-
output_cb
- Returns:
- a
PointerBufferview of the data pointed to by theoutput_cbfield.
-
input_stride_in_bytes
public int input_stride_in_bytes()- Returns:
- the value of the
input_stride_in_bytesfield.
-
output_stride_in_bytes
public int output_stride_in_bytes()- Returns:
- the value of the
output_stride_in_bytesfield.
-
splits
public int splits()- Returns:
- the value of the
splitsfield.
-
fast_alpha
public boolean fast_alpha()- Returns:
- the value of the
fast_alphafield.
-
needs_rebuild
public boolean needs_rebuild()- Returns:
- the value of the
needs_rebuildfield.
-
called_alloc
public boolean called_alloc()- Returns:
- the value of the
called_allocfield.
-
input_pixel_layout_public
public int input_pixel_layout_public()- Returns:
- the value of the
input_pixel_layout_publicfield.
-
output_pixel_layout_public
public int output_pixel_layout_public()- Returns:
- the value of the
output_pixel_layout_publicfield.
-
input_data_type
public int input_data_type()- Returns:
- the value of the
input_data_typefield.
-
output_data_type
public int output_data_type()- Returns:
- the value of the
output_data_typefield.
-
horizontal_filter
public int horizontal_filter()- Returns:
- the value of the
horizontal_filterfield.
-
vertical_filter
public int vertical_filter()- Returns:
- the value of the
vertical_filterfield.
-
horizontal_edge
public int horizontal_edge()- Returns:
- the value of the
horizontal_edgefield.
-
vertical_edge
public int vertical_edge()- Returns:
- the value of the
vertical_edgefield.
-
horizontal_filter_kernel
- Returns:
- a
PointerBufferview of the data pointed to by thehorizontal_filter_kernelfield.
-
horizontal_filter_support
- Returns:
- a
PointerBufferview of the data pointed to by thehorizontal_filter_supportfield.
-
vertical_filter_kernel
- Returns:
- a
PointerBufferview of the data pointed to by thevertical_filter_kernelfield.
-
vertical_filter_support
- Returns:
- a
PointerBufferview of the data pointed to by thevertical_filter_supportfield.
-
samplers
public long samplers()- Returns:
- the value of the
samplersfield.
-
user_data
Sets the specified value to theuser_datafield. -
input_pixels
Sets the address of the specifiedByteBufferto theinput_pixelsfield. -
input_w
Sets the specified value to theinput_wfield. -
input_h
Sets the specified value to theinput_hfield. -
input_s0
Sets the specified value to theinput_s0field. -
input_t0
Sets the specified value to theinput_t0field. -
input_s1
Sets the specified value to theinput_s1field. -
input_t1
Sets the specified value to theinput_t1field. -
input_cb
Sets the address of the specifiedPointerBufferto theinput_cbfield. -
output_pixels
Sets the address of the specifiedByteBufferto theoutput_pixelsfield. -
output_w
Sets the specified value to theoutput_wfield. -
output_h
Sets the specified value to theoutput_hfield. -
output_subx
Sets the specified value to theoutput_subxfield. -
output_suby
Sets the specified value to theoutput_subyfield. -
output_subw
Sets the specified value to theoutput_subwfield. -
output_subh
Sets the specified value to theoutput_subhfield. -
output_cb
Sets the address of the specifiedPointerBufferto theoutput_cbfield. -
input_stride_in_bytes
Sets the specified value to theinput_stride_in_bytesfield. -
output_stride_in_bytes
Sets the specified value to theoutput_stride_in_bytesfield. -
splits
Sets the specified value to thesplitsfield. -
fast_alpha
Sets the specified value to thefast_alphafield. -
needs_rebuild
Sets the specified value to theneeds_rebuildfield. -
called_alloc
Sets the specified value to thecalled_allocfield. -
input_pixel_layout_public
Sets the specified value to theinput_pixel_layout_publicfield. -
output_pixel_layout_public
Sets the specified value to theoutput_pixel_layout_publicfield. -
input_data_type
Sets the specified value to theinput_data_typefield. -
output_data_type
Sets the specified value to theoutput_data_typefield. -
horizontal_filter
Sets the specified value to thehorizontal_filterfield. -
vertical_filter
Sets the specified value to thevertical_filterfield. -
horizontal_edge
Sets the specified value to thehorizontal_edgefield. -
vertical_edge
Sets the specified value to thevertical_edgefield. -
horizontal_filter_kernel
Sets the address of the specifiedPointerBufferto thehorizontal_filter_kernelfield. -
horizontal_filter_support
Sets the address of the specifiedPointerBufferto thehorizontal_filter_supportfield. -
vertical_filter_kernel
Sets the address of the specifiedPointerBufferto thevertical_filter_kernelfield. -
vertical_filter_support
Sets the address of the specifiedPointerBufferto thevertical_filter_supportfield. -
samplers
Sets the specified value to thesamplersfield.
-