Go ahead and deprecate the old constructor in 1.3.1 instead of in 1.4, since it uses a deprecated method
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1172 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -82,6 +82,7 @@ function windowTitle()
|
|||||||
<HR SIZE="4" NOSHADE>
|
<HR SIZE="4" NOSHADE>
|
||||||
<B>Contents</B><UL>
|
<B>Contents</B><UL>
|
||||||
<LI><A HREF="#method">Deprecated Methods</A>
|
<LI><A HREF="#method">Deprecated Methods</A>
|
||||||
|
<LI><A HREF="#constructor">Deprecated Constructors</A>
|
||||||
</UL>
|
</UL>
|
||||||
|
|
||||||
<A NAME="method"><!-- --></A>
|
<A NAME="method"><!-- --></A>
|
||||||
@@ -105,6 +106,21 @@ function windowTitle()
|
|||||||
</TABLE>
|
</TABLE>
|
||||||
|
|
||||||
<P>
|
<P>
|
||||||
|
<A NAME="constructor"><!-- --></A>
|
||||||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||||
|
<B>Deprecated Constructors</B></FONT></TH>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD><A HREF="org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int)">org.libjpegturbo.turbojpeg.TJCompressor(byte[], int, int, int, int)</A>
|
||||||
|
<BR>
|
||||||
|
<I>Use
|
||||||
|
<A HREF="org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int, int, int)"><CODE>TJCompressor.TJCompressor(byte[], int, int, int, int, int, int)</CODE></A> instead.</I> </TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
|
||||||
|
<P>
|
||||||
<HR>
|
<HR>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -499,16 +499,15 @@ Constructor for class org.libjpegturbo.turbojpeg.<A HREF="./org/libjpegturbo/tur
|
|||||||
<DT><A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg"><B>TJCompressor</B></A> - Class in <A HREF="./org/libjpegturbo/turbojpeg/package-summary.html">org.libjpegturbo.turbojpeg</A><DD>TurboJPEG compressor<DT><A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor()"><B>TJCompressor()</B></A> -
|
<DT><A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg"><B>TJCompressor</B></A> - Class in <A HREF="./org/libjpegturbo/turbojpeg/package-summary.html">org.libjpegturbo.turbojpeg</A><DD>TurboJPEG compressor<DT><A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor()"><B>TJCompressor()</B></A> -
|
||||||
Constructor for class org.libjpegturbo.turbojpeg.<A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg">TJCompressor</A>
|
Constructor for class org.libjpegturbo.turbojpeg.<A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg">TJCompressor</A>
|
||||||
<DD>Create a TurboJPEG compressor instance.
|
<DD>Create a TurboJPEG compressor instance.
|
||||||
<DT><A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int)"><B>TJCompressor(byte[], int, int, int, int)</B></A> -
|
|
||||||
Constructor for class org.libjpegturbo.turbojpeg.<A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg">TJCompressor</A>
|
|
||||||
<DD>Create a TurboJPEG compressor instance and associate the uncompressed
|
|
||||||
source image stored in <code>srcImage</code> with the newly-created
|
|
||||||
instance.
|
|
||||||
<DT><A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int, int, int)"><B>TJCompressor(byte[], int, int, int, int, int, int)</B></A> -
|
<DT><A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int, int, int)"><B>TJCompressor(byte[], int, int, int, int, int, int)</B></A> -
|
||||||
Constructor for class org.libjpegturbo.turbojpeg.<A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg">TJCompressor</A>
|
Constructor for class org.libjpegturbo.turbojpeg.<A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg">TJCompressor</A>
|
||||||
<DD>Create a TurboJPEG compressor instance and associate the uncompressed
|
<DD>Create a TurboJPEG compressor instance and associate the uncompressed
|
||||||
source image stored in <code>srcImage</code> with the newly-created
|
source image stored in <code>srcImage</code> with the newly-created
|
||||||
instance.
|
instance.
|
||||||
|
<DT><A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int)"><B>TJCompressor(byte[], int, int, int, int)</B></A> -
|
||||||
|
Constructor for class org.libjpegturbo.turbojpeg.<A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg">TJCompressor</A>
|
||||||
|
<DD><B>Deprecated.</B> <I>Use
|
||||||
|
<A HREF="./org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int, int, int)"><CODE>TJCompressor.TJCompressor(byte[], int, int, int, int, int, int)</CODE></A> instead.</I>
|
||||||
<DT><A HREF="./org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg"><B>TJCustomFilter</B></A> - Interface in <A HREF="./org/libjpegturbo/turbojpeg/package-summary.html">org.libjpegturbo.turbojpeg</A><DD>Custom filter callback interface<DT><A HREF="./org/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegturbo.turbojpeg"><B>TJDecompressor</B></A> - Class in <A HREF="./org/libjpegturbo/turbojpeg/package-summary.html">org.libjpegturbo.turbojpeg</A><DD>TurboJPEG decompressor<DT><A HREF="./org/libjpegturbo/turbojpeg/TJDecompressor.html#TJDecompressor()"><B>TJDecompressor()</B></A> -
|
<DT><A HREF="./org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg"><B>TJCustomFilter</B></A> - Interface in <A HREF="./org/libjpegturbo/turbojpeg/package-summary.html">org.libjpegturbo.turbojpeg</A><DD>Custom filter callback interface<DT><A HREF="./org/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegturbo.turbojpeg"><B>TJDecompressor</B></A> - Class in <A HREF="./org/libjpegturbo/turbojpeg/package-summary.html">org.libjpegturbo.turbojpeg</A><DD>TurboJPEG decompressor<DT><A HREF="./org/libjpegturbo/turbojpeg/TJDecompressor.html#TJDecompressor()"><B>TJDecompressor()</B></A> -
|
||||||
Constructor for class org.libjpegturbo.turbojpeg.<A HREF="./org/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegturbo.turbojpeg">TJDecompressor</A>
|
Constructor for class org.libjpegturbo.turbojpeg.<A HREF="./org/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegturbo.turbojpeg">TJDecompressor</A>
|
||||||
<DD>Create a TurboJPEG decompresssor instance.
|
<DD>Create a TurboJPEG decompresssor instance.
|
||||||
|
|||||||
@@ -127,9 +127,8 @@ TurboJPEG compressor
|
|||||||
int pixelFormat)</CODE>
|
int pixelFormat)</CODE>
|
||||||
|
|
||||||
<BR>
|
<BR>
|
||||||
Create a TurboJPEG compressor instance and associate the uncompressed
|
<B>Deprecated.</B> <I>Use
|
||||||
source image stored in <code>srcImage</code> with the newly-created
|
<A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int, int, int)"><CODE>TJCompressor(byte[], int, int, int, int, int, int)</CODE></A> instead.</I></TD>
|
||||||
instance.</TD>
|
|
||||||
</TR>
|
</TR>
|
||||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int, int, int)">TJCompressor</A></B>(byte[] srcImage,
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int, int, int)">TJCompressor</A></B>(byte[] srcImage,
|
||||||
@@ -342,28 +341,6 @@ public <B>TJCompressor</B>()
|
|||||||
</DL>
|
</DL>
|
||||||
<HR>
|
<HR>
|
||||||
|
|
||||||
<A NAME="TJCompressor(byte[], int, int, int, int)"><!-- --></A><H3>
|
|
||||||
TJCompressor</H3>
|
|
||||||
<PRE>
|
|
||||||
public <B>TJCompressor</B>(byte[] srcImage,
|
|
||||||
int width,
|
|
||||||
int pitch,
|
|
||||||
int height,
|
|
||||||
int pixelFormat)
|
|
||||||
throws java.lang.Exception</PRE>
|
|
||||||
<DL>
|
|
||||||
<DD>Create a TurboJPEG compressor instance and associate the uncompressed
|
|
||||||
source image stored in <code>srcImage</code> with the newly-created
|
|
||||||
instance.
|
|
||||||
<P>
|
|
||||||
<DL>
|
|
||||||
<DT><B>Parameters:</B><DD><CODE>srcImage</CODE> - see <A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html#setSourceImage(byte[], int, int, int, int, int, int)"><CODE>setSourceImage(byte[], int, int, int, int, int, int)</CODE></A> for description<DD><CODE>width</CODE> - see <A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html#setSourceImage(byte[], int, int, int, int, int, int)"><CODE>setSourceImage(byte[], int, int, int, int, int, int)</CODE></A> for description<DD><CODE>pitch</CODE> - see <A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html#setSourceImage(byte[], int, int, int, int, int, int)"><CODE>setSourceImage(byte[], int, int, int, int, int, int)</CODE></A> for description<DD><CODE>height</CODE> - see <A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html#setSourceImage(byte[], int, int, int, int, int, int)"><CODE>setSourceImage(byte[], int, int, int, int, int, int)</CODE></A> for description<DD><CODE>pixelFormat</CODE> - pixel format of the source image (one of
|
|
||||||
<A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html" title="class in org.libjpegturbo.turbojpeg"><CODE>TJ.PF_*</CODE></A>)
|
|
||||||
<DT><B>Throws:</B>
|
|
||||||
<DD><CODE>java.lang.Exception</CODE></DL>
|
|
||||||
</DL>
|
|
||||||
<HR>
|
|
||||||
|
|
||||||
<A NAME="TJCompressor(byte[], int, int, int, int, int, int)"><!-- --></A><H3>
|
<A NAME="TJCompressor(byte[], int, int, int, int, int, int)"><!-- --></A><H3>
|
||||||
TJCompressor</H3>
|
TJCompressor</H3>
|
||||||
<PRE>
|
<PRE>
|
||||||
@@ -386,6 +363,27 @@ public <B>TJCompressor</B>(byte[] srcImage,
|
|||||||
<DT><B>Throws:</B>
|
<DT><B>Throws:</B>
|
||||||
<DD><CODE>java.lang.Exception</CODE></DL>
|
<DD><CODE>java.lang.Exception</CODE></DL>
|
||||||
</DL>
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="TJCompressor(byte[], int, int, int, int)"><!-- --></A><H3>
|
||||||
|
TJCompressor</H3>
|
||||||
|
<PRE>
|
||||||
|
<FONT SIZE="-1">@Deprecated
|
||||||
|
</FONT>public <B>TJCompressor</B>(byte[] srcImage,
|
||||||
|
int width,
|
||||||
|
int pitch,
|
||||||
|
int height,
|
||||||
|
int pixelFormat)
|
||||||
|
throws java.lang.Exception</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><B>Deprecated.</B> <I>Use
|
||||||
|
<A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html#TJCompressor(byte[], int, int, int, int, int, int)"><CODE>TJCompressor(byte[], int, int, int, int, int, int)</CODE></A> instead.</I>
|
||||||
|
<P>
|
||||||
|
<DL>
|
||||||
|
|
||||||
|
<DT><B>Throws:</B>
|
||||||
|
<DD><CODE>java.lang.Exception</CODE></DL>
|
||||||
|
</DL>
|
||||||
|
|
||||||
<!-- ============ METHOD DETAIL ========== -->
|
<!-- ============ METHOD DETAIL ========== -->
|
||||||
|
|
||||||
@@ -435,7 +433,8 @@ public void <B>setSourceImage</B>(byte[] srcImage,
|
|||||||
<A NAME="setSourceImage(byte[], int, int, int, int)"><!-- --></A><H3>
|
<A NAME="setSourceImage(byte[], int, int, int, int)"><!-- --></A><H3>
|
||||||
setSourceImage</H3>
|
setSourceImage</H3>
|
||||||
<PRE>
|
<PRE>
|
||||||
public void <B>setSourceImage</B>(byte[] srcImage,
|
<FONT SIZE="-1">@Deprecated
|
||||||
|
</FONT>public void <B>setSourceImage</B>(byte[] srcImage,
|
||||||
int width,
|
int width,
|
||||||
int pitch,
|
int pitch,
|
||||||
int height,
|
int height,
|
||||||
|
|||||||
@@ -777,7 +777,8 @@ public void <B>decompress</B>(byte[] dstBuf,
|
|||||||
<A NAME="decompress(byte[], int, int, int, int, int)"><!-- --></A><H3>
|
<A NAME="decompress(byte[], int, int, int, int, int)"><!-- --></A><H3>
|
||||||
decompress</H3>
|
decompress</H3>
|
||||||
<PRE>
|
<PRE>
|
||||||
public void <B>decompress</B>(byte[] dstBuf,
|
<FONT SIZE="-1">@Deprecated
|
||||||
|
</FONT>public void <B>decompress</B>(byte[] dstBuf,
|
||||||
int desiredWidth,
|
int desiredWidth,
|
||||||
int pitch,
|
int pitch,
|
||||||
int desiredHeight,
|
int desiredHeight,
|
||||||
|
|||||||
@@ -46,27 +46,6 @@ public class TJCompressor {
|
|||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a TurboJPEG compressor instance and associate the uncompressed
|
|
||||||
* source image stored in <code>srcImage</code> 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
|
* Create a TurboJPEG compressor instance and associate the uncompressed
|
||||||
* source image stored in <code>srcImage</code> with the newly-created
|
* source image stored in <code>srcImage</code> with the newly-created
|
||||||
@@ -92,6 +71,16 @@ public class TJCompressor {
|
|||||||
setSourceImage(srcImage, x, y, width, pitch, height, pixelFormat);
|
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.
|
* Associate an uncompressed source image with this compressor instance.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user