diff --git a/java/doc/deprecated-list.html b/java/doc/deprecated-list.html index 37ca5155..65951d2a 100644 --- a/java/doc/deprecated-list.html +++ b/java/doc/deprecated-list.html @@ -82,6 +82,7 @@ function windowTitle()
Contents @@ -105,6 +106,21 @@ function windowTitle()  

+ + + + + + + + +
+Deprecated Constructors
org.libjpegturbo.turbojpeg.TJCompressor(byte[], int, int, int, int) +
+          Use + TJCompressor.TJCompressor(byte[], int, int, int, int, int, int) instead. 
+  +


diff --git a/java/doc/index-all.html b/java/doc/index-all.html index 8560b85c..e38d2302 100644 --- a/java/doc/index-all.html +++ b/java/doc/index-all.html @@ -499,16 +499,15 @@ Constructor for class org.libjpegturbo.turbojpeg.TJCompressor - Class in org.libjpegturbo.turbojpeg
TurboJPEG compressor
TJCompressor() - Constructor for class org.libjpegturbo.turbojpeg.TJCompressor
Create a TurboJPEG compressor instance. -
TJCompressor(byte[], int, int, int, int) - -Constructor for class org.libjpegturbo.turbojpeg.TJCompressor -
Create a TurboJPEG compressor instance and associate the uncompressed - source image stored in srcImage with the newly-created - instance.
TJCompressor(byte[], int, int, int, int, int, int) - Constructor for class org.libjpegturbo.turbojpeg.TJCompressor
Create a TurboJPEG compressor instance and associate the uncompressed source image stored in srcImage with the newly-created instance. +
TJCompressor(byte[], int, int, int, int) - +Constructor for class org.libjpegturbo.turbojpeg.TJCompressor +
Deprecated. Use + TJCompressor.TJCompressor(byte[], int, int, int, int, int, int) instead.
TJCustomFilter - Interface in org.libjpegturbo.turbojpeg
Custom filter callback interface
TJDecompressor - Class in org.libjpegturbo.turbojpeg
TurboJPEG decompressor
TJDecompressor() - Constructor for class org.libjpegturbo.turbojpeg.TJDecompressor
Create a TurboJPEG decompresssor instance. diff --git a/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html b/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html index 7fa3d0fa..46feb376 100644 --- a/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html +++ b/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html @@ -127,9 +127,8 @@ TurboJPEG compressor int pixelFormat)
-          Create a TurboJPEG compressor instance and associate the uncompressed - source image stored in srcImage with the newly-created - instance. +          Deprecated. Use + TJCompressor(byte[], int, int, int, int, int, int) instead. TJCompressor(byte[] srcImage, @@ -342,28 +341,6 @@ public TJCompressor()
-

-TJCompressor

-
-public TJCompressor(byte[] srcImage,
-                    int width,
-                    int pitch,
-                    int height,
-                    int pixelFormat)
-             throws java.lang.Exception
-
-
Create a TurboJPEG compressor instance and associate the uncompressed - source image stored in srcImage with the newly-created - instance. -

-

-
Parameters:
srcImage - see setSourceImage(byte[], int, int, int, int, int, int) for description
width - see setSourceImage(byte[], int, int, int, int, int, int) for description
pitch - see setSourceImage(byte[], int, int, int, int, int, int) for description
height - see setSourceImage(byte[], int, int, int, int, int, int) for description
pixelFormat - pixel format of the source image (one of - TJ.PF_*) -
Throws: -
java.lang.Exception
-
-
-

TJCompressor

@@ -386,6 +363,27 @@ public TJCompressor(byte[] srcImage,
 
Throws:
java.lang.Exception +
+ +

+TJCompressor

+
+@Deprecated
+public TJCompressor(byte[] srcImage,
+                               int width,
+                               int pitch,
+                               int height,
+                               int pixelFormat)
+             throws java.lang.Exception
+
+
Deprecated. Use + TJCompressor(byte[], int, int, int, int, int, int) instead. +

+

+ +
Throws: +
java.lang.Exception
+
@@ -435,11 +433,12 @@ public void setSourceImage(byte[] srcImage,

setSourceImage

-public void setSourceImage(byte[] srcImage,
-                           int width,
-                           int pitch,
-                           int height,
-                           int pixelFormat)
+@Deprecated
+public void setSourceImage(byte[] srcImage,
+                                      int width,
+                                      int pitch,
+                                      int height,
+                                      int pixelFormat)
                     throws java.lang.Exception
Deprecated. Use diff --git a/java/doc/org/libjpegturbo/turbojpeg/TJDecompressor.html b/java/doc/org/libjpegturbo/turbojpeg/TJDecompressor.html index 8f037361..5d24f312 100644 --- a/java/doc/org/libjpegturbo/turbojpeg/TJDecompressor.html +++ b/java/doc/org/libjpegturbo/turbojpeg/TJDecompressor.html @@ -777,12 +777,13 @@ public void decompress(byte[] dstBuf,

decompress

-public void decompress(byte[] dstBuf,
-                       int desiredWidth,
-                       int pitch,
-                       int desiredHeight,
-                       int pixelFormat,
-                       int flags)
+@Deprecated
+public void decompress(byte[] dstBuf,
+                                  int desiredWidth,
+                                  int pitch,
+                                  int desiredHeight,
+                                  int pixelFormat,
+                                  int flags)
                 throws java.lang.Exception
Deprecated. Use diff --git a/java/org/libjpegturbo/turbojpeg/TJCompressor.java b/java/org/libjpegturbo/turbojpeg/TJCompressor.java index 69b630f9..8c4afdfc 100644 --- a/java/org/libjpegturbo/turbojpeg/TJCompressor.java +++ b/java/org/libjpegturbo/turbojpeg/TJCompressor.java @@ -46,27 +46,6 @@ public class TJCompressor { init(); } - /** - * Create a TurboJPEG compressor instance and associate the uncompressed - * source image stored in srcImage with the newly-created - * instance. - * - * @param srcImage see {@link #setSourceImage} for description - * - * @param width see {@link #setSourceImage} for description - * - * @param pitch see {@link #setSourceImage} for description - * - * @param height see {@link #setSourceImage} for description - * - * @param pixelFormat pixel format of the source image (one of - * {@link TJ TJ.PF_*}) - */ - public TJCompressor(byte[] srcImage, int width, int pitch, int height, - int pixelFormat) throws Exception { - setSourceImage(srcImage, width, pitch, height, pixelFormat); - } - /** * Create a TurboJPEG compressor instance and associate the uncompressed * source image stored in srcImage with the newly-created @@ -92,6 +71,16 @@ public class TJCompressor { setSourceImage(srcImage, x, y, width, pitch, height, pixelFormat); } + /** + * @deprecated Use + * {@link #TJCompressor(byte[], int, int, int, int, int, int)} instead. + */ + @Deprecated + public TJCompressor(byte[] srcImage, int width, int pitch, int height, + int pixelFormat) throws Exception { + setSourceImage(srcImage, width, pitch, height, pixelFormat); + } + /** * Associate an uncompressed source image with this compressor instance. *