|
|
|
|
@@ -115,6 +115,46 @@ TurboJPEG utility class (cannot be instantiated)
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
|
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
|
|
|
<CODE>static int</CODE></FONT></TD>
|
|
|
|
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#CS_CMYK">CS_CMYK</A></B></CODE>
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
CMYK colorspace.</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
|
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
|
|
|
<CODE>static int</CODE></FONT></TD>
|
|
|
|
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#CS_GRAY">CS_GRAY</A></B></CODE>
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
Grayscale colorspace.</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
|
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
|
|
|
<CODE>static int</CODE></FONT></TD>
|
|
|
|
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#CS_RGB">CS_RGB</A></B></CODE>
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
RGB colorspace.</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
|
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
|
|
|
<CODE>static int</CODE></FONT></TD>
|
|
|
|
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#CS_YCbCr">CS_YCbCr</A></B></CODE>
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
YCbCr colorspace.</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
|
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
|
|
|
<CODE>static int</CODE></FONT></TD>
|
|
|
|
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#CS_YCCK">CS_YCCK</A></B></CODE>
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
YCCK colorspace.</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
|
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
|
|
|
<CODE>static int</CODE></FONT></TD>
|
|
|
|
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_ACCURATEDCT">FLAG_ACCURATEDCT</A></B></CODE>
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
@@ -187,6 +227,14 @@ TurboJPEG utility class (cannot be instantiated)
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
|
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
|
|
|
<CODE>static int</CODE></FONT></TD>
|
|
|
|
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#NUMCS">NUMCS</A></B></CODE>
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
The number of JPEG colorspaces</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
|
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
|
|
|
<CODE>static int</CODE></FONT></TD>
|
|
|
|
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#NUMPF">NUMPF</A></B></CODE>
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
@@ -243,6 +291,14 @@ TurboJPEG utility class (cannot be instantiated)
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
|
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
|
|
|
<CODE>static int</CODE></FONT></TD>
|
|
|
|
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_CMYK">PF_CMYK</A></B></CODE>
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
CMYK pixel format.</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
|
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
|
|
|
<CODE>static int</CODE></FONT></TD>
|
|
|
|
|
<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_GRAY">PF_GRAY</A></B></CODE>
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
@@ -746,6 +802,130 @@ public static final int <B>PF_ARGB</B></PRE>
|
|
|
|
|
</DL>
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
|
|
<A NAME="PF_CMYK"><!-- --></A><H3>
|
|
|
|
|
PF_CMYK</H3>
|
|
|
|
|
<PRE>
|
|
|
|
|
public static final int <B>PF_CMYK</B></PRE>
|
|
|
|
|
<DL>
|
|
|
|
|
<DD>CMYK pixel format. Unlike RGB, which is a display colorspace,
|
|
|
|
|
CMYK (Cyan/Magenta/Yellow/Key) is a print colorspace in which the
|
|
|
|
|
value of each color component corresponds to the amount of cyan, magenta,
|
|
|
|
|
yellow, or black ink that is applied to a white background. In order to
|
|
|
|
|
convert between CMYK and RGB, it is necessary to use a color management
|
|
|
|
|
system (CMS.) A CMS will attempt to map colors within the printer's gamut
|
|
|
|
|
to perceptually similar colors in the display's gamut and vice versa, but
|
|
|
|
|
the mapping is typically not 1:1 or reversible, nor can it be defined with
|
|
|
|
|
a simple formula. Thus, such a conversion is out of scope for a codec
|
|
|
|
|
library. However, the TurboJPEG API allows for compressing CMYK pixels
|
|
|
|
|
into a YCCK JPEG image (see <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#CS_YCCK"><CODE>CS_YCCK</CODE></A>) and decompressing YCCK JPEG
|
|
|
|
|
images into CMYK pixels.
|
|
|
|
|
<P>
|
|
|
|
|
<DL>
|
|
|
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_CMYK">Constant Field Values</A></DL>
|
|
|
|
|
</DL>
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
|
|
<A NAME="NUMCS"><!-- --></A><H3>
|
|
|
|
|
NUMCS</H3>
|
|
|
|
|
<PRE>
|
|
|
|
|
public static final int <B>NUMCS</B></PRE>
|
|
|
|
|
<DL>
|
|
|
|
|
<DD>The number of JPEG colorspaces
|
|
|
|
|
<P>
|
|
|
|
|
<DL>
|
|
|
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.NUMCS">Constant Field Values</A></DL>
|
|
|
|
|
</DL>
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
|
|
<A NAME="CS_RGB"><!-- --></A><H3>
|
|
|
|
|
CS_RGB</H3>
|
|
|
|
|
<PRE>
|
|
|
|
|
public static final int <B>CS_RGB</B></PRE>
|
|
|
|
|
<DL>
|
|
|
|
|
<DD>RGB colorspace. When compressing the JPEG image, the R, G, and B
|
|
|
|
|
components in the source image are reordered into image planes, but no
|
|
|
|
|
colorspace conversion or subsampling is performed. RGB JPEG images can be
|
|
|
|
|
decompressed to any of the extended RGB pixel formats or grayscale, but
|
|
|
|
|
they cannot be decompressed to YUV images.
|
|
|
|
|
<P>
|
|
|
|
|
<DL>
|
|
|
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.CS_RGB">Constant Field Values</A></DL>
|
|
|
|
|
</DL>
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
|
|
<A NAME="CS_YCbCr"><!-- --></A><H3>
|
|
|
|
|
CS_YCbCr</H3>
|
|
|
|
|
<PRE>
|
|
|
|
|
public static final int <B>CS_YCbCr</B></PRE>
|
|
|
|
|
<DL>
|
|
|
|
|
<DD>YCbCr colorspace. YCbCr is not an absolute colorspace but rather a
|
|
|
|
|
mathematical transformation of RGB designed solely for storage and
|
|
|
|
|
transmission. YCbCr images must be converted to RGB before they can
|
|
|
|
|
actually be displayed. In the YCbCr colorspace, the Y (luminance)
|
|
|
|
|
component represents the black & white portion of the original image, and
|
|
|
|
|
the Cb and Cr (chrominance) components represent the color portion of the
|
|
|
|
|
original image. Originally, the analog equivalent of this transformation
|
|
|
|
|
allowed the same signal to drive both black & white and color televisions,
|
|
|
|
|
but JPEG images use YCbCr primarily because it allows the color data to be
|
|
|
|
|
optionally subsampled for the purposes of reducing bandwidth or disk
|
|
|
|
|
space. YCbCr is the most common JPEG colorspace, and YCbCr JPEG images
|
|
|
|
|
can be compressed from and decompressed to any of the extended RGB pixel
|
|
|
|
|
formats or grayscale, or they can be decompressed to YUV planar images.
|
|
|
|
|
<P>
|
|
|
|
|
<DL>
|
|
|
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.CS_YCbCr">Constant Field Values</A></DL>
|
|
|
|
|
</DL>
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
|
|
<A NAME="CS_GRAY"><!-- --></A><H3>
|
|
|
|
|
CS_GRAY</H3>
|
|
|
|
|
<PRE>
|
|
|
|
|
public static final int <B>CS_GRAY</B></PRE>
|
|
|
|
|
<DL>
|
|
|
|
|
<DD>Grayscale colorspace. The JPEG image retains only the luminance data (Y
|
|
|
|
|
component), and any color data from the source image is discarded.
|
|
|
|
|
Grayscale JPEG images can be compressed from and decompressed to any of
|
|
|
|
|
the extended RGB pixel formats or grayscale, or they can be decompressed
|
|
|
|
|
to YUV planar images.
|
|
|
|
|
<P>
|
|
|
|
|
<DL>
|
|
|
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.CS_GRAY">Constant Field Values</A></DL>
|
|
|
|
|
</DL>
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
|
|
<A NAME="CS_CMYK"><!-- --></A><H3>
|
|
|
|
|
CS_CMYK</H3>
|
|
|
|
|
<PRE>
|
|
|
|
|
public static final int <B>CS_CMYK</B></PRE>
|
|
|
|
|
<DL>
|
|
|
|
|
<DD>CMYK colorspace. When compressing the JPEG image, the C, M, Y, and K
|
|
|
|
|
components in the source image are reordered into image planes, but no
|
|
|
|
|
colorspace conversion or subsampling is performed. CMYK JPEG images can
|
|
|
|
|
only be decompressed to CMYK pixels.
|
|
|
|
|
<P>
|
|
|
|
|
<DL>
|
|
|
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.CS_CMYK">Constant Field Values</A></DL>
|
|
|
|
|
</DL>
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
|
|
<A NAME="CS_YCCK"><!-- --></A><H3>
|
|
|
|
|
CS_YCCK</H3>
|
|
|
|
|
<PRE>
|
|
|
|
|
public static final int <B>CS_YCCK</B></PRE>
|
|
|
|
|
<DL>
|
|
|
|
|
<DD>YCCK colorspace. YCCK (AKA "YCbCrK") is not an absolute colorspace but
|
|
|
|
|
rather a mathematical transformation of CMYK designed solely for storage
|
|
|
|
|
and transmission. It is to CMYK as YCbCr is to RGB. CMYK pixels can be
|
|
|
|
|
reversibly transformed into YCCK, and as with YCbCr, the chrominance
|
|
|
|
|
components in the YCCK pixels can be subsampled without incurring major
|
|
|
|
|
perceptual loss. YCCK JPEG images can only be compressed from and
|
|
|
|
|
decompressed to CMYK pixels.
|
|
|
|
|
<P>
|
|
|
|
|
<DL>
|
|
|
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.CS_YCCK">Constant Field Values</A></DL>
|
|
|
|
|
</DL>
|
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
|
|
<A NAME="FLAG_BOTTOMUP"><!-- --></A><H3>
|
|
|
|
|
FLAG_BOTTOMUP</H3>
|
|
|
|
|
<PRE>
|
|
|
|
|
|