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;
{@link STBIRInputCallbackI 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;
{@link STBIROutputCallbackI 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;
{@link STBIRKernelCallbackI stbir__kernel_callback *}* horizontal_filter_kernel;
{@link STBIRSupportCallbackI stbir__support_callback *}* horizontal_filter_support;
{@link STBIRKernelCallbackI stbir__kernel_callback *}* vertical_filter_kernel;
{@link STBIRSupportCallbackI stbir__support_callback *}* vertical_filter_support;
stbir__info * samplers;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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_RESIZE
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionboolean
called_alloc
(boolean value) Sets the specified value to thecalled_alloc
field.static STBIR_RESIZE
calloc()
Returns a newSTBIR_RESIZE
instance allocated withmemCalloc
.static STBIR_RESIZE.Buffer
calloc
(int capacity) Returns a newSTBIR_RESIZE.Buffer
instance allocated withmemCalloc
.static STBIR_RESIZE.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSTBIR_RESIZE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBIR_RESIZE
calloc
(MemoryStack stack) Returns a newSTBIR_RESIZE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBIR_RESIZE
create()
Returns a newSTBIR_RESIZE
instance allocated withBufferUtils
.static STBIR_RESIZE.Buffer
create
(int capacity) Returns a newSTBIR_RESIZE.Buffer
instance allocated withBufferUtils
.static STBIR_RESIZE
create
(long address) Returns a newSTBIR_RESIZE
instance for the specified memory address.static STBIR_RESIZE.Buffer
create
(long address, int capacity) Create aSTBIR_RESIZE.Buffer
instance at the specified memory.static @Nullable STBIR_RESIZE
createSafe
(long address) static @Nullable STBIR_RESIZE.Buffer
createSafe
(long address, int capacity) 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.static STBIR_RESIZE
malloc()
Returns a newSTBIR_RESIZE
instance allocated withmemAlloc
.static STBIR_RESIZE.Buffer
malloc
(int capacity) Returns a newSTBIR_RESIZE.Buffer
instance allocated withmemAlloc
.static STBIR_RESIZE.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSTBIR_RESIZE.Buffer
instance allocated on the specifiedMemoryStack
.static STBIR_RESIZE
malloc
(MemoryStack stack) Returns a newSTBIR_RESIZE
instance allocated on the specifiedMemoryStack
.static int
ncalled_alloc
(long struct) Unsafe version ofcalled_alloc()
.static void
ncalled_alloc
(long struct, int value) Unsafe version ofcalled_alloc
.boolean
needs_rebuild
(boolean value) Sets the specified value to theneeds_rebuild
field.static int
nfast_alpha
(long struct) Unsafe version offast_alpha()
.static void
nfast_alpha
(long struct, int value) Unsafe version offast_alpha
.static int
nhorizontal_edge
(long struct) Unsafe version ofhorizontal_edge()
.static void
nhorizontal_edge
(long struct, int value) Unsafe version ofhorizontal_edge
.static int
nhorizontal_filter
(long struct) Unsafe version ofhorizontal_filter()
.static void
nhorizontal_filter
(long struct, int value) Unsafe version ofhorizontal_filter
.static @Nullable PointerBuffer
nhorizontal_filter_kernel
(long struct, int capacity) Unsafe version ofhorizontal_filter_kernel
.static void
nhorizontal_filter_kernel
(long struct, @Nullable PointerBuffer value) Unsafe version ofhorizontal_filter_kernel
.static @Nullable PointerBuffer
nhorizontal_filter_support
(long struct, int capacity) Unsafe version ofhorizontal_filter_support
.static void
nhorizontal_filter_support
(long struct, @Nullable PointerBuffer value) Unsafe version ofhorizontal_filter_support
.static @Nullable PointerBuffer
ninput_cb
(long struct, int capacity) Unsafe version ofinput_cb
.static void
ninput_cb
(long struct, @Nullable PointerBuffer value) Unsafe version ofinput_cb
.static int
ninput_data_type
(long struct) Unsafe version ofinput_data_type()
.static void
ninput_data_type
(long struct, int value) Unsafe version ofinput_data_type
.static int
ninput_h
(long struct) Unsafe version ofinput_h()
.static void
ninput_h
(long struct, int value) Unsafe version ofinput_h
.static int
ninput_pixel_layout_public
(long struct) Unsafe version ofinput_pixel_layout_public()
.static void
ninput_pixel_layout_public
(long struct, int value) Unsafe version ofinput_pixel_layout_public
.static ByteBuffer
ninput_pixels
(long struct, int capacity) Unsafe version ofinput_pixels
.static void
ninput_pixels
(long struct, ByteBuffer value) Unsafe version ofinput_pixels
.static double
ninput_s0
(long struct) Unsafe version ofinput_s0()
.static void
ninput_s0
(long struct, double value) Unsafe version ofinput_s0
.static double
ninput_s1
(long struct) Unsafe version ofinput_s1()
.static void
ninput_s1
(long struct, double value) Unsafe version ofinput_s1
.static int
ninput_stride_in_bytes
(long struct) Unsafe version ofinput_stride_in_bytes()
.static void
ninput_stride_in_bytes
(long struct, int value) Unsafe version ofinput_stride_in_bytes
.static double
ninput_t0
(long struct) Unsafe version ofinput_t0()
.static void
ninput_t0
(long struct, double value) Unsafe version ofinput_t0
.static double
ninput_t1
(long struct) Unsafe version ofinput_t1()
.static void
ninput_t1
(long struct, double value) Unsafe version ofinput_t1
.static int
ninput_w
(long struct) Unsafe version ofinput_w()
.static void
ninput_w
(long struct, int value) Unsafe version ofinput_w
.static int
nneeds_rebuild
(long struct) Unsafe version ofneeds_rebuild()
.static void
nneeds_rebuild
(long struct, int value) Unsafe version ofneeds_rebuild
.static @Nullable PointerBuffer
noutput_cb
(long struct, int capacity) Unsafe version ofoutput_cb
.static void
noutput_cb
(long struct, @Nullable PointerBuffer value) Unsafe version ofoutput_cb
.static int
noutput_data_type
(long struct) Unsafe version ofoutput_data_type()
.static void
noutput_data_type
(long struct, int value) Unsafe version ofoutput_data_type
.static int
noutput_h
(long struct) Unsafe version ofoutput_h()
.static void
noutput_h
(long struct, int value) Unsafe version ofoutput_h
.static int
noutput_pixel_layout_public
(long struct) Unsafe version ofoutput_pixel_layout_public()
.static void
noutput_pixel_layout_public
(long struct, int value) Unsafe version ofoutput_pixel_layout_public
.static @Nullable ByteBuffer
noutput_pixels
(long struct, int capacity) Unsafe version ofoutput_pixels
.static void
noutput_pixels
(long struct, @Nullable ByteBuffer value) Unsafe version ofoutput_pixels
.static int
noutput_stride_in_bytes
(long struct) Unsafe version ofoutput_stride_in_bytes()
.static void
noutput_stride_in_bytes
(long struct, int value) Unsafe version ofoutput_stride_in_bytes
.static int
noutput_subh
(long struct) Unsafe version ofoutput_subh()
.static void
noutput_subh
(long struct, int value) Unsafe version ofoutput_subh
.static int
noutput_subw
(long struct) Unsafe version ofoutput_subw()
.static void
noutput_subw
(long struct, int value) Unsafe version ofoutput_subw
.static int
noutput_subx
(long struct) Unsafe version ofoutput_subx()
.static void
noutput_subx
(long struct, int value) Unsafe version ofoutput_subx
.static int
noutput_suby
(long struct) Unsafe version ofoutput_suby()
.static void
noutput_suby
(long struct, int value) Unsafe version ofoutput_suby
.static int
noutput_w
(long struct) Unsafe version ofoutput_w()
.static void
noutput_w
(long struct, int value) Unsafe version ofoutput_w
.static long
nsamplers
(long struct) Unsafe version ofsamplers()
.static void
nsamplers
(long struct, long value) Unsafe version ofsamplers
.static int
nsplits
(long struct) Unsafe version ofsplits()
.static void
nsplits
(long struct, int value) Unsafe version ofsplits
.static long
nuser_data
(long struct) Unsafe version ofuser_data()
.static void
nuser_data
(long struct, long value) Unsafe version ofuser_data
.static int
nvertical_edge
(long struct) Unsafe version ofvertical_edge()
.static void
nvertical_edge
(long struct, int value) Unsafe version ofvertical_edge
.static int
nvertical_filter
(long struct) Unsafe version ofvertical_filter()
.static void
nvertical_filter
(long struct, int value) Unsafe version ofvertical_filter
.static @Nullable PointerBuffer
nvertical_filter_kernel
(long struct, int capacity) Unsafe version ofvertical_filter_kernel
.static void
nvertical_filter_kernel
(long struct, @Nullable PointerBuffer value) Unsafe version ofvertical_filter_kernel
.static @Nullable PointerBuffer
nvertical_filter_support
(long struct, int capacity) Unsafe version ofvertical_filter_support
.static void
nvertical_filter_support
(long struct, @Nullable PointerBuffer value) Unsafe version ofvertical_filter_support
.@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.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.int
sizeof()
Returnssizeof(struct)
.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.static void
validate
(long struct) Validates pointer members that should not beNULL
.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.Pointer.Default
address, equals, hashCode, toString
Methods 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_RESIZE
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<STBIR_RESIZE>
-
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. -
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_RESIZE
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSTBIR_RESIZE
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSTBIR_RESIZE
instance allocated withBufferUtils
. -
create
Returns a newSTBIR_RESIZE
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSTBIR_RESIZE.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSTBIR_RESIZE.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSTBIR_RESIZE.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSTBIR_RESIZE.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSTBIR_RESIZE
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSTBIR_RESIZE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSTBIR_RESIZE.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSTBIR_RESIZE.Buffer
instance allocated on the specifiedMemoryStack
and 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
-