shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
<title>TJ</title>
shun-iwasawa 82a8f5
<link href="../../../stylesheet.css" rel="stylesheet" title="Style" type="text/css">
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
<script type="text/javascript"><!--</script>
shun-iwasawa 82a8f5
    try {
shun-iwasawa 82a8f5
        if (location.href.indexOf('is-external=true') == -1) {
shun-iwasawa 82a8f5
            parent.document.title="TJ";
shun-iwasawa 82a8f5
        }
shun-iwasawa 82a8f5
    }
shun-iwasawa 82a8f5
    catch(err) {
shun-iwasawa 82a8f5
    }
shun-iwasawa 82a8f5
//-->
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
JavaScript is disabled on your browser.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
    shun-iwasawa 82a8f5
  • Package
  • shun-iwasawa 82a8f5
  • Class
  • shun-iwasawa 82a8f5
  • Tree
  • shun-iwasawa 82a8f5
  • Deprecated
  • shun-iwasawa 82a8f5
  • Index
  • shun-iwasawa 82a8f5
  • Help
  • shun-iwasawa 82a8f5
    shun-iwasawa 82a8f5
    shun-iwasawa 82a8f5
    shun-iwasawa 82a8f5
      shun-iwasawa 82a8f5
    • Prev Class
    • shun-iwasawa 82a8f5
    • Next Class
    • shun-iwasawa 82a8f5
      shun-iwasawa 82a8f5
        shun-iwasawa 82a8f5
      • Frames
      • shun-iwasawa 82a8f5
      • No Frames
      • shun-iwasawa 82a8f5
        shun-iwasawa 82a8f5
          shun-iwasawa 82a8f5
        • All Classes
        • shun-iwasawa 82a8f5
          shun-iwasawa 82a8f5
          shun-iwasawa 82a8f5
          <script type="text/javascript"><!--</script>
          shun-iwasawa 82a8f5
            allClassesLink = document.getElementById("allclasses_navbar_top");
          shun-iwasawa 82a8f5
            if(window==top) {
          shun-iwasawa 82a8f5
              allClassesLink.style.display = "block";
          shun-iwasawa 82a8f5
            }
          shun-iwasawa 82a8f5
            else {
          shun-iwasawa 82a8f5
              allClassesLink.style.display = "none";
          shun-iwasawa 82a8f5
            }
          shun-iwasawa 82a8f5
            //-->
          shun-iwasawa 82a8f5
          shun-iwasawa 82a8f5
          shun-iwasawa 82a8f5
          shun-iwasawa 82a8f5
            shun-iwasawa 82a8f5
          • Summary: 
          • shun-iwasawa 82a8f5
          • Nested | 
          • shun-iwasawa 82a8f5
          • Field | 
          • shun-iwasawa 82a8f5
          • Constr | 
          • shun-iwasawa 82a8f5
          • Method
          • shun-iwasawa 82a8f5
            shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
            • Detail: 
            • shun-iwasawa 82a8f5
            • Field | 
            • shun-iwasawa 82a8f5
            • Constr | 
            • shun-iwasawa 82a8f5
            • Method
            • shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
              org.libjpegturbo.turbojpeg
              shun-iwasawa 82a8f5

              Class TJ

              shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
              shun-iwasawa 82a8f5
                shun-iwasawa 82a8f5
              • java.lang.Object
              • shun-iwasawa 82a8f5
              • shun-iwasawa 82a8f5
                  shun-iwasawa 82a8f5
                • org.libjpegturbo.turbojpeg.TJ
                • shun-iwasawa 82a8f5
                  shun-iwasawa 82a8f5
                  shun-iwasawa 82a8f5
                  shun-iwasawa 82a8f5
                  shun-iwasawa 82a8f5
                    shun-iwasawa 82a8f5
                  • shun-iwasawa 82a8f5

                    shun-iwasawa 82a8f5

                    shun-iwasawa 82a8f5
                    public final class TJ
                    shun-iwasawa 82a8f5
                    extends java.lang.Object
                    shun-iwasawa 82a8f5
                    TurboJPEG utility class (cannot be instantiated)
                    shun-iwasawa 82a8f5
                    shun-iwasawa 82a8f5
                    shun-iwasawa 82a8f5
                    shun-iwasawa 82a8f5
                    shun-iwasawa 82a8f5
                      shun-iwasawa 82a8f5
                    • shun-iwasawa 82a8f5
                      shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                      • shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5

                        Field Summary

                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        Fields 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        Modifier and Type
                        shun-iwasawa 82a8f5
                        Field and Description
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        CS_CMYK
                        shun-iwasawa 82a8f5
                        CMYK colorspace.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        CS_GRAY
                        shun-iwasawa 82a8f5
                        Grayscale colorspace.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        CS_RGB
                        shun-iwasawa 82a8f5
                        RGB colorspace.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        CS_YCbCr
                        shun-iwasawa 82a8f5
                        YCbCr colorspace.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        CS_YCCK
                        shun-iwasawa 82a8f5
                        YCCK colorspace.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        ERR_FATAL
                        shun-iwasawa 82a8f5
                        The error was fatal and non-recoverable.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        ERR_WARNING
                        shun-iwasawa 82a8f5
                        The error was non-fatal and recoverable, but the image may still be
                        shun-iwasawa 82a8f5
                         corrupt.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        FLAG_ACCURATEDCT
                        shun-iwasawa 82a8f5
                        Use the most accurate DCT/IDCT algorithm available in the underlying
                        shun-iwasawa 82a8f5
                         codec.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        FLAG_BOTTOMUP
                        shun-iwasawa 82a8f5
                        The uncompressed source/destination image is stored in bottom-up (Windows,
                        shun-iwasawa 82a8f5
                         OpenGL) order, not top-down (X11) order.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        FLAG_FASTDCT
                        shun-iwasawa 82a8f5
                        Use the fastest DCT/IDCT algorithm available in the underlying codec.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        FLAG_FASTUPSAMPLE
                        shun-iwasawa 82a8f5
                        When decompressing an image that was compressed using chrominance
                        shun-iwasawa 82a8f5
                         subsampling, use the fastest chrominance upsampling algorithm available in
                        shun-iwasawa 82a8f5
                         the underlying codec.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        FLAG_FORCEMMX
                        shun-iwasawa 82a8f5
                        Deprecated. 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        FLAG_FORCESSE
                        shun-iwasawa 82a8f5
                        Deprecated. 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        FLAG_FORCESSE2
                        shun-iwasawa 82a8f5
                        Deprecated. 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        FLAG_FORCESSE3
                        shun-iwasawa 82a8f5
                        Deprecated. 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        FLAG_PROGRESSIVE
                        shun-iwasawa 82a8f5
                        Use progressive entropy coding in JPEG images generated by compression and
                        shun-iwasawa 82a8f5
                         transform operations.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        FLAG_STOPONWARNING
                        shun-iwasawa 82a8f5
                        Immediately discontinue the current compression/decompression/transform
                        shun-iwasawa 82a8f5
                         operation if the underlying codec throws a warning (non-fatal error).
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        NUMCS
                        shun-iwasawa 82a8f5
                        The number of JPEG colorspaces
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        NUMERR
                        shun-iwasawa 82a8f5
                        The number of error codes
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        NUMPF
                        shun-iwasawa 82a8f5
                        The number of pixel formats
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        NUMSAMP
                        shun-iwasawa 82a8f5
                        The number of chrominance subsampling options
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_ABGR
                        shun-iwasawa 82a8f5
                        ABGR pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_ARGB
                        shun-iwasawa 82a8f5
                        ARGB pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_BGR
                        shun-iwasawa 82a8f5
                        BGR pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_BGRA
                        shun-iwasawa 82a8f5
                        BGRA pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_BGRX
                        shun-iwasawa 82a8f5
                        BGRX pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_CMYK
                        shun-iwasawa 82a8f5
                        CMYK pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_GRAY
                        shun-iwasawa 82a8f5
                        Grayscale pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_RGB
                        shun-iwasawa 82a8f5
                        RGB pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_RGBA
                        shun-iwasawa 82a8f5
                        RGBA pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_RGBX
                        shun-iwasawa 82a8f5
                        RGBX pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_XBGR
                        shun-iwasawa 82a8f5
                        XBGR pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        PF_XRGB
                        shun-iwasawa 82a8f5
                        XRGB pixel format.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        SAMP_411
                        shun-iwasawa 82a8f5
                        4:1:1 chrominance subsampling.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        SAMP_420
                        shun-iwasawa 82a8f5
                        4:2:0 chrominance subsampling.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        SAMP_422
                        shun-iwasawa 82a8f5
                        4:2:2 chrominance subsampling.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        SAMP_440
                        shun-iwasawa 82a8f5
                        4:4:0 chrominance subsampling.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        SAMP_444
                        shun-iwasawa 82a8f5
                        4:4:4 chrominance subsampling (no chrominance subsampling).
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        static int
                        shun-iwasawa 82a8f5
                        SAMP_GRAY
                        shun-iwasawa 82a8f5
                        Grayscale.
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                        • shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5

                          Method Summary

                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          Methods 
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          Modifier and Type
                          shun-iwasawa 82a8f5
                          Method and Description
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          bufSize(int width,
                          shun-iwasawa 82a8f5
                                 int height,
                          shun-iwasawa 82a8f5
                                 int jpegSubsamp)
                          shun-iwasawa 82a8f5
                          Returns the maximum size of the buffer (in bytes) required to hold a JPEG
                          shun-iwasawa 82a8f5
                           image with the given width, height, and level of chrominance subsampling.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          bufSizeYUV(int width,
                          shun-iwasawa 82a8f5
                                    int height,
                          shun-iwasawa 82a8f5
                                    int subsamp)
                          shun-iwasawa 82a8f5
                          Deprecated. 
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          bufSizeYUV(int width,
                          shun-iwasawa 82a8f5
                                    int pad,
                          shun-iwasawa 82a8f5
                                    int height,
                          shun-iwasawa 82a8f5
                                    int subsamp)
                          shun-iwasawa 82a8f5
                          Returns the size of the buffer (in bytes) required to hold a YUV planar
                          shun-iwasawa 82a8f5
                           image with the given width, height, and level of chrominance subsampling.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          getAlphaOffset(int pixelFormat)
                          shun-iwasawa 82a8f5
                          For the given pixel format, returns the number of bytes that the alpha
                          shun-iwasawa 82a8f5
                           component is offset from the start of the pixel.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          getBlueOffset(int pixelFormat)
                          shun-iwasawa 82a8f5
                          For the given pixel format, returns the number of bytes that the blue
                          shun-iwasawa 82a8f5
                           component is offset from the start of the pixel.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          getGreenOffset(int pixelFormat)
                          shun-iwasawa 82a8f5
                          For the given pixel format, returns the number of bytes that the green
                          shun-iwasawa 82a8f5
                           component is offset from the start of the pixel.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          getMCUHeight(int subsamp)
                          shun-iwasawa 82a8f5
                          Returns the MCU block height for the given level of chrominance
                          shun-iwasawa 82a8f5
                           subsampling.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          getMCUWidth(int subsamp)
                          shun-iwasawa 82a8f5
                          Returns the MCU block width for the given level of chrominance
                          shun-iwasawa 82a8f5
                           subsampling.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          getPixelSize(int pixelFormat)
                          shun-iwasawa 82a8f5
                          Returns the pixel size (in bytes) for the given pixel format.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          getRedOffset(int pixelFormat)
                          shun-iwasawa 82a8f5
                          For the given pixel format, returns the number of bytes that the red
                          shun-iwasawa 82a8f5
                           component is offset from the start of the pixel.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static TJScalingFactor[]
                          shun-iwasawa 82a8f5
                          getScalingFactors()
                          shun-iwasawa 82a8f5
                          Returns a list of fractional scaling factors that the JPEG decompressor in
                          shun-iwasawa 82a8f5
                           this implementation of TurboJPEG supports.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          planeHeight(int componentID,
                          shun-iwasawa 82a8f5
                                     int height,
                          shun-iwasawa 82a8f5
                                     int subsamp)
                          shun-iwasawa 82a8f5
                          Returns the plane height of a YUV image plane with the given parameters.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          planeSizeYUV(int componentID,
                          shun-iwasawa 82a8f5
                                      int width,
                          shun-iwasawa 82a8f5
                                      int stride,
                          shun-iwasawa 82a8f5
                                      int height,
                          shun-iwasawa 82a8f5
                                      int subsamp)
                          shun-iwasawa 82a8f5
                          Returns the size of the buffer (in bytes) required to hold a YUV image
                          shun-iwasawa 82a8f5
                           plane with the given parameters.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          static int
                          shun-iwasawa 82a8f5
                          planeWidth(int componentID,
                          shun-iwasawa 82a8f5
                                    int width,
                          shun-iwasawa 82a8f5
                                    int subsamp)
                          shun-iwasawa 82a8f5
                          Returns the plane width of a YUV image plane with the given parameters.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                          • shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5

                            Methods inherited from class java.lang.Object

                            shun-iwasawa 82a8f5
                            clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                              shun-iwasawa 82a8f5
                            • shun-iwasawa 82a8f5
                              shun-iwasawa 82a8f5
                                shun-iwasawa 82a8f5
                              • shun-iwasawa 82a8f5
                                shun-iwasawa 82a8f5
                                shun-iwasawa 82a8f5

                                Field Detail

                                shun-iwasawa 82a8f5
                                shun-iwasawa 82a8f5
                                shun-iwasawa 82a8f5
                                shun-iwasawa 82a8f5
                                  shun-iwasawa 82a8f5
                                • shun-iwasawa 82a8f5

                                  NUMSAMP

                                  shun-iwasawa 82a8f5
                                  public static final int NUMSAMP
                                  shun-iwasawa 82a8f5
                                  The number of chrominance subsampling options
                                  shun-iwasawa 82a8f5
                                  See Also:
                                  Constant Field Values
                                  shun-iwasawa 82a8f5
                                  shun-iwasawa 82a8f5
                                  shun-iwasawa 82a8f5
                                  shun-iwasawa 82a8f5
                                  shun-iwasawa 82a8f5
                                  shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                  • shun-iwasawa 82a8f5

                                    SAMP_444

                                    shun-iwasawa 82a8f5
                                    public static final int SAMP_444
                                    shun-iwasawa 82a8f5
                                    4:4:4 chrominance subsampling (no chrominance subsampling). The JPEG
                                    shun-iwasawa 82a8f5
                                     or YUV image will contain one chrominance component for every pixel in the
                                    shun-iwasawa 82a8f5
                                     source image.
                                    shun-iwasawa 82a8f5
                                    See Also:
                                    Constant Field Values
                                    shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                    • shun-iwasawa 82a8f5

                                      SAMP_422

                                      shun-iwasawa 82a8f5
                                      public static final int SAMP_422
                                      shun-iwasawa 82a8f5
                                      4:2:2 chrominance subsampling. The JPEG or YUV image will contain one
                                      shun-iwasawa 82a8f5
                                       chrominance component for every 2x1 block of pixels in the source image.
                                      shun-iwasawa 82a8f5
                                      See Also:
                                      Constant Field Values
                                      shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                      • shun-iwasawa 82a8f5

                                        SAMP_420

                                        shun-iwasawa 82a8f5
                                        public static final int SAMP_420
                                        shun-iwasawa 82a8f5
                                        4:2:0 chrominance subsampling. The JPEG or YUV image will contain one
                                        shun-iwasawa 82a8f5
                                         chrominance component for every 2x2 block of pixels in the source image.
                                        shun-iwasawa 82a8f5
                                        See Also:
                                        Constant Field Values
                                        shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                        • shun-iwasawa 82a8f5

                                          SAMP_GRAY

                                          shun-iwasawa 82a8f5
                                          public static final int SAMP_GRAY
                                          shun-iwasawa 82a8f5
                                          Grayscale. The JPEG or YUV image will contain no chrominance components.
                                          shun-iwasawa 82a8f5
                                          See Also:
                                          Constant Field Values
                                          shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                          • shun-iwasawa 82a8f5

                                            SAMP_440

                                            shun-iwasawa 82a8f5
                                            public static final int SAMP_440
                                            shun-iwasawa 82a8f5
                                            4:4:0 chrominance subsampling. The JPEG or YUV image will contain one
                                            shun-iwasawa 82a8f5
                                             chrominance component for every 1x2 block of pixels in the source image.
                                            shun-iwasawa 82a8f5
                                             Note that 4:4:0 subsampling is not fully accelerated in libjpeg-turbo.
                                            shun-iwasawa 82a8f5
                                            See Also:
                                            Constant Field Values
                                            shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                            • shun-iwasawa 82a8f5

                                              SAMP_411

                                              shun-iwasawa 82a8f5
                                              public static final int SAMP_411
                                              shun-iwasawa 82a8f5
                                              4:1:1 chrominance subsampling. The JPEG or YUV image will contain one
                                              shun-iwasawa 82a8f5
                                               chrominance component for every 4x1 block of pixels in the source image.
                                              shun-iwasawa 82a8f5
                                               JPEG images compressed with 4:1:1 subsampling will be almost exactly the
                                              shun-iwasawa 82a8f5
                                               same size as those compressed with 4:2:0 subsampling, and in the
                                              shun-iwasawa 82a8f5
                                               aggregate, both subsampling methods produce approximately the same
                                              shun-iwasawa 82a8f5
                                               perceptual quality.  However, 4:1:1 is better able to reproduce sharp
                                              shun-iwasawa 82a8f5
                                               horizontal features.  Note that 4:1:1 subsampling is not fully accelerated
                                              shun-iwasawa 82a8f5
                                               in libjpeg-turbo.
                                              shun-iwasawa 82a8f5
                                              See Also:
                                              Constant Field Values
                                              shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                              • shun-iwasawa 82a8f5

                                                NUMPF

                                                shun-iwasawa 82a8f5
                                                public static final int NUMPF
                                                shun-iwasawa 82a8f5
                                                The number of pixel formats
                                                shun-iwasawa 82a8f5
                                                See Also:
                                                Constant Field Values
                                                shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                                  shun-iwasawa 82a8f5
                                                • shun-iwasawa 82a8f5

                                                  PF_RGB

                                                  shun-iwasawa 82a8f5
                                                  public static final int PF_RGB
                                                  shun-iwasawa 82a8f5
                                                  RGB pixel format. The red, green, and blue components in the image are
                                                  shun-iwasawa 82a8f5
                                                   stored in 3-byte pixels in the order R, G, B from lowest to highest byte
                                                  shun-iwasawa 82a8f5
                                                   address within each pixel.
                                                  shun-iwasawa 82a8f5
                                                  See Also:
                                                  Constant Field Values
                                                  shun-iwasawa 82a8f5
                                                  shun-iwasawa 82a8f5
                                                  shun-iwasawa 82a8f5
                                                  shun-iwasawa 82a8f5
                                                  shun-iwasawa 82a8f5
                                                  shun-iwasawa 82a8f5
                                                    shun-iwasawa 82a8f5
                                                  • shun-iwasawa 82a8f5

                                                    PF_BGR

                                                    shun-iwasawa 82a8f5
                                                    public static final int PF_BGR
                                                    shun-iwasawa 82a8f5
                                                    BGR pixel format. The red, green, and blue components in the image are
                                                    shun-iwasawa 82a8f5
                                                     stored in 3-byte pixels in the order B, G, R from lowest to highest byte
                                                    shun-iwasawa 82a8f5
                                                     address within each pixel.
                                                    shun-iwasawa 82a8f5
                                                    See Also:
                                                    Constant Field Values
                                                    shun-iwasawa 82a8f5
                                                    shun-iwasawa 82a8f5
                                                    shun-iwasawa 82a8f5
                                                    shun-iwasawa 82a8f5
                                                    shun-iwasawa 82a8f5
                                                    shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                    • shun-iwasawa 82a8f5

                                                      PF_RGBX

                                                      shun-iwasawa 82a8f5
                                                      public static final int PF_RGBX
                                                      shun-iwasawa 82a8f5
                                                      RGBX pixel format. The red, green, and blue components in the image are
                                                      shun-iwasawa 82a8f5
                                                       stored in 4-byte pixels in the order R, G, B from lowest to highest byte
                                                      shun-iwasawa 82a8f5
                                                       address within each pixel.  The X component is ignored when compressing
                                                      shun-iwasawa 82a8f5
                                                       and undefined when decompressing.
                                                      shun-iwasawa 82a8f5
                                                      See Also:
                                                      Constant Field Values
                                                      shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                      • shun-iwasawa 82a8f5

                                                        PF_BGRX

                                                        shun-iwasawa 82a8f5
                                                        public static final int PF_BGRX
                                                        shun-iwasawa 82a8f5
                                                        BGRX pixel format. The red, green, and blue components in the image are
                                                        shun-iwasawa 82a8f5
                                                         stored in 4-byte pixels in the order B, G, R from lowest to highest byte
                                                        shun-iwasawa 82a8f5
                                                         address within each pixel.  The X component is ignored when compressing
                                                        shun-iwasawa 82a8f5
                                                         and undefined when decompressing.
                                                        shun-iwasawa 82a8f5
                                                        See Also:
                                                        Constant Field Values
                                                        shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                        • shun-iwasawa 82a8f5

                                                          PF_XBGR

                                                          shun-iwasawa 82a8f5
                                                          public static final int PF_XBGR
                                                          shun-iwasawa 82a8f5
                                                          XBGR pixel format. The red, green, and blue components in the image are
                                                          shun-iwasawa 82a8f5
                                                           stored in 4-byte pixels in the order R, G, B from highest to lowest byte
                                                          shun-iwasawa 82a8f5
                                                           address within each pixel.  The X component is ignored when compressing
                                                          shun-iwasawa 82a8f5
                                                           and undefined when decompressing.
                                                          shun-iwasawa 82a8f5
                                                          See Also:
                                                          Constant Field Values
                                                          shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                            shun-iwasawa 82a8f5
                                                          • shun-iwasawa 82a8f5

                                                            PF_XRGB

                                                            shun-iwasawa 82a8f5
                                                            public static final int PF_XRGB
                                                            shun-iwasawa 82a8f5
                                                            XRGB pixel format. The red, green, and blue components in the image are
                                                            shun-iwasawa 82a8f5
                                                             stored in 4-byte pixels in the order B, G, R from highest to lowest byte
                                                            shun-iwasawa 82a8f5
                                                             address within each pixel.  The X component is ignored when compressing
                                                            shun-iwasawa 82a8f5
                                                             and undefined when decompressing.
                                                            shun-iwasawa 82a8f5
                                                            See Also:
                                                            Constant Field Values
                                                            shun-iwasawa 82a8f5
                                                            shun-iwasawa 82a8f5
                                                            shun-iwasawa 82a8f5
                                                            shun-iwasawa 82a8f5
                                                            shun-iwasawa 82a8f5
                                                            shun-iwasawa 82a8f5
                                                              shun-iwasawa 82a8f5
                                                            • shun-iwasawa 82a8f5

                                                              PF_GRAY

                                                              shun-iwasawa 82a8f5
                                                              public static final int PF_GRAY
                                                              shun-iwasawa 82a8f5
                                                              Grayscale pixel format. Each 1-byte pixel represents a luminance
                                                              shun-iwasawa 82a8f5
                                                               (brightness) level from 0 to 255.
                                                              shun-iwasawa 82a8f5
                                                              See Also:
                                                              Constant Field Values
                                                              shun-iwasawa 82a8f5
                                                              shun-iwasawa 82a8f5
                                                              shun-iwasawa 82a8f5
                                                              shun-iwasawa 82a8f5
                                                              shun-iwasawa 82a8f5
                                                              shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                              • shun-iwasawa 82a8f5

                                                                PF_RGBA

                                                                shun-iwasawa 82a8f5
                                                                public static final int PF_RGBA
                                                                shun-iwasawa 82a8f5
                                                                RGBA pixel format. This is the same as PF_RGBX, except that when
                                                                shun-iwasawa 82a8f5
                                                                 decompressing, the X byte is guaranteed to be 0xFF, which can be
                                                                shun-iwasawa 82a8f5
                                                                 interpreted as an opaque alpha channel.
                                                                shun-iwasawa 82a8f5
                                                                See Also:
                                                                Constant Field Values
                                                                shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                • shun-iwasawa 82a8f5

                                                                  PF_BGRA

                                                                  shun-iwasawa 82a8f5
                                                                  public static final int PF_BGRA
                                                                  shun-iwasawa 82a8f5
                                                                  BGRA pixel format. This is the same as PF_BGRX, except that when
                                                                  shun-iwasawa 82a8f5
                                                                   decompressing, the X byte is guaranteed to be 0xFF, which can be
                                                                  shun-iwasawa 82a8f5
                                                                   interpreted as an opaque alpha channel.
                                                                  shun-iwasawa 82a8f5
                                                                  See Also:
                                                                  Constant Field Values
                                                                  shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                  • shun-iwasawa 82a8f5

                                                                    PF_ABGR

                                                                    shun-iwasawa 82a8f5
                                                                    public static final int PF_ABGR
                                                                    shun-iwasawa 82a8f5
                                                                    ABGR pixel format. This is the same as PF_XBGR, except that when
                                                                    shun-iwasawa 82a8f5
                                                                     decompressing, the X byte is guaranteed to be 0xFF, which can be
                                                                    shun-iwasawa 82a8f5
                                                                     interpreted as an opaque alpha channel.
                                                                    shun-iwasawa 82a8f5
                                                                    See Also:
                                                                    Constant Field Values
                                                                    shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                    • shun-iwasawa 82a8f5

                                                                      PF_ARGB

                                                                      shun-iwasawa 82a8f5
                                                                      public static final int PF_ARGB
                                                                      shun-iwasawa 82a8f5
                                                                      ARGB pixel format. This is the same as PF_XRGB, except that when
                                                                      shun-iwasawa 82a8f5
                                                                       decompressing, the X byte is guaranteed to be 0xFF, which can be
                                                                      shun-iwasawa 82a8f5
                                                                       interpreted as an opaque alpha channel.
                                                                      shun-iwasawa 82a8f5
                                                                      See Also:
                                                                      Constant Field Values
                                                                      shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                      • shun-iwasawa 82a8f5

                                                                        PF_CMYK

                                                                        shun-iwasawa 82a8f5
                                                                        public static final int PF_CMYK
                                                                        shun-iwasawa 82a8f5
                                                                        CMYK pixel format. Unlike RGB, which is an additive color model used
                                                                        shun-iwasawa 82a8f5
                                                                         primarily for display, CMYK (Cyan/Magenta/Yellow/Key) is a subtractive
                                                                        shun-iwasawa 82a8f5
                                                                         color model used primarily for printing.  In the CMYK color model, the
                                                                        shun-iwasawa 82a8f5
                                                                         value of each color component typically corresponds to an amount of cyan,
                                                                        shun-iwasawa 82a8f5
                                                                         magenta, yellow, or black ink that is applied to a white background.  In
                                                                        shun-iwasawa 82a8f5
                                                                         order to convert between CMYK and RGB, it is necessary to use a color
                                                                        shun-iwasawa 82a8f5
                                                                         management system (CMS.)  A CMS will attempt to map colors within the
                                                                        shun-iwasawa 82a8f5
                                                                         printer's gamut to perceptually similar colors in the display's gamut and
                                                                        shun-iwasawa 82a8f5
                                                                         vice versa, but the mapping is typically not 1:1 or reversible, nor can it
                                                                        shun-iwasawa 82a8f5
                                                                         be defined with a simple formula.  Thus, such a conversion is out of scope
                                                                        shun-iwasawa 82a8f5
                                                                         for a codec library.  However, the TurboJPEG API allows for compressing
                                                                        shun-iwasawa 82a8f5
                                                                         CMYK pixels into a YCCK JPEG image (see CS_YCCK) and
                                                                        shun-iwasawa 82a8f5
                                                                         decompressing YCCK JPEG images into CMYK pixels.
                                                                        shun-iwasawa 82a8f5
                                                                        See Also:
                                                                        Constant Field Values
                                                                        shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                        • shun-iwasawa 82a8f5

                                                                          NUMCS

                                                                          shun-iwasawa 82a8f5
                                                                          public static final int NUMCS
                                                                          shun-iwasawa 82a8f5
                                                                          The number of JPEG colorspaces
                                                                          shun-iwasawa 82a8f5
                                                                          See Also:
                                                                          Constant Field Values
                                                                          shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                          • shun-iwasawa 82a8f5

                                                                            CS_RGB

                                                                            shun-iwasawa 82a8f5
                                                                            public static final int CS_RGB
                                                                            shun-iwasawa 82a8f5
                                                                            RGB colorspace. When compressing the JPEG image, the R, G, and B
                                                                            shun-iwasawa 82a8f5
                                                                             components in the source image are reordered into image planes, but no
                                                                            shun-iwasawa 82a8f5
                                                                             colorspace conversion or subsampling is performed.  RGB JPEG images can be
                                                                            shun-iwasawa 82a8f5
                                                                             decompressed to any of the extended RGB pixel formats or grayscale, but
                                                                            shun-iwasawa 82a8f5
                                                                             they cannot be decompressed to YUV images.
                                                                            shun-iwasawa 82a8f5
                                                                            See Also:
                                                                            Constant Field Values
                                                                            shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                            • shun-iwasawa 82a8f5

                                                                              CS_YCbCr

                                                                              shun-iwasawa 82a8f5
                                                                              public static final int CS_YCbCr
                                                                              shun-iwasawa 82a8f5
                                                                              YCbCr colorspace. YCbCr is not an absolute colorspace but rather a
                                                                              shun-iwasawa 82a8f5
                                                                               mathematical transformation of RGB designed solely for storage and
                                                                              shun-iwasawa 82a8f5
                                                                               transmission.  YCbCr images must be converted to RGB before they can
                                                                              shun-iwasawa 82a8f5
                                                                               actually be displayed.  In the YCbCr colorspace, the Y (luminance)
                                                                              shun-iwasawa 82a8f5
                                                                               component represents the black & white portion of the original image,
                                                                              shun-iwasawa 82a8f5
                                                                               and the Cb and Cr (chrominance) components represent the color portion of
                                                                              shun-iwasawa 82a8f5
                                                                               the original image.  Originally, the analog equivalent of this
                                                                              shun-iwasawa 82a8f5
                                                                               transformation allowed the same signal to drive both black & white and
                                                                              shun-iwasawa 82a8f5
                                                                               color televisions, but JPEG images use YCbCr primarily because it allows
                                                                              shun-iwasawa 82a8f5
                                                                               the color data to be optionally subsampled for the purposes of reducing
                                                                              shun-iwasawa 82a8f5
                                                                               bandwidth or disk space.  YCbCr is the most common JPEG colorspace, and
                                                                              shun-iwasawa 82a8f5
                                                                               YCbCr JPEG images can be compressed from and decompressed to any of the
                                                                              shun-iwasawa 82a8f5
                                                                               extended RGB pixel formats or grayscale, or they can be decompressed to
                                                                              shun-iwasawa 82a8f5
                                                                               YUV planar images.
                                                                              shun-iwasawa 82a8f5
                                                                              See Also:
                                                                              Constant Field Values
                                                                              shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                              • shun-iwasawa 82a8f5

                                                                                CS_GRAY

                                                                                shun-iwasawa 82a8f5
                                                                                public static final int CS_GRAY
                                                                                shun-iwasawa 82a8f5
                                                                                Grayscale colorspace. The JPEG image retains only the luminance data (Y
                                                                                shun-iwasawa 82a8f5
                                                                                 component), and any color data from the source image is discarded.
                                                                                shun-iwasawa 82a8f5
                                                                                 Grayscale JPEG images can be compressed from and decompressed to any of
                                                                                shun-iwasawa 82a8f5
                                                                                 the extended RGB pixel formats or grayscale, or they can be decompressed
                                                                                shun-iwasawa 82a8f5
                                                                                 to YUV planar images.
                                                                                shun-iwasawa 82a8f5
                                                                                See Also:
                                                                                Constant Field Values
                                                                                shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                • shun-iwasawa 82a8f5

                                                                                  CS_CMYK

                                                                                  shun-iwasawa 82a8f5
                                                                                  public static final int CS_CMYK
                                                                                  shun-iwasawa 82a8f5
                                                                                  CMYK colorspace. When compressing the JPEG image, the C, M, Y, and K
                                                                                  shun-iwasawa 82a8f5
                                                                                   components in the source image are reordered into image planes, but no
                                                                                  shun-iwasawa 82a8f5
                                                                                   colorspace conversion or subsampling is performed.  CMYK JPEG images can
                                                                                  shun-iwasawa 82a8f5
                                                                                   only be decompressed to CMYK pixels.
                                                                                  shun-iwasawa 82a8f5
                                                                                  See Also:
                                                                                  Constant Field Values
                                                                                  shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                  • shun-iwasawa 82a8f5

                                                                                    CS_YCCK

                                                                                    shun-iwasawa 82a8f5
                                                                                    public static final int CS_YCCK
                                                                                    shun-iwasawa 82a8f5
                                                                                    YCCK colorspace. YCCK (AKA "YCbCrK") is not an absolute colorspace but
                                                                                    shun-iwasawa 82a8f5
                                                                                     rather a mathematical transformation of CMYK designed solely for storage
                                                                                    shun-iwasawa 82a8f5
                                                                                     and transmission.  It is to CMYK as YCbCr is to RGB.  CMYK pixels can be
                                                                                    shun-iwasawa 82a8f5
                                                                                     reversibly transformed into YCCK, and as with YCbCr, the chrominance
                                                                                    shun-iwasawa 82a8f5
                                                                                     components in the YCCK pixels can be subsampled without incurring major
                                                                                    shun-iwasawa 82a8f5
                                                                                     perceptual loss.  YCCK JPEG images can only be compressed from and
                                                                                    shun-iwasawa 82a8f5
                                                                                     decompressed to CMYK pixels.
                                                                                    shun-iwasawa 82a8f5
                                                                                    See Also:
                                                                                    Constant Field Values
                                                                                    shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                    • shun-iwasawa 82a8f5

                                                                                      FLAG_BOTTOMUP

                                                                                      shun-iwasawa 82a8f5
                                                                                      public static final int FLAG_BOTTOMUP
                                                                                      shun-iwasawa 82a8f5
                                                                                      The uncompressed source/destination image is stored in bottom-up (Windows,
                                                                                      shun-iwasawa 82a8f5
                                                                                       OpenGL) order, not top-down (X11) order.
                                                                                      shun-iwasawa 82a8f5
                                                                                      See Also:
                                                                                      Constant Field Values
                                                                                      shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                      • shun-iwasawa 82a8f5

                                                                                        FLAG_FORCEMMX

                                                                                        shun-iwasawa 82a8f5
                                                                                        @Deprecated
                                                                                        shun-iwasawa 82a8f5
                                                                                        public static final int FLAG_FORCEMMX
                                                                                        shun-iwasawa 82a8f5
                                                                                        Deprecated. 
                                                                                        shun-iwasawa 82a8f5
                                                                                        See Also:
                                                                                        Constant Field Values
                                                                                        shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                        • shun-iwasawa 82a8f5

                                                                                          FLAG_FORCESSE

                                                                                          shun-iwasawa 82a8f5
                                                                                          @Deprecated
                                                                                          shun-iwasawa 82a8f5
                                                                                          public static final int FLAG_FORCESSE
                                                                                          shun-iwasawa 82a8f5
                                                                                          Deprecated. 
                                                                                          shun-iwasawa 82a8f5
                                                                                          See Also:
                                                                                          Constant Field Values
                                                                                          shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                          • shun-iwasawa 82a8f5

                                                                                            FLAG_FORCESSE2

                                                                                            shun-iwasawa 82a8f5
                                                                                            @Deprecated
                                                                                            shun-iwasawa 82a8f5
                                                                                            public static final int FLAG_FORCESSE2
                                                                                            shun-iwasawa 82a8f5
                                                                                            Deprecated. 
                                                                                            shun-iwasawa 82a8f5
                                                                                            See Also:
                                                                                            Constant Field Values
                                                                                            shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                            • shun-iwasawa 82a8f5

                                                                                              FLAG_FORCESSE3

                                                                                              shun-iwasawa 82a8f5
                                                                                              @Deprecated
                                                                                              shun-iwasawa 82a8f5
                                                                                              public static final int FLAG_FORCESSE3
                                                                                              shun-iwasawa 82a8f5
                                                                                              Deprecated. 
                                                                                              shun-iwasawa 82a8f5
                                                                                              See Also:
                                                                                              Constant Field Values
                                                                                              shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                              • shun-iwasawa 82a8f5

                                                                                                FLAG_FASTUPSAMPLE

                                                                                                shun-iwasawa 82a8f5
                                                                                                public static final int FLAG_FASTUPSAMPLE
                                                                                                shun-iwasawa 82a8f5
                                                                                                When decompressing an image that was compressed using chrominance
                                                                                                shun-iwasawa 82a8f5
                                                                                                 subsampling, use the fastest chrominance upsampling algorithm available in
                                                                                                shun-iwasawa 82a8f5
                                                                                                 the underlying codec.  The default is to use smooth upsampling, which
                                                                                                shun-iwasawa 82a8f5
                                                                                                 creates a smooth transition between neighboring chrominance components in
                                                                                                shun-iwasawa 82a8f5
                                                                                                 order to reduce upsampling artifacts in the decompressed image.
                                                                                                shun-iwasawa 82a8f5
                                                                                                See Also:
                                                                                                Constant Field Values
                                                                                                shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                • shun-iwasawa 82a8f5

                                                                                                  FLAG_FASTDCT

                                                                                                  shun-iwasawa 82a8f5
                                                                                                  public static final int FLAG_FASTDCT
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  Use the fastest DCT/IDCT algorithm available in the underlying codec. The
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   default if this flag is not specified is implementation-specific.  For
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   example, the implementation of TurboJPEG for libjpeg[-turbo] uses the fast
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   algorithm by default when compressing, because this has been shown to have
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   only a very slight effect on accuracy, but it uses the accurate algorithm
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   when decompressing, because this has been shown to have a larger effect.
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  See Also:
                                                                                                  Constant Field Values
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                  • shun-iwasawa 82a8f5

                                                                                                    FLAG_ACCURATEDCT

                                                                                                    shun-iwasawa 82a8f5
                                                                                                    public static final int FLAG_ACCURATEDCT
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    Use the most accurate DCT/IDCT algorithm available in the underlying
                                                                                                    shun-iwasawa 82a8f5
                                                                                                     codec.  The default if this flag is not specified is
                                                                                                    shun-iwasawa 82a8f5
                                                                                                     implementation-specific.  For example, the implementation of TurboJPEG for
                                                                                                    shun-iwasawa 82a8f5
                                                                                                     libjpeg[-turbo] uses the fast algorithm by default when compressing,
                                                                                                    shun-iwasawa 82a8f5
                                                                                                     because this has been shown to have only a very slight effect on accuracy,
                                                                                                    shun-iwasawa 82a8f5
                                                                                                     but it uses the accurate algorithm when decompressing, because this has
                                                                                                    shun-iwasawa 82a8f5
                                                                                                     been shown to have a larger effect.
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    See Also:
                                                                                                    Constant Field Values
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                    • shun-iwasawa 82a8f5

                                                                                                      FLAG_STOPONWARNING

                                                                                                      shun-iwasawa 82a8f5
                                                                                                      public static final int FLAG_STOPONWARNING
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      Immediately discontinue the current compression/decompression/transform
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       operation if the underlying codec throws a warning (non-fatal error).  The
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       default behavior is to allow the operation to complete unless a fatal
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       error is encountered.
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       

                                                                                                      shun-iwasawa 82a8f5
                                                                                                       NOTE: due to the design of the TurboJPEG Java API, only certain methods
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       (specifically, TJDecompressor.decompress*() methods
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       with a void return type) will complete and leave the output image in a
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       fully recoverable state after a non-fatal error occurs.
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      See Also:
                                                                                                      Constant Field Values
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                      • shun-iwasawa 82a8f5

                                                                                                        FLAG_PROGRESSIVE

                                                                                                        shun-iwasawa 82a8f5
                                                                                                        public static final int FLAG_PROGRESSIVE
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        Use progressive entropy coding in JPEG images generated by compression and
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         transform operations.  Progressive entropy coding will generally improve
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         compression relative to baseline entropy coding (the default), but it will
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         reduce compression and decompression performance considerably.
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        See Also:
                                                                                                        Constant Field Values
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                        • shun-iwasawa 82a8f5

                                                                                                          NUMERR

                                                                                                          shun-iwasawa 82a8f5
                                                                                                          public static final int NUMERR
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          The number of error codes
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          See Also:
                                                                                                          Constant Field Values
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                          • shun-iwasawa 82a8f5

                                                                                                            ERR_WARNING

                                                                                                            shun-iwasawa 82a8f5
                                                                                                            public static final int ERR_WARNING
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            The error was non-fatal and recoverable, but the image may still be
                                                                                                            shun-iwasawa 82a8f5
                                                                                                             corrupt.
                                                                                                            shun-iwasawa 82a8f5
                                                                                                             

                                                                                                            shun-iwasawa 82a8f5
                                                                                                             NOTE: due to the design of the TurboJPEG Java API, only certain methods
                                                                                                            shun-iwasawa 82a8f5
                                                                                                             (specifically, TJDecompressor.decompress*() methods
                                                                                                            shun-iwasawa 82a8f5
                                                                                                             with a void return type) will complete and leave the output image in a
                                                                                                            shun-iwasawa 82a8f5
                                                                                                             fully recoverable state after a non-fatal error occurs.
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            See Also:
                                                                                                            Constant Field Values
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                              shun-iwasawa 82a8f5
                                                                                                            • shun-iwasawa 82a8f5

                                                                                                              ERR_FATAL

                                                                                                              shun-iwasawa 82a8f5
                                                                                                              public static final int ERR_FATAL
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              The error was fatal and non-recoverable.
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              See Also:
                                                                                                              Constant Field Values
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              shun-iwasawa 82a8f5
                                                                                                                shun-iwasawa 82a8f5
                                                                                                              • shun-iwasawa 82a8f5
                                                                                                                shun-iwasawa 82a8f5
                                                                                                                shun-iwasawa 82a8f5

                                                                                                                Method Detail

                                                                                                                shun-iwasawa 82a8f5
                                                                                                                shun-iwasawa 82a8f5
                                                                                                                shun-iwasawa 82a8f5
                                                                                                                shun-iwasawa 82a8f5
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                • shun-iwasawa 82a8f5

                                                                                                                  getMCUWidth

                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                  public static int getMCUWidth(int subsamp)
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                  Returns the MCU block width for the given level of chrominance
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                   subsampling.
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                  Parameters:
                                                                                                                  subsamp - the level of chrominance subsampling (one of
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                   SAMP_*)
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                  Returns:
                                                                                                                  the MCU block width for the given level of chrominance
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                   subsampling.
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                  • shun-iwasawa 82a8f5

                                                                                                                    getMCUHeight

                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                    public static int getMCUHeight(int subsamp)
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                    Returns the MCU block height for the given level of chrominance
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                     subsampling.
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                    Parameters:
                                                                                                                    subsamp - the level of chrominance subsampling (one of
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                     SAMP_*)
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                    Returns:
                                                                                                                    the MCU block height for the given level of chrominance
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                     subsampling.
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                    • shun-iwasawa 82a8f5

                                                                                                                      getPixelSize

                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                      public static int getPixelSize(int pixelFormat)
                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                      Returns the pixel size (in bytes) for the given pixel format.
                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                      Parameters:
                                                                                                                      pixelFormat - the pixel format (one of PF_*)
                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                      Returns:
                                                                                                                      the pixel size (in bytes) for the given pixel format.
                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                      • shun-iwasawa 82a8f5

                                                                                                                        getRedOffset

                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                        public static int getRedOffset(int pixelFormat)
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                        For the given pixel format, returns the number of bytes that the red
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                         component is offset from the start of the pixel.  For instance, if a pixel
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                         of format TJ.PF_BGRX is stored in char pixel[],
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                         then the red component will be
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                         pixel[TJ.getRedOffset(TJ.PF_BGRX)].
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                        Parameters:
                                                                                                                        pixelFormat - the pixel format (one of PF_*)
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                        Returns:
                                                                                                                        the red offset for the given pixel format, or -1 if the pixel
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                         format does not have a red component.
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                        • shun-iwasawa 82a8f5

                                                                                                                          getGreenOffset

                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                          public static int getGreenOffset(int pixelFormat)
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                          For the given pixel format, returns the number of bytes that the green
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                           component is offset from the start of the pixel.  For instance, if a pixel
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                           of format TJ.PF_BGRX is stored in char pixel[],
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                           then the green component will be
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                           pixel[TJ.getGreenOffset(TJ.PF_BGRX)].
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                          Parameters:
                                                                                                                          pixelFormat - the pixel format (one of PF_*)
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                          Returns:
                                                                                                                          the green offset for the given pixel format, or -1 if the pixel
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                           format does not have a green component.
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                          • shun-iwasawa 82a8f5

                                                                                                                            getBlueOffset

                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                            public static int getBlueOffset(int pixelFormat)
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                            For the given pixel format, returns the number of bytes that the blue
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                             component is offset from the start of the pixel.  For instance, if a pixel
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                             of format TJ.PF_BGRX is stored in char pixel[],
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                             then the blue component will be
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                             pixel[TJ.getBlueOffset(TJ.PF_BGRX)].
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                            Parameters:
                                                                                                                            pixelFormat - the pixel format (one of PF_*)
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                            Returns:
                                                                                                                            the blue offset for the given pixel format, or -1 if the pixel
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                             format does not have a blue component.
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                            • shun-iwasawa 82a8f5

                                                                                                                              getAlphaOffset

                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                              public static int getAlphaOffset(int pixelFormat)
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                              For the given pixel format, returns the number of bytes that the alpha
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                               component is offset from the start of the pixel.  For instance, if a pixel
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                               of format TJ.PF_BGRA is stored in char pixel[],
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                               then the alpha component will be
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                               pixel[TJ.getAlphaOffset(TJ.PF_BGRA)].
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                              Parameters:
                                                                                                                              pixelFormat - the pixel format (one of PF_*)
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                              Returns:
                                                                                                                              the alpha offset for the given pixel format, or -1 if the pixel
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                               format does not have a alpha component.
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                              • shun-iwasawa 82a8f5

                                                                                                                                bufSize

                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                public static int bufSize(int width,
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                          int height,
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                          int jpegSubsamp)
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                Returns the maximum size of the buffer (in bytes) required to hold a JPEG
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                 image with the given width, height, and level of chrominance subsampling.
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                Parameters:
                                                                                                                                width - the width (in pixels) of the JPEG image
                                                                                                                                height - the height (in pixels) of the JPEG image
                                                                                                                                jpegSubsamp - the level of chrominance subsampling to be used when
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                 generating the JPEG image (one of TJ.SAMP_*)
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                Returns:
                                                                                                                                the maximum size of the buffer (in bytes) required to hold a JPEG
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                 image with the given width, height, and level of chrominance subsampling.
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                • shun-iwasawa 82a8f5

                                                                                                                                  bufSizeYUV

                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                  public static int bufSizeYUV(int width,
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                               int pad,
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                               int height,
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                               int subsamp)
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                  Returns the size of the buffer (in bytes) required to hold a YUV planar
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                   image with the given width, height, and level of chrominance subsampling.
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                  Parameters:
                                                                                                                                  width - the width (in pixels) of the YUV image
                                                                                                                                  pad - the width of each line in each plane of the image is padded to
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                   the nearest multiple of this number of bytes (must be a power of 2.)
                                                                                                                                  height - the height (in pixels) of the YUV image
                                                                                                                                  subsamp - the level of chrominance subsampling used in the YUV
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                   image (one of TJ.SAMP_*)
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                  Returns:
                                                                                                                                  the size of the buffer (in bytes) required to hold a YUV planar
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                   image with the given width, height, and level of chrominance subsampling.
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                  • shun-iwasawa 82a8f5

                                                                                                                                    bufSizeYUV

                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                    @Deprecated
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                    public static int bufSizeYUV(int width,
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                            int height,
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                            int subsamp)
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                    Deprecated. Use bufSizeYUV(int, int, int, int) instead.
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                    • shun-iwasawa 82a8f5

                                                                                                                                      planeSizeYUV

                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                      public static int planeSizeYUV(int componentID,
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                                     int width,
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                                     int stride,
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                                     int height,
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                                     int subsamp)
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                      Returns the size of the buffer (in bytes) required to hold a YUV image
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                       plane with the given parameters.
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                      Parameters:
                                                                                                                                      componentID - ID number of the image plane (0 = Y, 1 = U/Cb,
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                       2 = V/Cr)
                                                                                                                                      width - width (in pixels) of the YUV image. NOTE: this is the width
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                       of the whole image, not the plane width.
                                                                                                                                      stride - bytes per line in the image plane.
                                                                                                                                      height - height (in pixels) of the YUV image. NOTE: this is the
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                       height of the whole image, not the plane height.
                                                                                                                                      subsamp - the level of chrominance subsampling used in the YUV
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                       image (one of TJ.SAMP_*)
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                      Returns:
                                                                                                                                      the size of the buffer (in bytes) required to hold a YUV planar
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                       image with the given parameters.
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                      • shun-iwasawa 82a8f5

                                                                                                                                        planeWidth

                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                        public static int planeWidth(int componentID,
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                                     int width,
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                                     int subsamp)
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                        Returns the plane width of a YUV image plane with the given parameters.
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                         Refer to YUVImage for a description of plane width.
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                        Parameters:
                                                                                                                                        componentID - ID number of the image plane (0 = Y, 1 = U/Cb,
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                         2 = V/Cr)
                                                                                                                                        width - width (in pixels) of the YUV image
                                                                                                                                        subsamp - the level of chrominance subsampling used in the YUV image
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                         (one of TJ.SAMP_*)
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                        Returns:
                                                                                                                                        the plane width of a YUV image plane with the given parameters.
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                        • shun-iwasawa 82a8f5

                                                                                                                                          planeHeight

                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                          public static int planeHeight(int componentID,
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                                        int height,
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                                        int subsamp)
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                          Returns the plane height of a YUV image plane with the given parameters.
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                           Refer to YUVImage for a description of plane height.
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                          Parameters:
                                                                                                                                          componentID - ID number of the image plane (0 = Y, 1 = U/Cb,
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                           2 = V/Cr)
                                                                                                                                          height - height (in pixels) of the YUV image
                                                                                                                                          subsamp - the level of chrominance subsampling used in the YUV image
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                           (one of TJ.SAMP_*)
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                          Returns:
                                                                                                                                          the plane height of a YUV image plane with the given parameters.
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                          • shun-iwasawa 82a8f5

                                                                                                                                            getScalingFactors

                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            public static TJScalingFactor[] getScalingFactors()
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            Returns a list of fractional scaling factors that the JPEG decompressor in
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                             this implementation of TurboJPEG supports.
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            Returns:
                                                                                                                                            a list of fractional scaling factors that the JPEG decompressor in
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                             this implementation of TurboJPEG supports.
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                            shun-iwasawa 82a8f5
                                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                                            • Package
                                                                                                                                            • shun-iwasawa 82a8f5
                                                                                                                                            • Class
                                                                                                                                            • shun-iwasawa 82a8f5
                                                                                                                                            • Tree
                                                                                                                                            • shun-iwasawa 82a8f5
                                                                                                                                            • Deprecated
                                                                                                                                            • shun-iwasawa 82a8f5
                                                                                                                                            • Index
                                                                                                                                            • shun-iwasawa 82a8f5
                                                                                                                                            • Help
                                                                                                                                            • shun-iwasawa 82a8f5
                                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                                              shun-iwasawa 82a8f5
                                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                              • Prev Class
                                                                                                                                              • shun-iwasawa 82a8f5
                                                                                                                                              • Next Class
                                                                                                                                              • shun-iwasawa 82a8f5
                                                                                                                                                shun-iwasawa 82a8f5
                                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                                • Frames
                                                                                                                                                • shun-iwasawa 82a8f5
                                                                                                                                                • No Frames
                                                                                                                                                • shun-iwasawa 82a8f5
                                                                                                                                                  shun-iwasawa 82a8f5
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                  • All Classes
                                                                                                                                                  • shun-iwasawa 82a8f5
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                    <script type="text/javascript"><!--</script>
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                      allClassesLink = document.getElementById("allclasses_navbar_bottom");
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                      if(window==top) {
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                        allClassesLink.style.display = "block";
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                      }
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                      else {
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                        allClassesLink.style.display = "none";
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                      }
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                      //-->
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                    shun-iwasawa 82a8f5
                                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                                    • Summary: 
                                                                                                                                                    • shun-iwasawa 82a8f5
                                                                                                                                                    • Nested | 
                                                                                                                                                    • shun-iwasawa 82a8f5
                                                                                                                                                    • Field | 
                                                                                                                                                    • shun-iwasawa 82a8f5
                                                                                                                                                    • Constr | 
                                                                                                                                                    • shun-iwasawa 82a8f5
                                                                                                                                                    • Method
                                                                                                                                                    • shun-iwasawa 82a8f5
                                                                                                                                                      shun-iwasawa 82a8f5
                                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                                      • Detail: 
                                                                                                                                                      • shun-iwasawa 82a8f5
                                                                                                                                                      • Field | 
                                                                                                                                                      • shun-iwasawa 82a8f5
                                                                                                                                                      • Constr | 
                                                                                                                                                      • shun-iwasawa 82a8f5
                                                                                                                                                      • Method
                                                                                                                                                      • shun-iwasawa 82a8f5
                                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                                        shun-iwasawa 82a8f5
                                                                                                                                                        shun-iwasawa 82a8f5