Package org.lwjgl.stb
Class STBIR_RESIZE
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct STBIR_RESIZE {
void * user_data;
void const * input_pixels;
int input_w;
int input_h;
double input_s0;
double input_t0;
double input_s1;
double input_t1;
stbir_input_callback ** input_cb;
void * output_pixels;
int output_w;
int output_h;
int output_subx;
int output_suby;
int output_subw;
int output_subh;
stbir_output_callback ** output_cb;
int input_stride_in_bytes;
int output_stride_in_bytes;
int splits;
int fast_alpha;
int needs_rebuild;
int called_alloc;
stbir_pixel_layout input_pixel_layout_public;
stbir_pixel_layout output_pixel_layout_public;
stbir_datatype input_data_type;
stbir_datatype output_data_type;
stbir_filter horizontal_filter;
stbir_filter vertical_filter;
stbir_edge horizontal_edge;
stbir_edge vertical_edge;
stbir__kernel_callback ** horizontal_filter_kernel;
stbir__support_callback ** horizontal_filter_support;
stbir__kernel_callback ** vertical_filter_kernel;
stbir__support_callback ** vertical_filter_support;
stbir__info * samplers;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSTBIR_RESIZE(ByteBuffer container) Creates aSTBIR_RESIZEinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbooleancalled_alloc(boolean value) Sets the specified value to thecalled_allocfield.static STBIR_RESIZEcalloc()Returns a newSTBIR_RESIZEinstance allocated withmemCalloc.static STBIR_RESIZE.Buffercalloc(int capacity) Returns a newSTBIR_RESIZE.Bufferinstance allocated withmemCalloc.static STBIR_RESIZE.Buffercalloc(int capacity, MemoryStack stack) Returns a newSTBIR_RESIZE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBIR_RESIZEcalloc(MemoryStack stack) Returns a newSTBIR_RESIZEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBIR_RESIZEcreate()Returns a newSTBIR_RESIZEinstance allocated withBufferUtils.static STBIR_RESIZE.Buffercreate(int capacity) Returns a newSTBIR_RESIZE.Bufferinstance allocated withBufferUtils.static STBIR_RESIZEcreate(long address) Returns a newSTBIR_RESIZEinstance for the specified memory address.static STBIR_RESIZE.Buffercreate(long address, int capacity) Create aSTBIR_RESIZE.Bufferinstance at the specified memory.static @Nullable STBIR_RESIZEcreateSafe(long address) static @Nullable STBIR_RESIZE.BuffercreateSafe(long address, int capacity) 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.static STBIR_RESIZEmalloc()Returns a newSTBIR_RESIZEinstance allocated withmemAlloc.static STBIR_RESIZE.Buffermalloc(int capacity) Returns a newSTBIR_RESIZE.Bufferinstance allocated withmemAlloc.static STBIR_RESIZE.Buffermalloc(int capacity, MemoryStack stack) Returns a newSTBIR_RESIZE.Bufferinstance allocated on the specifiedMemoryStack.static STBIR_RESIZEmalloc(MemoryStack stack) Returns a newSTBIR_RESIZEinstance allocated on the specifiedMemoryStack.static intncalled_alloc(long struct) Unsafe version ofcalled_alloc().static voidncalled_alloc(long struct, int value) Unsafe version ofcalled_alloc.booleanneeds_rebuild(boolean value) Sets the specified value to theneeds_rebuildfield.static intnfast_alpha(long struct) Unsafe version offast_alpha().static voidnfast_alpha(long struct, int value) Unsafe version offast_alpha.static intnhorizontal_edge(long struct) Unsafe version ofhorizontal_edge().static voidnhorizontal_edge(long struct, int value) Unsafe version ofhorizontal_edge.static intnhorizontal_filter(long struct) Unsafe version ofhorizontal_filter().static voidnhorizontal_filter(long struct, int value) Unsafe version ofhorizontal_filter.static @Nullable PointerBuffernhorizontal_filter_kernel(long struct, int capacity) Unsafe version ofhorizontal_filter_kernel.static voidnhorizontal_filter_kernel(long struct, @Nullable PointerBuffer value) Unsafe version ofhorizontal_filter_kernel.static @Nullable PointerBuffernhorizontal_filter_support(long struct, int capacity) Unsafe version ofhorizontal_filter_support.static voidnhorizontal_filter_support(long struct, @Nullable PointerBuffer value) Unsafe version ofhorizontal_filter_support.static @Nullable PointerBufferninput_cb(long struct, int capacity) Unsafe version ofinput_cb.static voidninput_cb(long struct, @Nullable PointerBuffer value) Unsafe version ofinput_cb.static intninput_data_type(long struct) Unsafe version ofinput_data_type().static voidninput_data_type(long struct, int value) Unsafe version ofinput_data_type.static intninput_h(long struct) Unsafe version ofinput_h().static voidninput_h(long struct, int value) Unsafe version ofinput_h.static intninput_pixel_layout_public(long struct) Unsafe version ofinput_pixel_layout_public().static voidninput_pixel_layout_public(long struct, int value) Unsafe version ofinput_pixel_layout_public.static ByteBufferninput_pixels(long struct, int capacity) Unsafe version ofinput_pixels.static voidninput_pixels(long struct, ByteBuffer value) Unsafe version ofinput_pixels.static doubleninput_s0(long struct) Unsafe version ofinput_s0().static voidninput_s0(long struct, double value) Unsafe version ofinput_s0.static doubleninput_s1(long struct) Unsafe version ofinput_s1().static voidninput_s1(long struct, double value) Unsafe version ofinput_s1.static intninput_stride_in_bytes(long struct) Unsafe version ofinput_stride_in_bytes().static voidninput_stride_in_bytes(long struct, int value) Unsafe version ofinput_stride_in_bytes.static doubleninput_t0(long struct) Unsafe version ofinput_t0().static voidninput_t0(long struct, double value) Unsafe version ofinput_t0.static doubleninput_t1(long struct) Unsafe version ofinput_t1().static voidninput_t1(long struct, double value) Unsafe version ofinput_t1.static intninput_w(long struct) Unsafe version ofinput_w().static voidninput_w(long struct, int value) Unsafe version ofinput_w.static intnneeds_rebuild(long struct) Unsafe version ofneeds_rebuild().static voidnneeds_rebuild(long struct, int value) Unsafe version ofneeds_rebuild.static @Nullable PointerBuffernoutput_cb(long struct, int capacity) Unsafe version ofoutput_cb.static voidnoutput_cb(long struct, @Nullable PointerBuffer value) Unsafe version ofoutput_cb.static intnoutput_data_type(long struct) Unsafe version ofoutput_data_type().static voidnoutput_data_type(long struct, int value) Unsafe version ofoutput_data_type.static intnoutput_h(long struct) Unsafe version ofoutput_h().static voidnoutput_h(long struct, int value) Unsafe version ofoutput_h.static intnoutput_pixel_layout_public(long struct) Unsafe version ofoutput_pixel_layout_public().static voidnoutput_pixel_layout_public(long struct, int value) Unsafe version ofoutput_pixel_layout_public.static @Nullable ByteBuffernoutput_pixels(long struct, int capacity) Unsafe version ofoutput_pixels.static voidnoutput_pixels(long struct, @Nullable ByteBuffer value) Unsafe version ofoutput_pixels.static intnoutput_stride_in_bytes(long struct) Unsafe version ofoutput_stride_in_bytes().static voidnoutput_stride_in_bytes(long struct, int value) Unsafe version ofoutput_stride_in_bytes.static intnoutput_subh(long struct) Unsafe version ofoutput_subh().static voidnoutput_subh(long struct, int value) Unsafe version ofoutput_subh.static intnoutput_subw(long struct) Unsafe version ofoutput_subw().static voidnoutput_subw(long struct, int value) Unsafe version ofoutput_subw.static intnoutput_subx(long struct) Unsafe version ofoutput_subx().static voidnoutput_subx(long struct, int value) Unsafe version ofoutput_subx.static intnoutput_suby(long struct) Unsafe version ofoutput_suby().static voidnoutput_suby(long struct, int value) Unsafe version ofoutput_suby.static intnoutput_w(long struct) Unsafe version ofoutput_w().static voidnoutput_w(long struct, int value) Unsafe version ofoutput_w.static longnsamplers(long struct) Unsafe version ofsamplers().static voidnsamplers(long struct, long value) Unsafe version ofsamplers.static intnsplits(long struct) Unsafe version ofsplits().static voidnsplits(long struct, int value) Unsafe version ofsplits.static longnuser_data(long struct) Unsafe version ofuser_data().static voidnuser_data(long struct, long value) Unsafe version ofuser_data.static intnvertical_edge(long struct) Unsafe version ofvertical_edge().static voidnvertical_edge(long struct, int value) Unsafe version ofvertical_edge.static intnvertical_filter(long struct) Unsafe version ofvertical_filter().static voidnvertical_filter(long struct, int value) Unsafe version ofvertical_filter.static @Nullable PointerBuffernvertical_filter_kernel(long struct, int capacity) Unsafe version ofvertical_filter_kernel.static voidnvertical_filter_kernel(long struct, @Nullable PointerBuffer value) Unsafe version ofvertical_filter_kernel.static @Nullable PointerBuffernvertical_filter_support(long struct, int capacity) Unsafe version ofvertical_filter_support.static voidnvertical_filter_support(long struct, @Nullable PointerBuffer value) Unsafe version ofvertical_filter_support.@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.set(long user_data, ByteBuffer input_pixels, int input_w, int input_h, double input_s0, double input_t0, double input_s1, double input_t1, @Nullable PointerBuffer input_cb, @Nullable ByteBuffer output_pixels, int output_w, int output_h, int output_subx, int output_suby, int output_subw, int output_subh, @Nullable PointerBuffer output_cb, int input_stride_in_bytes, int output_stride_in_bytes, int splits, boolean fast_alpha, boolean needs_rebuild, boolean called_alloc, int input_pixel_layout_public, int output_pixel_layout_public, int input_data_type, int output_data_type, int horizontal_filter, int vertical_filter, int horizontal_edge, int vertical_edge, @Nullable PointerBuffer horizontal_filter_kernel, @Nullable PointerBuffer horizontal_filter_support, @Nullable PointerBuffer vertical_filter_kernel, @Nullable PointerBuffer vertical_filter_support, long samplers) Initializes this struct with the specified values.set(STBIR_RESIZE src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsplits()splits(int value) Sets the specified value to thesplitsfield.longuser_data(long value) Sets the specified value to theuser_datafield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
USER_DATA
public static final int USER_DATAThe struct member offsets. -
INPUT_PIXELS
public static final int INPUT_PIXELSThe struct member offsets. -
INPUT_W
public static final int INPUT_WThe struct member offsets. -
INPUT_H
public static final int INPUT_HThe struct member offsets. -
INPUT_S0
public static final int INPUT_S0The struct member offsets. -
INPUT_T0
public static final int INPUT_T0The struct member offsets. -
INPUT_S1
public static final int INPUT_S1The struct member offsets. -
INPUT_T1
public static final int INPUT_T1The struct member offsets. -
INPUT_CB
public static final int INPUT_CBThe struct member offsets. -
OUTPUT_PIXELS
public static final int OUTPUT_PIXELSThe struct member offsets. -
OUTPUT_W
public static final int OUTPUT_WThe struct member offsets. -
OUTPUT_H
public static final int OUTPUT_HThe struct member offsets. -
OUTPUT_SUBX
public static final int OUTPUT_SUBXThe struct member offsets. -
OUTPUT_SUBY
public static final int OUTPUT_SUBYThe struct member offsets. -
OUTPUT_SUBW
public static final int OUTPUT_SUBWThe struct member offsets. -
OUTPUT_SUBH
public static final int OUTPUT_SUBHThe struct member offsets. -
OUTPUT_CB
public static final int OUTPUT_CBThe struct member offsets. -
INPUT_STRIDE_IN_BYTES
public static final int INPUT_STRIDE_IN_BYTESThe struct member offsets. -
OUTPUT_STRIDE_IN_BYTES
public static final int OUTPUT_STRIDE_IN_BYTESThe struct member offsets. -
SPLITS
public static final int SPLITSThe struct member offsets. -
FAST_ALPHA
public static final int FAST_ALPHAThe struct member offsets. -
NEEDS_REBUILD
public static final int NEEDS_REBUILDThe struct member offsets. -
CALLED_ALLOC
public static final int CALLED_ALLOCThe struct member offsets. -
INPUT_PIXEL_LAYOUT_PUBLIC
public static final int INPUT_PIXEL_LAYOUT_PUBLICThe struct member offsets. -
OUTPUT_PIXEL_LAYOUT_PUBLIC
public static final int OUTPUT_PIXEL_LAYOUT_PUBLICThe struct member offsets. -
INPUT_DATA_TYPE
public static final int INPUT_DATA_TYPEThe struct member offsets. -
OUTPUT_DATA_TYPE
public static final int OUTPUT_DATA_TYPEThe struct member offsets. -
HORIZONTAL_FILTER
public static final int HORIZONTAL_FILTERThe struct member offsets. -
VERTICAL_FILTER
public static final int VERTICAL_FILTERThe struct member offsets. -
HORIZONTAL_EDGE
public static final int HORIZONTAL_EDGEThe struct member offsets. -
VERTICAL_EDGE
public static final int VERTICAL_EDGEThe struct member offsets. -
HORIZONTAL_FILTER_KERNEL
public static final int HORIZONTAL_FILTER_KERNELThe struct member offsets. -
HORIZONTAL_FILTER_SUPPORT
public static final int HORIZONTAL_FILTER_SUPPORTThe struct member offsets. -
VERTICAL_FILTER_KERNEL
public static final int VERTICAL_FILTER_KERNELThe struct member offsets. -
VERTICAL_FILTER_SUPPORT
public static final int VERTICAL_FILTER_SUPPORTThe struct member offsets. -
SAMPLERS
public static final int SAMPLERSThe struct member offsets.
-
-
Constructor Details
-
STBIR_RESIZE
Creates aSTBIR_RESIZEinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<STBIR_RESIZE>
-
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. -
set
public STBIR_RESIZE set(long user_data, ByteBuffer input_pixels, int input_w, int input_h, double input_s0, double input_t0, double input_s1, double input_t1, @Nullable PointerBuffer input_cb, @Nullable ByteBuffer output_pixels, int output_w, int output_h, int output_subx, int output_suby, int output_subw, int output_subh, @Nullable PointerBuffer output_cb, int input_stride_in_bytes, int output_stride_in_bytes, int splits, boolean fast_alpha, boolean needs_rebuild, boolean called_alloc, int input_pixel_layout_public, int output_pixel_layout_public, int input_data_type, int output_data_type, int horizontal_filter, int vertical_filter, int horizontal_edge, int vertical_edge, @Nullable PointerBuffer horizontal_filter_kernel, @Nullable PointerBuffer horizontal_filter_support, @Nullable PointerBuffer vertical_filter_kernel, @Nullable PointerBuffer vertical_filter_support, long samplers) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newSTBIR_RESIZEinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSTBIR_RESIZEinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSTBIR_RESIZEinstance allocated withBufferUtils. -
create
Returns a newSTBIR_RESIZEinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSTBIR_RESIZE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSTBIR_RESIZE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSTBIR_RESIZE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSTBIR_RESIZE.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSTBIR_RESIZEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSTBIR_RESIZEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSTBIR_RESIZE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSTBIR_RESIZE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nuser_data
public static long nuser_data(long struct) Unsafe version ofuser_data(). -
ninput_pixels
Unsafe version ofinput_pixels. -
ninput_w
public static int ninput_w(long struct) Unsafe version ofinput_w(). -
ninput_h
public static int ninput_h(long struct) Unsafe version ofinput_h(). -
ninput_s0
public static double ninput_s0(long struct) Unsafe version ofinput_s0(). -
ninput_t0
public static double ninput_t0(long struct) Unsafe version ofinput_t0(). -
ninput_s1
public static double ninput_s1(long struct) Unsafe version ofinput_s1(). -
ninput_t1
public static double ninput_t1(long struct) Unsafe version ofinput_t1(). -
ninput_cb
Unsafe version ofinput_cb. -
noutput_pixels
Unsafe version ofoutput_pixels. -
noutput_w
public static int noutput_w(long struct) Unsafe version ofoutput_w(). -
noutput_h
public static int noutput_h(long struct) Unsafe version ofoutput_h(). -
noutput_subx
public static int noutput_subx(long struct) Unsafe version ofoutput_subx(). -
noutput_suby
public static int noutput_suby(long struct) Unsafe version ofoutput_suby(). -
noutput_subw
public static int noutput_subw(long struct) Unsafe version ofoutput_subw(). -
noutput_subh
public static int noutput_subh(long struct) Unsafe version ofoutput_subh(). -
noutput_cb
Unsafe version ofoutput_cb. -
ninput_stride_in_bytes
public static int ninput_stride_in_bytes(long struct) Unsafe version ofinput_stride_in_bytes(). -
noutput_stride_in_bytes
public static int noutput_stride_in_bytes(long struct) Unsafe version ofoutput_stride_in_bytes(). -
nsplits
public static int nsplits(long struct) Unsafe version ofsplits(). -
nfast_alpha
public static int nfast_alpha(long struct) Unsafe version offast_alpha(). -
nneeds_rebuild
public static int nneeds_rebuild(long struct) Unsafe version ofneeds_rebuild(). -
ncalled_alloc
public static int ncalled_alloc(long struct) Unsafe version ofcalled_alloc(). -
ninput_pixel_layout_public
public static int ninput_pixel_layout_public(long struct) Unsafe version ofinput_pixel_layout_public(). -
noutput_pixel_layout_public
public static int noutput_pixel_layout_public(long struct) Unsafe version ofoutput_pixel_layout_public(). -
ninput_data_type
public static int ninput_data_type(long struct) Unsafe version ofinput_data_type(). -
noutput_data_type
public static int noutput_data_type(long struct) Unsafe version ofoutput_data_type(). -
nhorizontal_filter
public static int nhorizontal_filter(long struct) Unsafe version ofhorizontal_filter(). -
nvertical_filter
public static int nvertical_filter(long struct) Unsafe version ofvertical_filter(). -
nhorizontal_edge
public static int nhorizontal_edge(long struct) Unsafe version ofhorizontal_edge(). -
nvertical_edge
public static int nvertical_edge(long struct) Unsafe version ofvertical_edge(). -
nhorizontal_filter_kernel
Unsafe version ofhorizontal_filter_kernel. -
nhorizontal_filter_support
Unsafe version ofhorizontal_filter_support. -
nvertical_filter_kernel
Unsafe version ofvertical_filter_kernel. -
nvertical_filter_support
Unsafe version ofvertical_filter_support. -
nsamplers
public static long nsamplers(long struct) Unsafe version ofsamplers(). -
nuser_data
public static void nuser_data(long struct, long value) Unsafe version ofuser_data. -
ninput_pixels
Unsafe version ofinput_pixels. -
ninput_w
public static void ninput_w(long struct, int value) Unsafe version ofinput_w. -
ninput_h
public static void ninput_h(long struct, int value) Unsafe version ofinput_h. -
ninput_s0
public static void ninput_s0(long struct, double value) Unsafe version ofinput_s0. -
ninput_t0
public static void ninput_t0(long struct, double value) Unsafe version ofinput_t0. -
ninput_s1
public static void ninput_s1(long struct, double value) Unsafe version ofinput_s1. -
ninput_t1
public static void ninput_t1(long struct, double value) Unsafe version ofinput_t1. -
ninput_cb
Unsafe version ofinput_cb. -
noutput_pixels
Unsafe version ofoutput_pixels. -
noutput_w
public static void noutput_w(long struct, int value) Unsafe version ofoutput_w. -
noutput_h
public static void noutput_h(long struct, int value) Unsafe version ofoutput_h. -
noutput_subx
public static void noutput_subx(long struct, int value) Unsafe version ofoutput_subx. -
noutput_suby
public static void noutput_suby(long struct, int value) Unsafe version ofoutput_suby. -
noutput_subw
public static void noutput_subw(long struct, int value) Unsafe version ofoutput_subw. -
noutput_subh
public static void noutput_subh(long struct, int value) Unsafe version ofoutput_subh. -
noutput_cb
Unsafe version ofoutput_cb. -
ninput_stride_in_bytes
public static void ninput_stride_in_bytes(long struct, int value) Unsafe version ofinput_stride_in_bytes. -
noutput_stride_in_bytes
public static void noutput_stride_in_bytes(long struct, int value) Unsafe version ofoutput_stride_in_bytes. -
nsplits
public static void nsplits(long struct, int value) Unsafe version ofsplits. -
nfast_alpha
public static void nfast_alpha(long struct, int value) Unsafe version offast_alpha. -
nneeds_rebuild
public static void nneeds_rebuild(long struct, int value) Unsafe version ofneeds_rebuild. -
ncalled_alloc
public static void ncalled_alloc(long struct, int value) Unsafe version ofcalled_alloc. -
ninput_pixel_layout_public
public static void ninput_pixel_layout_public(long struct, int value) Unsafe version ofinput_pixel_layout_public. -
noutput_pixel_layout_public
public static void noutput_pixel_layout_public(long struct, int value) Unsafe version ofoutput_pixel_layout_public. -
ninput_data_type
public static void ninput_data_type(long struct, int value) Unsafe version ofinput_data_type. -
noutput_data_type
public static void noutput_data_type(long struct, int value) Unsafe version ofoutput_data_type. -
nhorizontal_filter
public static void nhorizontal_filter(long struct, int value) Unsafe version ofhorizontal_filter. -
nvertical_filter
public static void nvertical_filter(long struct, int value) Unsafe version ofvertical_filter. -
nhorizontal_edge
public static void nhorizontal_edge(long struct, int value) Unsafe version ofhorizontal_edge. -
nvertical_edge
public static void nvertical_edge(long struct, int value) Unsafe version ofvertical_edge. -
nhorizontal_filter_kernel
Unsafe version ofhorizontal_filter_kernel. -
nhorizontal_filter_support
Unsafe version ofhorizontal_filter_support. -
nvertical_filter_kernel
Unsafe version ofvertical_filter_kernel. -
nvertical_filter_support
Unsafe version ofvertical_filter_support. -
nsamplers
public static void nsamplers(long struct, long value) Unsafe version ofsamplers. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-