Slight refactor to put ScalingFactor into its own class (mainly because the $ in the class name was wreaking havoc on the build scripts, but also to add a few convenience methods to it) and to create a separate loader class so we can provide a .jar file with the MinGW distribution that loads the correct DLL
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@557 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -34,21 +34,6 @@ package org.libjpegturbo.turbojpeg;
|
||||
final public class TJ {
|
||||
|
||||
|
||||
/**
|
||||
* Fractional scaling factor
|
||||
*/
|
||||
final public class ScalingFactor {
|
||||
/**
|
||||
* Numerator
|
||||
*/
|
||||
public int num = 1;
|
||||
/**
|
||||
* Denominator
|
||||
*/
|
||||
public int denom = 1;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* The number of chrominance subsampling options
|
||||
*/
|
||||
@@ -323,10 +308,10 @@ final public class TJ {
|
||||
* @return a list of fractional scaling factors that the JPEG decompressor in
|
||||
* this implementation of TurboJPEG supports
|
||||
*/
|
||||
public native static ScalingFactor[] getScalingFactors()
|
||||
public native static TJScalingFactor[] getScalingFactors()
|
||||
throws Exception;
|
||||
|
||||
static {
|
||||
System.loadLibrary("turbojpeg");
|
||||
TJLoader.load();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user