java.lang.Object
overrungl.stb.STBImageResize
STBImageResize
relies on preview features of the Java platform:
STBImageResize
refers to one or more preview APIs:MemorySegment
,SegmentAllocator
.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
The STB image resizer.
- Since:
- 0.1.0
- Author:
- squid233
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
resize
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int datatype, int numChannels, int alphaChannel, int flags, int edgeModeHorizontal, int edgeModeVertical, int filterHorizontal, int filterVertical, int space, MemorySegmentPREVIEW allocContext) static boolean
resize
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, STBIRDatatype datatype, int numChannels, int alphaChannel, int flags, STBIREdge edgeModeHorizontal, STBIREdge edgeModeVertical, STBIRFilter filterHorizontal, STBIRFilter filterVertical, STBIRColorspace space, MemorySegmentPREVIEW allocContext) static boolean
resizeFloat
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels) static boolean
resizeFloat
(SegmentAllocatorPREVIEW allocator, float[] inputPixels, int inputW, int inputH, int inputStrideInBytes, float[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels) static boolean
resizeFloatGeneric
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, int edgeWrapMode, int filter, int space, MemorySegmentPREVIEW allocContext) static boolean
resizeFloatGeneric
(SegmentAllocatorPREVIEW allocator, float[] inputPixels, int inputW, int inputH, int inputStrideInBytes, float[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, STBIREdge edgeWrapMode, STBIRFilter filter, STBIRColorspace space, MemorySegmentPREVIEW allocContext) static boolean
resizeRegion
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int datatype, int numChannels, int alphaChannel, int flags, int edgeModeHorizontal, int edgeModeVertical, int filterHorizontal, int filterVertical, int space, MemorySegmentPREVIEW allocContext, float s0, float t0, float s1, float t1) static boolean
resizeRegion
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, STBIRDatatype datatype, int numChannels, int alphaChannel, int flags, STBIREdge edgeModeHorizontal, STBIREdge edgeModeVertical, STBIRFilter filterHorizontal, STBIRFilter filterVertical, STBIRColorspace space, MemorySegmentPREVIEW allocContext, float s0, float t0, float s1, float t1) static boolean
resizeSubpixel
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int datatype, int numChannels, int alphaChannel, int flags, int edgeModeHorizontal, int edgeModeVertical, int filterHorizontal, int filterVertical, int space, MemorySegmentPREVIEW allocContext, float xScale, float yScale, float xOffset, float yOffset) static boolean
resizeSubpixel
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, STBIRDatatype datatype, int numChannels, int alphaChannel, int flags, STBIREdge edgeModeHorizontal, STBIREdge edgeModeVertical, STBIRFilter filterHorizontal, STBIRFilter filterVertical, STBIRColorspace space, MemorySegmentPREVIEW allocContext, float xScale, float yScale, float xOffset, float yOffset) static boolean
resizeUint16Generic
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, int edgeWrapMode, int filter, int space, MemorySegmentPREVIEW allocContext) static boolean
resizeUint16Generic
(SegmentAllocatorPREVIEW allocator, short[] inputPixels, int inputW, int inputH, int inputStrideInBytes, short[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, STBIREdge edgeWrapMode, STBIRFilter filter, STBIRColorspace space, MemorySegmentPREVIEW allocContext) static boolean
resizeUint8
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels) static boolean
resizeUint8
(SegmentAllocatorPREVIEW allocator, byte[] inputPixels, int inputW, int inputH, int inputStrideInBytes, byte[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels) static boolean
resizeUint8Generic
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, int edgeWrapMode, int filter, int space, MemorySegmentPREVIEW allocContext) static boolean
resizeUint8Generic
(SegmentAllocatorPREVIEW allocator, byte[] inputPixels, int inputW, int inputH, int inputStrideInBytes, byte[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, STBIREdge edgeWrapMode, STBIRFilter filter, STBIRColorspace space, MemorySegmentPREVIEW allocContext) static boolean
resizeUint8Srgb
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags) static boolean
resizeUint8Srgb
(SegmentAllocatorPREVIEW allocator, byte[] inputPixels, int inputW, int inputH, int inputStrideInBytes, byte[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags) static boolean
resizeUint8SrgbEdgemode
(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, int edgeWrapMode) static boolean
resizeUint8SrgbEdgemode
(SegmentAllocatorPREVIEW allocator, byte[] inputPixels, int inputW, int inputH, int inputStrideInBytes, byte[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, STBIREdge edgeWrapMode)
-
Method Details
-
resizeUint8
public static boolean resizeUint8(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels) -
resizeUint8
public static boolean resizeUint8(SegmentAllocatorPREVIEW allocator, byte[] inputPixels, int inputW, int inputH, int inputStrideInBytes, byte[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels) -
resizeFloat
public static boolean resizeFloat(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels) -
resizeFloat
public static boolean resizeFloat(SegmentAllocatorPREVIEW allocator, float[] inputPixels, int inputW, int inputH, int inputStrideInBytes, float[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels) -
resizeUint8Srgb
public static boolean resizeUint8Srgb(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags) -
resizeUint8Srgb
public static boolean resizeUint8Srgb(SegmentAllocatorPREVIEW allocator, byte[] inputPixels, int inputW, int inputH, int inputStrideInBytes, byte[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags) -
resizeUint8SrgbEdgemode
public static boolean resizeUint8SrgbEdgemode(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, int edgeWrapMode) -
resizeUint8SrgbEdgemode
public static boolean resizeUint8SrgbEdgemode(SegmentAllocatorPREVIEW allocator, byte[] inputPixels, int inputW, int inputH, int inputStrideInBytes, byte[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, STBIREdge edgeWrapMode) -
resizeUint8Generic
public static boolean resizeUint8Generic(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, int edgeWrapMode, int filter, int space, MemorySegmentPREVIEW allocContext) -
resizeUint8Generic
public static boolean resizeUint8Generic(SegmentAllocatorPREVIEW allocator, byte[] inputPixels, int inputW, int inputH, int inputStrideInBytes, byte[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, STBIREdge edgeWrapMode, STBIRFilter filter, STBIRColorspace space, MemorySegmentPREVIEW allocContext) -
resizeUint16Generic
public static boolean resizeUint16Generic(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, int edgeWrapMode, int filter, int space, MemorySegmentPREVIEW allocContext) -
resizeUint16Generic
public static boolean resizeUint16Generic(SegmentAllocatorPREVIEW allocator, short[] inputPixels, int inputW, int inputH, int inputStrideInBytes, short[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, STBIREdge edgeWrapMode, STBIRFilter filter, STBIRColorspace space, MemorySegmentPREVIEW allocContext) -
resizeFloatGeneric
public static boolean resizeFloatGeneric(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, int edgeWrapMode, int filter, int space, MemorySegmentPREVIEW allocContext) -
resizeFloatGeneric
public static boolean resizeFloatGeneric(SegmentAllocatorPREVIEW allocator, float[] inputPixels, int inputW, int inputH, int inputStrideInBytes, float[] outputPixels, int outputW, int outputH, int outputStrideInBytes, int numChannels, int alphaChannel, int flags, STBIREdge edgeWrapMode, STBIRFilter filter, STBIRColorspace space, MemorySegmentPREVIEW allocContext) -
resize
public static boolean resize(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int datatype, int numChannels, int alphaChannel, int flags, int edgeModeHorizontal, int edgeModeVertical, int filterHorizontal, int filterVertical, int space, MemorySegmentPREVIEW allocContext) -
resize
public static boolean resize(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, STBIRDatatype datatype, int numChannels, int alphaChannel, int flags, STBIREdge edgeModeHorizontal, STBIREdge edgeModeVertical, STBIRFilter filterHorizontal, STBIRFilter filterVertical, STBIRColorspace space, MemorySegmentPREVIEW allocContext) -
resizeSubpixel
public static boolean resizeSubpixel(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int datatype, int numChannels, int alphaChannel, int flags, int edgeModeHorizontal, int edgeModeVertical, int filterHorizontal, int filterVertical, int space, MemorySegmentPREVIEW allocContext, float xScale, float yScale, float xOffset, float yOffset) -
resizeSubpixel
public static boolean resizeSubpixel(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, STBIRDatatype datatype, int numChannels, int alphaChannel, int flags, STBIREdge edgeModeHorizontal, STBIREdge edgeModeVertical, STBIRFilter filterHorizontal, STBIRFilter filterVertical, STBIRColorspace space, MemorySegmentPREVIEW allocContext, float xScale, float yScale, float xOffset, float yOffset) -
resizeRegion
public static boolean resizeRegion(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, int datatype, int numChannels, int alphaChannel, int flags, int edgeModeHorizontal, int edgeModeVertical, int filterHorizontal, int filterVertical, int space, MemorySegmentPREVIEW allocContext, float s0, float t0, float s1, float t1) -
resizeRegion
public static boolean resizeRegion(MemorySegmentPREVIEW inputPixels, int inputW, int inputH, int inputStrideInBytes, MemorySegmentPREVIEW outputPixels, int outputW, int outputH, int outputStrideInBytes, STBIRDatatype datatype, int numChannels, int alphaChannel, int flags, STBIREdge edgeModeHorizontal, STBIREdge edgeModeVertical, STBIRFilter filterHorizontal, STBIRFilter filterVertical, STBIRColorspace space, MemorySegmentPREVIEW allocContext, float s0, float t0, float s1, float t1)
-
STBImageResize
when preview features are enabled.