Interface libturbojpeg
-
public interface libturbojpeg
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jnr.ffi.Pointer
tjAlloc(int bytes)
long
tjBufSize(int width, int height, TJSAMP subsamp)
int
tjCompress2(jnr.ffi.Pointer handle, Buffer srcBuf, int width, int pitch, int height, TJPF pixelFormat, jnr.ffi.byref.PointerByReference jpegBuf, jnr.ffi.byref.NativeLongByReference jpegSize, TJSAMP jpegSubsamp, int jpegQual, int flags)
int
tjDecompress2(jnr.ffi.Pointer handle, Buffer jpegBuf, long jpegSize, Buffer dstBuf, int width, int pitch, int height, TJPF pixelFormat, int flags)
int
tjDecompressHeader3(jnr.ffi.Pointer handle, Buffer jpegBuf, long jpegSize, jnr.ffi.byref.IntByReference width, jnr.ffi.byref.IntByReference height, jnr.ffi.byref.IntByReference jpegSubsamp, jnr.ffi.byref.IntByReference jpegColorspace)
int
tjDestroy(jnr.ffi.Pointer handle)
void
tjFree(jnr.ffi.Pointer bufPtr)
String
tjGetErrorStr()
jnr.ffi.Pointer
tjGetScalingFactors(jnr.ffi.byref.IntByReference numscalingfactors)
jnr.ffi.Pointer
tjInitCompress()
jnr.ffi.Pointer
tjInitDecompress()
jnr.ffi.Pointer
tjInitTransform()
int
tjTransform(jnr.ffi.Pointer handle, Buffer jpegBuf, long jpegSize, int n, jnr.ffi.byref.PointerByReference outBuf, jnr.ffi.byref.NativeLongByReference dstSizes, tjtransform transform, int flags)
-
-
-
Method Detail
-
tjCompress2
int tjCompress2(jnr.ffi.Pointer handle, Buffer srcBuf, int width, int pitch, int height, TJPF pixelFormat, jnr.ffi.byref.PointerByReference jpegBuf, jnr.ffi.byref.NativeLongByReference jpegSize, TJSAMP jpegSubsamp, int jpegQual, int flags)
-
tjDecompress2
int tjDecompress2(jnr.ffi.Pointer handle, Buffer jpegBuf, long jpegSize, Buffer dstBuf, int width, int pitch, int height, TJPF pixelFormat, int flags)
-
tjDecompressHeader3
int tjDecompressHeader3(jnr.ffi.Pointer handle, Buffer jpegBuf, long jpegSize, jnr.ffi.byref.IntByReference width, jnr.ffi.byref.IntByReference height, jnr.ffi.byref.IntByReference jpegSubsamp, jnr.ffi.byref.IntByReference jpegColorspace)
-
tjTransform
int tjTransform(jnr.ffi.Pointer handle, Buffer jpegBuf, long jpegSize, int n, jnr.ffi.byref.PointerByReference outBuf, jnr.ffi.byref.NativeLongByReference dstSizes, tjtransform transform, int flags)
-
tjDestroy
int tjDestroy(jnr.ffi.Pointer handle)
-
tjFree
void tjFree(jnr.ffi.Pointer bufPtr)
-
tjGetErrorStr
String tjGetErrorStr()
-
tjGetScalingFactors
jnr.ffi.Pointer tjGetScalingFactors(jnr.ffi.byref.IntByReference numscalingfactors)
-
tjInitCompress
jnr.ffi.Pointer tjInitCompress()
-
tjInitDecompress
jnr.ffi.Pointer tjInitDecompress()
-
tjInitTransform
jnr.ffi.Pointer tjInitTransform()
-
tjAlloc
jnr.ffi.Pointer tjAlloc(int bytes)
-
tjBufSize
long tjBufSize(int width, int height, TJSAMP subsamp)
-
-