Blame thirdparty/libjpeg-turbo/libjpeg-turbo-2.0.6/java/doc/org/libjpegturbo/turbojpeg/TJDecompressor.html

shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
<title>TJDecompressor</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="TJDecompressor";
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 TJDecompressor

              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.TJDecompressor
                • shun-iwasawa 82a8f5
                  shun-iwasawa 82a8f5
                  shun-iwasawa 82a8f5
                  shun-iwasawa 82a8f5
                  shun-iwasawa 82a8f5
                    shun-iwasawa 82a8f5
                  • shun-iwasawa 82a8f5
                    shun-iwasawa 82a8f5
                    All Implemented Interfaces:
                    shun-iwasawa 82a8f5
                    java.io.Closeable, java.lang.AutoCloseable
                    shun-iwasawa 82a8f5
                    shun-iwasawa 82a8f5
                    shun-iwasawa 82a8f5
                    Direct Known Subclasses:
                    shun-iwasawa 82a8f5
                    TJTransformer
                    shun-iwasawa 82a8f5
                    shun-iwasawa 82a8f5

                    shun-iwasawa 82a8f5

                    shun-iwasawa 82a8f5
                    public class TJDecompressor
                    shun-iwasawa 82a8f5
                    extends java.lang.Object
                    shun-iwasawa 82a8f5
                    implements java.io.Closeable
                    shun-iwasawa 82a8f5
                    TurboJPEG decompressor
                    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
                        protected long
                        shun-iwasawa 82a8f5
                        handle 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        protected byte[]
                        shun-iwasawa 82a8f5
                        jpegBuf 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        protected int
                        shun-iwasawa 82a8f5
                        jpegBufSize 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        protected int
                        shun-iwasawa 82a8f5
                        jpegColorspace 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        protected int
                        shun-iwasawa 82a8f5
                        jpegHeight 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        protected int
                        shun-iwasawa 82a8f5
                        jpegSubsamp 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        protected int
                        shun-iwasawa 82a8f5
                        jpegWidth 
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        shun-iwasawa 82a8f5
                        protected YUVImage
                        shun-iwasawa 82a8f5
                        yuvImage 
                        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

                          Constructor Summary

                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          Constructors 
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          Constructor and Description
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          TJDecompressor()
                          shun-iwasawa 82a8f5
                          Create a TurboJPEG decompresssor instance.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          TJDecompressor(byte[] jpegImage)
                          shun-iwasawa 82a8f5
                          Create a TurboJPEG decompressor instance and associate the JPEG source
                          shun-iwasawa 82a8f5
                           image stored in jpegImage with the newly created instance.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          TJDecompressor(byte[] jpegImage,
                          shun-iwasawa 82a8f5
                                        int imageSize)
                          shun-iwasawa 82a8f5
                          Create a TurboJPEG decompressor instance and associate the JPEG source
                          shun-iwasawa 82a8f5
                           image of length imageSize bytes stored in
                          shun-iwasawa 82a8f5
                           jpegImage with the newly created instance.
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          shun-iwasawa 82a8f5
                          TJDecompressor(YUVImage yuvImage)
                          shun-iwasawa 82a8f5
                          Create a TurboJPEG decompressor instance and associate the YUV planar
                          shun-iwasawa 82a8f5
                           source image stored in yuvImage with the newly created
                          shun-iwasawa 82a8f5
                           instance.
                          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
                            void
                            shun-iwasawa 82a8f5
                            close()
                            shun-iwasawa 82a8f5
                            Free the native structures associated with this decompressor instance.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            void
                            shun-iwasawa 82a8f5
                            decompress(java.awt.image.BufferedImage dstImage,
                            shun-iwasawa 82a8f5
                                      int flags)
                            shun-iwasawa 82a8f5
                            Decompress the JPEG source image or decode the YUV source image associated
                            shun-iwasawa 82a8f5
                             with this decompressor instance and output a decompressed/decoded image to
                            shun-iwasawa 82a8f5
                             the given BufferedImage instance.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            void
                            shun-iwasawa 82a8f5
                            decompress(byte[] dstBuf,
                            shun-iwasawa 82a8f5
                                      int desiredWidth,
                            shun-iwasawa 82a8f5
                                      int pitch,
                            shun-iwasawa 82a8f5
                                      int desiredHeight,
                            shun-iwasawa 82a8f5
                                      int pixelFormat,
                            shun-iwasawa 82a8f5
                                      int flags)
                            shun-iwasawa 82a8f5
                            Deprecated. 
                            shun-iwasawa 82a8f5
                            Use
                            shun-iwasawa 82a8f5
                             decompress(byte[], int, int, int, int, int, int, int) instead.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            void
                            shun-iwasawa 82a8f5
                            decompress(byte[] dstBuf,
                            shun-iwasawa 82a8f5
                                      int x,
                            shun-iwasawa 82a8f5
                                      int y,
                            shun-iwasawa 82a8f5
                                      int desiredWidth,
                            shun-iwasawa 82a8f5
                                      int pitch,
                            shun-iwasawa 82a8f5
                                      int desiredHeight,
                            shun-iwasawa 82a8f5
                                      int pixelFormat,
                            shun-iwasawa 82a8f5
                                      int flags)
                            shun-iwasawa 82a8f5
                            Decompress the JPEG source image or decode the YUV source image associated
                            shun-iwasawa 82a8f5
                             with this decompressor instance and output a grayscale, RGB, or CMYK image
                            shun-iwasawa 82a8f5
                             to the given destination buffer.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            void
                            shun-iwasawa 82a8f5
                            decompress(int[] dstBuf,
                            shun-iwasawa 82a8f5
                                      int x,
                            shun-iwasawa 82a8f5
                                      int y,
                            shun-iwasawa 82a8f5
                                      int desiredWidth,
                            shun-iwasawa 82a8f5
                                      int stride,
                            shun-iwasawa 82a8f5
                                      int desiredHeight,
                            shun-iwasawa 82a8f5
                                      int pixelFormat,
                            shun-iwasawa 82a8f5
                                      int flags)
                            shun-iwasawa 82a8f5
                            Decompress the JPEG source image or decode the YUV source image associated
                            shun-iwasawa 82a8f5
                             with this decompressor instance and output a grayscale, RGB, or CMYK image
                            shun-iwasawa 82a8f5
                             to the given destination buffer.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            java.awt.image.BufferedImage
                            shun-iwasawa 82a8f5
                            decompress(int desiredWidth,
                            shun-iwasawa 82a8f5
                                      int desiredHeight,
                            shun-iwasawa 82a8f5
                                      int bufferedImageType,
                            shun-iwasawa 82a8f5
                                      int flags)
                            shun-iwasawa 82a8f5
                            Decompress the JPEG source image or decode the YUV source image associated
                            shun-iwasawa 82a8f5
                             with this decompressor instance and return a BufferedImage
                            shun-iwasawa 82a8f5
                             instance containing the decompressed/decoded image.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            byte[]
                            shun-iwasawa 82a8f5
                            decompress(int desiredWidth,
                            shun-iwasawa 82a8f5
                                      int pitch,
                            shun-iwasawa 82a8f5
                                      int desiredHeight,
                            shun-iwasawa 82a8f5
                                      int pixelFormat,
                            shun-iwasawa 82a8f5
                                      int flags)
                            shun-iwasawa 82a8f5
                            Decompress the JPEG source image associated with this decompressor
                            shun-iwasawa 82a8f5
                             instance and return a buffer containing the decompressed image.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            void
                            shun-iwasawa 82a8f5
                            decompressToYUV(byte[] dstBuf,
                            shun-iwasawa 82a8f5
                                           int flags)
                            shun-iwasawa 82a8f5
                            Deprecated. 
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            byte[]
                            shun-iwasawa 82a8f5
                            decompressToYUV(int flags)
                            shun-iwasawa 82a8f5
                            Deprecated. 
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            YUVImage
                            shun-iwasawa 82a8f5
                            decompressToYUV(int desiredWidth,
                            shun-iwasawa 82a8f5
                                           int[] strides,
                            shun-iwasawa 82a8f5
                                           int desiredHeight,
                            shun-iwasawa 82a8f5
                                           int flags)
                            shun-iwasawa 82a8f5
                            Decompress the JPEG source image associated with this decompressor
                            shun-iwasawa 82a8f5
                             instance into a set of Y, U (Cb), and V (Cr) image planes and return a
                            shun-iwasawa 82a8f5
                             YUVImage instance containing the decompressed image planes.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            YUVImage
                            shun-iwasawa 82a8f5
                            decompressToYUV(int desiredWidth,
                            shun-iwasawa 82a8f5
                                           int pad,
                            shun-iwasawa 82a8f5
                                           int desiredHeight,
                            shun-iwasawa 82a8f5
                                           int flags)
                            shun-iwasawa 82a8f5
                            Decompress the JPEG source image associated with this decompressor
                            shun-iwasawa 82a8f5
                             instance into a unified YUV planar image buffer and return a
                            shun-iwasawa 82a8f5
                             YUVImage instance containing the decompressed image.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            void
                            shun-iwasawa 82a8f5
                            decompressToYUV(YUVImage dstImage,
                            shun-iwasawa 82a8f5
                                           int flags)
                            shun-iwasawa 82a8f5
                            Decompress the JPEG source image associated with this decompressor
                            shun-iwasawa 82a8f5
                             instance into a YUV planar image and store it in the given
                            shun-iwasawa 82a8f5
                             YUVImage instance.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            protected void
                            shun-iwasawa 82a8f5
                            finalize() 
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            int
                            shun-iwasawa 82a8f5
                            getColorspace()
                            shun-iwasawa 82a8f5
                            Returns the colorspace used in the source image (JPEG or YUV) associated
                            shun-iwasawa 82a8f5
                             with this decompressor instance.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            int
                            shun-iwasawa 82a8f5
                            getHeight()
                            shun-iwasawa 82a8f5
                            Returns the height of the source image (JPEG or YUV) associated with this
                            shun-iwasawa 82a8f5
                             decompressor instance.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            byte[]
                            shun-iwasawa 82a8f5
                            getJPEGBuf()
                            shun-iwasawa 82a8f5
                            Returns the JPEG image buffer associated with this decompressor instance.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            int
                            shun-iwasawa 82a8f5
                            getJPEGSize()
                            shun-iwasawa 82a8f5
                            Returns the size of the JPEG image (in bytes) associated with this
                            shun-iwasawa 82a8f5
                             decompressor instance.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            int
                            shun-iwasawa 82a8f5
                            getScaledHeight(int desiredWidth,
                            shun-iwasawa 82a8f5
                                           int desiredHeight)
                            shun-iwasawa 82a8f5
                            Returns the height of the largest scaled-down image that the TurboJPEG
                            shun-iwasawa 82a8f5
                             decompressor can generate without exceeding the desired image width and
                            shun-iwasawa 82a8f5
                             height.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            int
                            shun-iwasawa 82a8f5
                            getScaledWidth(int desiredWidth,
                            shun-iwasawa 82a8f5
                                          int desiredHeight)
                            shun-iwasawa 82a8f5
                            Returns the width of the largest scaled-down image that the TurboJPEG
                            shun-iwasawa 82a8f5
                             decompressor can generate without exceeding the desired image width and
                            shun-iwasawa 82a8f5
                             height.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            int
                            shun-iwasawa 82a8f5
                            getSubsamp()
                            shun-iwasawa 82a8f5
                            Returns the level of chrominance subsampling used in the source image
                            shun-iwasawa 82a8f5
                             (JPEG or YUV) associated with this decompressor instance.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            int
                            shun-iwasawa 82a8f5
                            getWidth()
                            shun-iwasawa 82a8f5
                            Returns the width of the source image (JPEG or YUV) associated with this
                            shun-iwasawa 82a8f5
                             decompressor instance.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            void
                            shun-iwasawa 82a8f5
                            setJPEGImage(byte[] jpegImage,
                            shun-iwasawa 82a8f5
                                        int imageSize)
                            shun-iwasawa 82a8f5
                            Deprecated. 
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            void
                            shun-iwasawa 82a8f5
                            setSourceImage(byte[] jpegImage,
                            shun-iwasawa 82a8f5
                                          int imageSize)
                            shun-iwasawa 82a8f5
                            Associate the JPEG image of length imageSize bytes stored in
                            shun-iwasawa 82a8f5
                             jpegImage with this decompressor instance.
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            shun-iwasawa 82a8f5
                            void
                            shun-iwasawa 82a8f5
                            setSourceImage(YUVImage srcImage)
                            shun-iwasawa 82a8f5
                            Associate the specified YUV planar source image with this decompressor
                            shun-iwasawa 82a8f5
                             instance.
                            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, 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

                                    handle

                                    shun-iwasawa 82a8f5
                                    protected long handle
                                    shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                    shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                    • shun-iwasawa 82a8f5

                                      jpegBuf

                                      shun-iwasawa 82a8f5
                                      protected byte[] jpegBuf
                                      shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                      shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                      • shun-iwasawa 82a8f5

                                        jpegBufSize

                                        shun-iwasawa 82a8f5
                                        protected int jpegBufSize
                                        shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                        shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                        • shun-iwasawa 82a8f5

                                          yuvImage

                                          shun-iwasawa 82a8f5
                                          protected YUVImage yuvImage
                                          shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                          shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                          • shun-iwasawa 82a8f5

                                            jpegWidth

                                            shun-iwasawa 82a8f5
                                            protected int jpegWidth
                                            shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                            shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                            • shun-iwasawa 82a8f5

                                              jpegHeight

                                              shun-iwasawa 82a8f5
                                              protected int jpegHeight
                                              shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                              shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                              • shun-iwasawa 82a8f5

                                                jpegSubsamp

                                                shun-iwasawa 82a8f5
                                                protected int jpegSubsamp
                                                shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                                shun-iwasawa 82a8f5
                                                  shun-iwasawa 82a8f5
                                                • shun-iwasawa 82a8f5

                                                  jpegColorspace

                                                  shun-iwasawa 82a8f5
                                                  protected int jpegColorspace
                                                  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

                                                    Constructor Detail

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

                                                      TJDecompressor

                                                      shun-iwasawa 82a8f5
                                                      public TJDecompressor()
                                                      shun-iwasawa 82a8f5
                                                                     throws TJException
                                                      shun-iwasawa 82a8f5
                                                      Create a TurboJPEG decompresssor instance.
                                                      shun-iwasawa 82a8f5
                                                      Throws:
                                                      shun-iwasawa 82a8f5
                                                      TJException
                                                      shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                      shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                      • shun-iwasawa 82a8f5

                                                        TJDecompressor

                                                        shun-iwasawa 82a8f5
                                                        public TJDecompressor(byte[] jpegImage)
                                                        shun-iwasawa 82a8f5
                                                                       throws TJException
                                                        shun-iwasawa 82a8f5
                                                        Create a TurboJPEG decompressor instance and associate the JPEG source
                                                        shun-iwasawa 82a8f5
                                                         image stored in jpegImage with the newly created instance.
                                                        shun-iwasawa 82a8f5
                                                        Parameters:
                                                        jpegImage - JPEG image buffer (size of the JPEG image is assumed to
                                                        shun-iwasawa 82a8f5
                                                         be the length of the array.)  This buffer is not modified.
                                                        shun-iwasawa 82a8f5
                                                        Throws:
                                                        shun-iwasawa 82a8f5
                                                        TJException
                                                        shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                        shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                        • shun-iwasawa 82a8f5

                                                          TJDecompressor

                                                          shun-iwasawa 82a8f5
                                                          public TJDecompressor(byte[] jpegImage,
                                                          shun-iwasawa 82a8f5
                                                                        int imageSize)
                                                          shun-iwasawa 82a8f5
                                                                         throws TJException
                                                          shun-iwasawa 82a8f5
                                                          Create a TurboJPEG decompressor instance and associate the JPEG source
                                                          shun-iwasawa 82a8f5
                                                           image of length imageSize bytes stored in
                                                          shun-iwasawa 82a8f5
                                                           jpegImage with the newly created instance.
                                                          shun-iwasawa 82a8f5
                                                          Parameters:
                                                          jpegImage - JPEG image buffer. This buffer is not modified.
                                                          imageSize - size of the JPEG image (in bytes)
                                                          shun-iwasawa 82a8f5
                                                          Throws:
                                                          shun-iwasawa 82a8f5
                                                          TJException
                                                          shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                          shun-iwasawa 82a8f5
                                                            shun-iwasawa 82a8f5
                                                          • shun-iwasawa 82a8f5

                                                            TJDecompressor

                                                            shun-iwasawa 82a8f5
                                                            public TJDecompressor(YUVImage yuvImage)
                                                            shun-iwasawa 82a8f5
                                                                           throws TJException
                                                            shun-iwasawa 82a8f5
                                                            Create a TurboJPEG decompressor instance and associate the YUV planar
                                                            shun-iwasawa 82a8f5
                                                             source image stored in yuvImage with the newly created
                                                            shun-iwasawa 82a8f5
                                                             instance.
                                                            shun-iwasawa 82a8f5
                                                            Parameters:
                                                            yuvImage - YUVImage instance containing a YUV planar
                                                            shun-iwasawa 82a8f5
                                                             image to be decoded.  This image is not modified.
                                                            shun-iwasawa 82a8f5
                                                            Throws:
                                                            shun-iwasawa 82a8f5
                                                            TJException
                                                            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

                                                                setSourceImage

                                                                shun-iwasawa 82a8f5
                                                                public void setSourceImage(byte[] jpegImage,
                                                                shun-iwasawa 82a8f5
                                                                                  int imageSize)
                                                                shun-iwasawa 82a8f5
                                                                                    throws TJException
                                                                shun-iwasawa 82a8f5
                                                                Associate the JPEG image of length imageSize bytes stored in
                                                                shun-iwasawa 82a8f5
                                                                 jpegImage with this decompressor instance.  This image will
                                                                shun-iwasawa 82a8f5
                                                                 be used as the source image for subsequent decompress operations.
                                                                shun-iwasawa 82a8f5
                                                                Parameters:
                                                                jpegImage - JPEG image buffer. This buffer is not modified.
                                                                imageSize - size of the JPEG image (in bytes)
                                                                shun-iwasawa 82a8f5
                                                                Throws:
                                                                shun-iwasawa 82a8f5
                                                                TJException
                                                                shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                                shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                • shun-iwasawa 82a8f5

                                                                  setJPEGImage

                                                                  shun-iwasawa 82a8f5
                                                                  @Deprecated
                                                                  shun-iwasawa 82a8f5
                                                                  public void setJPEGImage(byte[] jpegImage,
                                                                  shun-iwasawa 82a8f5
                                                                                             int imageSize)
                                                                  shun-iwasawa 82a8f5
                                                                                    throws TJException
                                                                  shun-iwasawa 82a8f5
                                                                  Deprecated. Use setSourceImage(byte[], int) instead.
                                                                  shun-iwasawa 82a8f5
                                                                  Throws:
                                                                  shun-iwasawa 82a8f5
                                                                  TJException
                                                                  shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                  shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                  • shun-iwasawa 82a8f5

                                                                    setSourceImage

                                                                    shun-iwasawa 82a8f5
                                                                    public void setSourceImage(YUVImage srcImage)
                                                                    shun-iwasawa 82a8f5
                                                                    Associate the specified YUV planar source image with this decompressor
                                                                    shun-iwasawa 82a8f5
                                                                     instance.  Subsequent decompress operations will decode this image into an
                                                                    shun-iwasawa 82a8f5
                                                                     RGB or grayscale destination image.
                                                                    shun-iwasawa 82a8f5
                                                                    Parameters:
                                                                    srcImage - YUVImage instance containing a YUV planar image to
                                                                    shun-iwasawa 82a8f5
                                                                     be decoded.  This image is not modified.
                                                                    shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                    shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                    • shun-iwasawa 82a8f5

                                                                      getWidth

                                                                      shun-iwasawa 82a8f5
                                                                      public int getWidth()
                                                                      shun-iwasawa 82a8f5
                                                                      Returns the width of the source image (JPEG or YUV) associated with this
                                                                      shun-iwasawa 82a8f5
                                                                       decompressor instance.
                                                                      shun-iwasawa 82a8f5
                                                                      Returns:
                                                                      the width of the source image (JPEG or YUV) associated with this
                                                                      shun-iwasawa 82a8f5
                                                                       decompressor instance.
                                                                      shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                      shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                      • shun-iwasawa 82a8f5

                                                                        getHeight

                                                                        shun-iwasawa 82a8f5
                                                                        public int getHeight()
                                                                        shun-iwasawa 82a8f5
                                                                        Returns the height of the source image (JPEG or YUV) associated with this
                                                                        shun-iwasawa 82a8f5
                                                                         decompressor instance.
                                                                        shun-iwasawa 82a8f5
                                                                        Returns:
                                                                        the height of the source image (JPEG or YUV) associated with this
                                                                        shun-iwasawa 82a8f5
                                                                         decompressor instance.
                                                                        shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                        shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                        • shun-iwasawa 82a8f5

                                                                          getSubsamp

                                                                          shun-iwasawa 82a8f5
                                                                          public int getSubsamp()
                                                                          shun-iwasawa 82a8f5
                                                                          Returns the level of chrominance subsampling used in the source image
                                                                          shun-iwasawa 82a8f5
                                                                           (JPEG or YUV) associated with this decompressor instance.  See
                                                                          shun-iwasawa 82a8f5
                                                                           TJ.SAMP_*.
                                                                          shun-iwasawa 82a8f5
                                                                          Returns:
                                                                          the level of chrominance subsampling used in the source image
                                                                          shun-iwasawa 82a8f5
                                                                           (JPEG or YUV) associated with this decompressor instance.
                                                                          shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                          shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                          • shun-iwasawa 82a8f5

                                                                            getColorspace

                                                                            shun-iwasawa 82a8f5
                                                                            public int getColorspace()
                                                                            shun-iwasawa 82a8f5
                                                                            Returns the colorspace used in the source image (JPEG or YUV) associated
                                                                            shun-iwasawa 82a8f5
                                                                             with this decompressor instance.  See TJ.CS_*.  If the
                                                                            shun-iwasawa 82a8f5
                                                                             source image is YUV, then this always returns TJ.CS_YCbCr.
                                                                            shun-iwasawa 82a8f5
                                                                            Returns:
                                                                            the colorspace used in the source image (JPEG or YUV) associated
                                                                            shun-iwasawa 82a8f5
                                                                             with this decompressor instance.
                                                                            shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                            shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                            • shun-iwasawa 82a8f5

                                                                              getJPEGBuf

                                                                              shun-iwasawa 82a8f5
                                                                              public byte[] getJPEGBuf()
                                                                              shun-iwasawa 82a8f5
                                                                              Returns the JPEG image buffer associated with this decompressor instance.
                                                                              shun-iwasawa 82a8f5
                                                                              Returns:
                                                                              the JPEG image buffer associated with this decompressor instance.
                                                                              shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                              shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                              • shun-iwasawa 82a8f5

                                                                                getJPEGSize

                                                                                shun-iwasawa 82a8f5
                                                                                public int getJPEGSize()
                                                                                shun-iwasawa 82a8f5
                                                                                Returns the size of the JPEG image (in bytes) associated with this
                                                                                shun-iwasawa 82a8f5
                                                                                 decompressor instance.
                                                                                shun-iwasawa 82a8f5
                                                                                Returns:
                                                                                the size of the JPEG image (in bytes) associated with this
                                                                                shun-iwasawa 82a8f5
                                                                                 decompressor instance.
                                                                                shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                                shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                • shun-iwasawa 82a8f5

                                                                                  getScaledWidth

                                                                                  shun-iwasawa 82a8f5
                                                                                  public int getScaledWidth(int desiredWidth,
                                                                                  shun-iwasawa 82a8f5
                                                                                                   int desiredHeight)
                                                                                  shun-iwasawa 82a8f5
                                                                                  Returns the width of the largest scaled-down image that the TurboJPEG
                                                                                  shun-iwasawa 82a8f5
                                                                                   decompressor can generate without exceeding the desired image width and
                                                                                  shun-iwasawa 82a8f5
                                                                                   height.
                                                                                  shun-iwasawa 82a8f5
                                                                                  Parameters:
                                                                                  desiredWidth - desired width (in pixels) of the decompressed image.
                                                                                  shun-iwasawa 82a8f5
                                                                                   Setting this to 0 is the same as setting it to the width of the JPEG image
                                                                                  shun-iwasawa 82a8f5
                                                                                   (in other words, the width will not be considered when determining the
                                                                                  shun-iwasawa 82a8f5
                                                                                   scaled image size.)
                                                                                  desiredHeight - desired height (in pixels) of the decompressed image.
                                                                                  shun-iwasawa 82a8f5
                                                                                   Setting this to 0 is the same as setting it to the height of the JPEG
                                                                                  shun-iwasawa 82a8f5
                                                                                   image (in other words, the height will not be considered when determining
                                                                                  shun-iwasawa 82a8f5
                                                                                   the scaled image size.)
                                                                                  shun-iwasawa 82a8f5
                                                                                  Returns:
                                                                                  the width of the largest scaled-down image that the TurboJPEG
                                                                                  shun-iwasawa 82a8f5
                                                                                   decompressor can generate without exceeding the desired image width and
                                                                                  shun-iwasawa 82a8f5
                                                                                   height.
                                                                                  shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                  shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                  • shun-iwasawa 82a8f5

                                                                                    getScaledHeight

                                                                                    shun-iwasawa 82a8f5
                                                                                    public int getScaledHeight(int desiredWidth,
                                                                                    shun-iwasawa 82a8f5
                                                                                                      int desiredHeight)
                                                                                    shun-iwasawa 82a8f5
                                                                                    Returns the height of the largest scaled-down image that the TurboJPEG
                                                                                    shun-iwasawa 82a8f5
                                                                                     decompressor can generate without exceeding the desired image width and
                                                                                    shun-iwasawa 82a8f5
                                                                                     height.
                                                                                    shun-iwasawa 82a8f5
                                                                                    Parameters:
                                                                                    desiredWidth - desired width (in pixels) of the decompressed image.
                                                                                    shun-iwasawa 82a8f5
                                                                                     Setting this to 0 is the same as setting it to the width of the JPEG image
                                                                                    shun-iwasawa 82a8f5
                                                                                     (in other words, the width will not be considered when determining the
                                                                                    shun-iwasawa 82a8f5
                                                                                     scaled image size.)
                                                                                    desiredHeight - desired height (in pixels) of the decompressed image.
                                                                                    shun-iwasawa 82a8f5
                                                                                     Setting this to 0 is the same as setting it to the height of the JPEG
                                                                                    shun-iwasawa 82a8f5
                                                                                     image (in other words, the height will not be considered when determining
                                                                                    shun-iwasawa 82a8f5
                                                                                     the scaled image size.)
                                                                                    shun-iwasawa 82a8f5
                                                                                    Returns:
                                                                                    the height of the largest scaled-down image that the TurboJPEG
                                                                                    shun-iwasawa 82a8f5
                                                                                     decompressor can generate without exceeding the desired image width and
                                                                                    shun-iwasawa 82a8f5
                                                                                     height.
                                                                                    shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                    shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                    • shun-iwasawa 82a8f5

                                                                                      decompress

                                                                                      shun-iwasawa 82a8f5
                                                                                      public void decompress(byte[] dstBuf,
                                                                                      shun-iwasawa 82a8f5
                                                                                                    int x,
                                                                                      shun-iwasawa 82a8f5
                                                                                                    int y,
                                                                                      shun-iwasawa 82a8f5
                                                                                                    int desiredWidth,
                                                                                      shun-iwasawa 82a8f5
                                                                                                    int pitch,
                                                                                      shun-iwasawa 82a8f5
                                                                                                    int desiredHeight,
                                                                                      shun-iwasawa 82a8f5
                                                                                                    int pixelFormat,
                                                                                      shun-iwasawa 82a8f5
                                                                                                    int flags)
                                                                                      shun-iwasawa 82a8f5
                                                                                                      throws TJException
                                                                                      shun-iwasawa 82a8f5
                                                                                      Decompress the JPEG source image or decode the YUV source image associated
                                                                                      shun-iwasawa 82a8f5
                                                                                       with this decompressor instance and output a grayscale, RGB, or CMYK image
                                                                                      shun-iwasawa 82a8f5
                                                                                       to the given destination buffer.
                                                                                      shun-iwasawa 82a8f5
                                                                                       

                                                                                      shun-iwasawa 82a8f5
                                                                                       NOTE: The output image is fully recoverable if this method throws a
                                                                                      shun-iwasawa 82a8f5
                                                                                       non-fatal TJException (unless
                                                                                      shun-iwasawa 82a8f5
                                                                                       TJ.FLAG_STOPONWARNING is specified.)
                                                                                      shun-iwasawa 82a8f5
                                                                                      Parameters:
                                                                                      dstBuf - buffer that will receive the decompressed/decoded image.
                                                                                      shun-iwasawa 82a8f5
                                                                                       If the source image is a JPEG image, then this buffer should normally be
                                                                                      shun-iwasawa 82a8f5
                                                                                       pitch * scaledHeight bytes in size, where
                                                                                      shun-iwasawa 82a8f5
                                                                                       scaledHeight can be determined by calling 
                                                                                      shun-iwasawa 82a8f5
                                                                                       scalingFactor.getScaled(jpegHeight)
                                                                                      shun-iwasawa 82a8f5
                                                                                        with one of the scaling factors returned from TJ.getScalingFactors() or by calling getScaledHeight(int, int).  If the
                                                                                      shun-iwasawa 82a8f5
                                                                                       source image is a YUV image, then this buffer should normally be
                                                                                      shun-iwasawa 82a8f5
                                                                                       pitch * height bytes in size, where height is
                                                                                      shun-iwasawa 82a8f5
                                                                                       the height of the YUV image.  However, the buffer may also be larger than
                                                                                      shun-iwasawa 82a8f5
                                                                                       the dimensions of the source image, in which case the x,
                                                                                      shun-iwasawa 82a8f5
                                                                                       y, and pitch parameters can be used to specify
                                                                                      shun-iwasawa 82a8f5
                                                                                       the region into which the source image should be decompressed/decoded.
                                                                                      x - x offset (in pixels) of the region in the destination image into
                                                                                      shun-iwasawa 82a8f5
                                                                                       which the source image should be decompressed/decoded
                                                                                      y - y offset (in pixels) of the region in the destination image into
                                                                                      shun-iwasawa 82a8f5
                                                                                       which the source image should be decompressed/decoded
                                                                                      desiredWidth - If the source image is a JPEG image, then this
                                                                                      shun-iwasawa 82a8f5
                                                                                       specifies the desired width (in pixels) of the decompressed image (or
                                                                                      shun-iwasawa 82a8f5
                                                                                       image region.)  If the desired destination image dimensions are different
                                                                                      shun-iwasawa 82a8f5
                                                                                       than the source image dimensions, then TurboJPEG will use scaling in the
                                                                                      shun-iwasawa 82a8f5
                                                                                       JPEG decompressor to generate the largest possible image that will fit
                                                                                      shun-iwasawa 82a8f5
                                                                                       within the desired dimensions.  Setting this to 0 is the same as setting
                                                                                      shun-iwasawa 82a8f5
                                                                                       it to the width of the JPEG image (in other words, the width will not be
                                                                                      shun-iwasawa 82a8f5
                                                                                       considered when determining the scaled image size.)  This parameter is
                                                                                      shun-iwasawa 82a8f5
                                                                                       ignored if the source image is a YUV image.
                                                                                      pitch - bytes per line of the destination image. Normally, this
                                                                                      shun-iwasawa 82a8f5
                                                                                       should be set to scaledWidth * TJ.pixelSize(pixelFormat) if
                                                                                      shun-iwasawa 82a8f5
                                                                                       the destination image is unpadded, but you can use this to, for instance,
                                                                                      shun-iwasawa 82a8f5
                                                                                       pad each line of the destination image to a 4-byte boundary or to
                                                                                      shun-iwasawa 82a8f5
                                                                                       decompress/decode the source image into a region of a larger image.  NOTE:
                                                                                      shun-iwasawa 82a8f5
                                                                                       if the source image is a JPEG image, then scaledWidth can be
                                                                                      shun-iwasawa 82a8f5
                                                                                       determined by calling 
                                                                                      shun-iwasawa 82a8f5
                                                                                       scalingFactor.getScaled(jpegWidth)
                                                                                      shun-iwasawa 82a8f5
                                                                                        or by calling getScaledWidth(int, int).  If the source image is a
                                                                                      shun-iwasawa 82a8f5
                                                                                       YUV image, then scaledWidth is the width of the YUV image.
                                                                                      shun-iwasawa 82a8f5
                                                                                       Setting this parameter to 0 is the equivalent of setting it to
                                                                                      shun-iwasawa 82a8f5
                                                                                       scaledWidth * TJ.pixelSize(pixelFormat).
                                                                                      desiredHeight - If the source image is a JPEG image, then this
                                                                                      shun-iwasawa 82a8f5
                                                                                       specifies the desired height (in pixels) of the decompressed image (or
                                                                                      shun-iwasawa 82a8f5
                                                                                       image region.)  If the desired destination image dimensions are different
                                                                                      shun-iwasawa 82a8f5
                                                                                       than the source image dimensions, then TurboJPEG will use scaling in the
                                                                                      shun-iwasawa 82a8f5
                                                                                       JPEG decompressor to generate the largest possible image that will fit
                                                                                      shun-iwasawa 82a8f5
                                                                                       within the desired dimensions.  Setting this to 0 is the same as setting
                                                                                      shun-iwasawa 82a8f5
                                                                                       it to the height of the JPEG image (in other words, the height will not be
                                                                                      shun-iwasawa 82a8f5
                                                                                       considered when determining the scaled image size.)  This parameter is
                                                                                      shun-iwasawa 82a8f5
                                                                                       ignored if the source image is a YUV image.
                                                                                      pixelFormat - pixel format of the decompressed/decoded image (one of
                                                                                      shun-iwasawa 82a8f5
                                                                                       TJ.PF_*)
                                                                                      flags - the bitwise OR of one or more of
                                                                                      shun-iwasawa 82a8f5
                                                                                       TJ.FLAG_*
                                                                                      shun-iwasawa 82a8f5
                                                                                      Throws:
                                                                                      shun-iwasawa 82a8f5
                                                                                      TJException
                                                                                      shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                      shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                      • shun-iwasawa 82a8f5

                                                                                        decompress

                                                                                        shun-iwasawa 82a8f5
                                                                                        @Deprecated
                                                                                        shun-iwasawa 82a8f5
                                                                                        public void decompress(byte[] dstBuf,
                                                                                        shun-iwasawa 82a8f5
                                                                                                                 int desiredWidth,
                                                                                        shun-iwasawa 82a8f5
                                                                                                                 int pitch,
                                                                                        shun-iwasawa 82a8f5
                                                                                                                 int desiredHeight,
                                                                                        shun-iwasawa 82a8f5
                                                                                                                 int pixelFormat,
                                                                                        shun-iwasawa 82a8f5
                                                                                                                 int flags)
                                                                                        shun-iwasawa 82a8f5
                                                                                                        throws TJException
                                                                                        shun-iwasawa 82a8f5
                                                                                        Deprecated. Use
                                                                                        shun-iwasawa 82a8f5
                                                                                         decompress(byte[], int, int, int, int, int, int, int) instead.
                                                                                        shun-iwasawa 82a8f5
                                                                                        Throws:
                                                                                        shun-iwasawa 82a8f5
                                                                                        TJException
                                                                                        shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                        shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                        • shun-iwasawa 82a8f5

                                                                                          decompress

                                                                                          shun-iwasawa 82a8f5
                                                                                          public byte[] decompress(int desiredWidth,
                                                                                          shun-iwasawa 82a8f5
                                                                                                          int pitch,
                                                                                          shun-iwasawa 82a8f5
                                                                                                          int desiredHeight,
                                                                                          shun-iwasawa 82a8f5
                                                                                                          int pixelFormat,
                                                                                          shun-iwasawa 82a8f5
                                                                                                          int flags)
                                                                                          shun-iwasawa 82a8f5
                                                                                                            throws TJException
                                                                                          shun-iwasawa 82a8f5
                                                                                          Decompress the JPEG source image associated with this decompressor
                                                                                          shun-iwasawa 82a8f5
                                                                                           instance and return a buffer containing the decompressed image.
                                                                                          shun-iwasawa 82a8f5
                                                                                          Parameters:
                                                                                          desiredWidth - see
                                                                                          shun-iwasawa 82a8f5
                                                                                           decompress(byte[], int, int, int, int, int, int, int)
                                                                                          shun-iwasawa 82a8f5
                                                                                           for description
                                                                                          pitch - see
                                                                                          shun-iwasawa 82a8f5
                                                                                           decompress(byte[], int, int, int, int, int, int, int)
                                                                                          shun-iwasawa 82a8f5
                                                                                           for description
                                                                                          desiredHeight - see
                                                                                          shun-iwasawa 82a8f5
                                                                                           decompress(byte[], int, int, int, int, int, int, int)
                                                                                          shun-iwasawa 82a8f5
                                                                                           for description
                                                                                          pixelFormat - pixel format of the decompressed image (one of
                                                                                          shun-iwasawa 82a8f5
                                                                                           TJ.PF_*)
                                                                                          flags - the bitwise OR of one or more of
                                                                                          shun-iwasawa 82a8f5
                                                                                           TJ.FLAG_*
                                                                                          shun-iwasawa 82a8f5
                                                                                          Returns:
                                                                                          a buffer containing the decompressed image.
                                                                                          shun-iwasawa 82a8f5
                                                                                          Throws:
                                                                                          shun-iwasawa 82a8f5
                                                                                          TJException
                                                                                          shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                          shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                          • shun-iwasawa 82a8f5

                                                                                            decompressToYUV

                                                                                            shun-iwasawa 82a8f5
                                                                                            public void decompressToYUV(YUVImage dstImage,
                                                                                            shun-iwasawa 82a8f5
                                                                                                               int flags)
                                                                                            shun-iwasawa 82a8f5
                                                                                                                 throws TJException
                                                                                            shun-iwasawa 82a8f5
                                                                                            Decompress the JPEG source image associated with this decompressor
                                                                                            shun-iwasawa 82a8f5
                                                                                             instance into a YUV planar image and store it in the given
                                                                                            shun-iwasawa 82a8f5
                                                                                             YUVImage instance.  This method performs JPEG decompression
                                                                                            shun-iwasawa 82a8f5
                                                                                             but leaves out the color conversion step, so a planar YUV image is
                                                                                            shun-iwasawa 82a8f5
                                                                                             generated instead of an RGB or grayscale image.  This method cannot be
                                                                                            shun-iwasawa 82a8f5
                                                                                             used to decompress JPEG source images with the CMYK or YCCK colorspace.
                                                                                            shun-iwasawa 82a8f5
                                                                                             

                                                                                            shun-iwasawa 82a8f5
                                                                                             NOTE: The YUV planar output image is fully recoverable if this method
                                                                                            shun-iwasawa 82a8f5
                                                                                             throws a non-fatal TJException (unless
                                                                                            shun-iwasawa 82a8f5
                                                                                             TJ.FLAG_STOPONWARNING is specified.)
                                                                                            shun-iwasawa 82a8f5
                                                                                            Parameters:
                                                                                            dstImage - YUVImage instance that will receive the YUV planar
                                                                                            shun-iwasawa 82a8f5
                                                                                             image.  The level of subsampling specified in this YUVImage
                                                                                            shun-iwasawa 82a8f5
                                                                                             instance must match that of the JPEG image, and the width and height
                                                                                            shun-iwasawa 82a8f5
                                                                                             specified in the YUVImage instance must match one of the
                                                                                            shun-iwasawa 82a8f5
                                                                                             scaled image sizes that TurboJPEG is capable of generating from the JPEG
                                                                                            shun-iwasawa 82a8f5
                                                                                             source image.
                                                                                            flags - the bitwise OR of one or more of
                                                                                            shun-iwasawa 82a8f5
                                                                                             TJ.FLAG_*
                                                                                            shun-iwasawa 82a8f5
                                                                                            Throws:
                                                                                            shun-iwasawa 82a8f5
                                                                                            TJException
                                                                                            shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                            shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                            • shun-iwasawa 82a8f5

                                                                                              decompressToYUV

                                                                                              shun-iwasawa 82a8f5
                                                                                              @Deprecated
                                                                                              shun-iwasawa 82a8f5
                                                                                              public void decompressToYUV(byte[] dstBuf,
                                                                                              shun-iwasawa 82a8f5
                                                                                                                            int flags)
                                                                                              shun-iwasawa 82a8f5
                                                                                                                   throws TJException
                                                                                              shun-iwasawa 82a8f5
                                                                                              Deprecated. Use decompressToYUV(YUVImage, int) instead.
                                                                                              shun-iwasawa 82a8f5
                                                                                              Throws:
                                                                                              shun-iwasawa 82a8f5
                                                                                              TJException
                                                                                              shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                              shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                              • shun-iwasawa 82a8f5

                                                                                                decompressToYUV

                                                                                                shun-iwasawa 82a8f5
                                                                                                public YUVImage decompressToYUV(int desiredWidth,
                                                                                                shun-iwasawa 82a8f5
                                                                                                                       int[] strides,
                                                                                                shun-iwasawa 82a8f5
                                                                                                                       int desiredHeight,
                                                                                                shun-iwasawa 82a8f5
                                                                                                                       int flags)
                                                                                                shun-iwasawa 82a8f5
                                                                                                                         throws TJException
                                                                                                shun-iwasawa 82a8f5
                                                                                                Decompress the JPEG source image associated with this decompressor
                                                                                                shun-iwasawa 82a8f5
                                                                                                 instance into a set of Y, U (Cb), and V (Cr) image planes and return a
                                                                                                shun-iwasawa 82a8f5
                                                                                                 YUVImage instance containing the decompressed image planes.
                                                                                                shun-iwasawa 82a8f5
                                                                                                 This method performs JPEG decompression but leaves out the color
                                                                                                shun-iwasawa 82a8f5
                                                                                                 conversion step, so a planar YUV image is generated instead of an RGB or
                                                                                                shun-iwasawa 82a8f5
                                                                                                 grayscale image.  This method cannot be used to decompress JPEG source
                                                                                                shun-iwasawa 82a8f5
                                                                                                 images with the CMYK or YCCK colorspace.
                                                                                                shun-iwasawa 82a8f5
                                                                                                Parameters:
                                                                                                desiredWidth - desired width (in pixels) of the YUV image. If the
                                                                                                shun-iwasawa 82a8f5
                                                                                                 desired image dimensions are different than the dimensions of the JPEG
                                                                                                shun-iwasawa 82a8f5
                                                                                                 image being decompressed, then TurboJPEG will use scaling in the JPEG
                                                                                                shun-iwasawa 82a8f5
                                                                                                 decompressor to generate the largest possible image that will fit within
                                                                                                shun-iwasawa 82a8f5
                                                                                                 the desired dimensions.  Setting this to 0 is the same as setting it to
                                                                                                shun-iwasawa 82a8f5
                                                                                                 the width of the JPEG image (in other words, the width will not be
                                                                                                shun-iwasawa 82a8f5
                                                                                                 considered when determining the scaled image size.)
                                                                                                strides - an array of integers, each specifying the number of bytes
                                                                                                shun-iwasawa 82a8f5
                                                                                                 per line in the corresponding plane of the output image.  Setting the
                                                                                                shun-iwasawa 82a8f5
                                                                                                 stride for any plane to 0 is the same as setting it to the scaled
                                                                                                shun-iwasawa 82a8f5
                                                                                                 component width of the plane.  If <tt>strides</tt> is NULL, then the
                                                                                                shun-iwasawa 82a8f5
                                                                                                 strides for all planes will be set to their respective scaled component
                                                                                                shun-iwasawa 82a8f5
                                                                                                 widths.  You can adjust the strides in order to add an arbitrary amount of
                                                                                                shun-iwasawa 82a8f5
                                                                                                 line padding to each plane.
                                                                                                desiredHeight - desired height (in pixels) of the YUV image. If the
                                                                                                shun-iwasawa 82a8f5
                                                                                                 desired image dimensions are different than the dimensions of the JPEG
                                                                                                shun-iwasawa 82a8f5
                                                                                                 image being decompressed, then TurboJPEG will use scaling in the JPEG
                                                                                                shun-iwasawa 82a8f5
                                                                                                 decompressor to generate the largest possible image that will fit within
                                                                                                shun-iwasawa 82a8f5
                                                                                                 the desired dimensions.  Setting this to 0 is the same as setting it to
                                                                                                shun-iwasawa 82a8f5
                                                                                                 the height of the JPEG image (in other words, the height will not be
                                                                                                shun-iwasawa 82a8f5
                                                                                                 considered when determining the scaled image size.)
                                                                                                flags - the bitwise OR of one or more of
                                                                                                shun-iwasawa 82a8f5
                                                                                                 TJ.FLAG_*
                                                                                                shun-iwasawa 82a8f5
                                                                                                Returns:
                                                                                                a YUV planar image.
                                                                                                shun-iwasawa 82a8f5
                                                                                                Throws:
                                                                                                shun-iwasawa 82a8f5
                                                                                                TJException
                                                                                                shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                                shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                • shun-iwasawa 82a8f5

                                                                                                  decompressToYUV

                                                                                                  shun-iwasawa 82a8f5
                                                                                                  public YUVImage decompressToYUV(int desiredWidth,
                                                                                                  shun-iwasawa 82a8f5
                                                                                                                         int pad,
                                                                                                  shun-iwasawa 82a8f5
                                                                                                                         int desiredHeight,
                                                                                                  shun-iwasawa 82a8f5
                                                                                                                         int flags)
                                                                                                  shun-iwasawa 82a8f5
                                                                                                                           throws TJException
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  Decompress the JPEG source image associated with this decompressor
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   instance into a unified YUV planar image buffer and return a
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   YUVImage instance containing the decompressed image.  This
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   method performs JPEG decompression but leaves out the color conversion
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   step, so a planar YUV image is generated instead of an RGB or grayscale
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   image.  This method cannot be used to decompress JPEG source images with
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   the CMYK or YCCK colorspace.
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  Parameters:
                                                                                                  desiredWidth - desired width (in pixels) of the YUV image. If the
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   desired image dimensions are different than the dimensions of the JPEG
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   image being decompressed, then TurboJPEG will use scaling in the JPEG
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   decompressor to generate the largest possible image that will fit within
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   the desired dimensions.  Setting this to 0 is the same as setting it to
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   the width of the JPEG image (in other words, the width will not be
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   considered when determining the scaled image size.)
                                                                                                  pad - the width of each line in each plane of the YUV image will be
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   padded to the nearest multiple of this number of bytes (must be a power of
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   2.)
                                                                                                  desiredHeight - desired height (in pixels) of the YUV image. If the
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   desired image dimensions are different than the dimensions of the JPEG
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   image being decompressed, then TurboJPEG will use scaling in the JPEG
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   decompressor to generate the largest possible image that will fit within
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   the desired dimensions.  Setting this to 0 is the same as setting it to
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   the height of the JPEG image (in other words, the height will not be
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   considered when determining the scaled image size.)
                                                                                                  flags - the bitwise OR of one or more of
                                                                                                  shun-iwasawa 82a8f5
                                                                                                   TJ.FLAG_*
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  Returns:
                                                                                                  a YUV planar image.
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  Throws:
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  TJException
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                  shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                  • shun-iwasawa 82a8f5

                                                                                                    decompressToYUV

                                                                                                    shun-iwasawa 82a8f5
                                                                                                    @Deprecated
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    public byte[] decompressToYUV(int flags)
                                                                                                    shun-iwasawa 82a8f5
                                                                                                                           throws TJException
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    Deprecated. Use decompressToYUV(int, int, int, int) instead.
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    Throws:
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    TJException
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                    shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                    • shun-iwasawa 82a8f5

                                                                                                      decompress

                                                                                                      shun-iwasawa 82a8f5
                                                                                                      public void decompress(int[] dstBuf,
                                                                                                      shun-iwasawa 82a8f5
                                                                                                                    int x,
                                                                                                      shun-iwasawa 82a8f5
                                                                                                                    int y,
                                                                                                      shun-iwasawa 82a8f5
                                                                                                                    int desiredWidth,
                                                                                                      shun-iwasawa 82a8f5
                                                                                                                    int stride,
                                                                                                      shun-iwasawa 82a8f5
                                                                                                                    int desiredHeight,
                                                                                                      shun-iwasawa 82a8f5
                                                                                                                    int pixelFormat,
                                                                                                      shun-iwasawa 82a8f5
                                                                                                                    int flags)
                                                                                                      shun-iwasawa 82a8f5
                                                                                                                      throws TJException
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      Decompress the JPEG source image or decode the YUV source image associated
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       with this decompressor instance and output a grayscale, RGB, or CMYK image
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       to the given destination buffer.
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       

                                                                                                      shun-iwasawa 82a8f5
                                                                                                       NOTE: The output image is fully recoverable if this method throws a
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       non-fatal TJException (unless
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       TJ.FLAG_STOPONWARNING is specified.)
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      Parameters:
                                                                                                      dstBuf - buffer that will receive the decompressed/decoded image.
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       If the source image is a JPEG image, then this buffer should normally be
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       stride * scaledHeight pixels in size, where
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       scaledHeight can be determined by calling 
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       scalingFactor.getScaled(jpegHeight)
                                                                                                      shun-iwasawa 82a8f5
                                                                                                        with one of the scaling factors returned from TJ.getScalingFactors() or by calling getScaledHeight(int, int).  If the
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       source image is a YUV image, then this buffer should normally be
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       stride * height pixels in size, where height is
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       the height of the YUV image.  However, the buffer may also be larger than
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       the dimensions of the JPEG image, in which case the x,
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       y, and stride parameters can be used to specify
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       the region into which the source image should be decompressed.
                                                                                                      x - x offset (in pixels) of the region in the destination image into
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       which the source image should be decompressed/decoded
                                                                                                      y - y offset (in pixels) of the region in the destination image into
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       which the source image should be decompressed/decoded
                                                                                                      desiredWidth - If the source image is a JPEG image, then this
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       specifies the desired width (in pixels) of the decompressed image (or
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       image region.)  If the desired destination image dimensions are different
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       than the source image dimensions, then TurboJPEG will use scaling in the
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       JPEG decompressor to generate the largest possible image that will fit
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       within the desired dimensions.  Setting this to 0 is the same as setting
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       it to the width of the JPEG image (in other words, the width will not be
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       considered when determining the scaled image size.)  This parameter is
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       ignored if the source image is a YUV image.
                                                                                                      stride - pixels per line of the destination image. Normally, this
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       should be set to scaledWidth, but you can use this to, for
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       instance, decompress the JPEG image into a region of a larger image.
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       NOTE: if the source image is a JPEG image, then scaledWidth
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       can be determined by calling 
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       scalingFactor.getScaled(jpegWidth)
                                                                                                      shun-iwasawa 82a8f5
                                                                                                        or by calling getScaledWidth(int, int).  If the source image is a
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       YUV image, then scaledWidth is the width of the YUV image.
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       Setting this parameter to 0 is the equivalent of setting it to
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       scaledWidth.
                                                                                                      desiredHeight - If the source image is a JPEG image, then this
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       specifies the desired height (in pixels) of the decompressed image (or
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       image region.)  If the desired destination image dimensions are different
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       than the source image dimensions, then TurboJPEG will use scaling in the
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       JPEG decompressor to generate the largest possible image that will fit
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       within the desired dimensions.  Setting this to 0 is the same as setting
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       it to the height of the JPEG image (in other words, the height will not be
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       considered when determining the scaled image size.)  This parameter is
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       ignored if the source image is a YUV image.
                                                                                                      pixelFormat - pixel format of the decompressed image (one of
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       TJ.PF_*)
                                                                                                      flags - the bitwise OR of one or more of
                                                                                                      shun-iwasawa 82a8f5
                                                                                                       TJ.FLAG_*
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      Throws:
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      TJException
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                      shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                      • shun-iwasawa 82a8f5

                                                                                                        decompress

                                                                                                        shun-iwasawa 82a8f5
                                                                                                        public void decompress(java.awt.image.BufferedImage dstImage,
                                                                                                        shun-iwasawa 82a8f5
                                                                                                                      int flags)
                                                                                                        shun-iwasawa 82a8f5
                                                                                                                        throws TJException
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        Decompress the JPEG source image or decode the YUV source image associated
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         with this decompressor instance and output a decompressed/decoded image to
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         the given BufferedImage instance.
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         

                                                                                                        shun-iwasawa 82a8f5
                                                                                                         NOTE: The output image is fully recoverable if this method throws a
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         non-fatal TJException (unless
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         TJ.FLAG_STOPONWARNING is specified.)
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        Parameters:
                                                                                                        dstImage - a BufferedImage instance that will receive
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         the decompressed/decoded image.  If the source image is a JPEG image, then
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         the width and height of the BufferedImage instance must match
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         one of the scaled image sizes that TurboJPEG is capable of generating from
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         the JPEG image.  If the source image is a YUV image, then the width and
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         height of the BufferedImage instance must match the width and
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         height of the YUV image.
                                                                                                        flags - the bitwise OR of one or more of
                                                                                                        shun-iwasawa 82a8f5
                                                                                                         TJ.FLAG_*
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        Throws:
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        TJException
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                        shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                        • shun-iwasawa 82a8f5

                                                                                                          decompress

                                                                                                          shun-iwasawa 82a8f5
                                                                                                          public java.awt.image.BufferedImage decompress(int desiredWidth,
                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                                int desiredHeight,
                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                                int bufferedImageType,
                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                                int flags)
                                                                                                          shun-iwasawa 82a8f5
                                                                                                                                                  throws TJException
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          Decompress the JPEG source image or decode the YUV source image associated
                                                                                                          shun-iwasawa 82a8f5
                                                                                                           with this decompressor instance and return a BufferedImage
                                                                                                          shun-iwasawa 82a8f5
                                                                                                           instance containing the decompressed/decoded image.
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          Parameters:
                                                                                                          desiredWidth - see
                                                                                                          shun-iwasawa 82a8f5
                                                                                                           decompress(byte[], int, int, int, int, int, int, int) for
                                                                                                          shun-iwasawa 82a8f5
                                                                                                           description
                                                                                                          desiredHeight - see
                                                                                                          shun-iwasawa 82a8f5
                                                                                                           decompress(byte[], int, int, int, int, int, int, int) for
                                                                                                          shun-iwasawa 82a8f5
                                                                                                           description
                                                                                                          bufferedImageType - the image type of the BufferedImage
                                                                                                          shun-iwasawa 82a8f5
                                                                                                           instance that will be created (for instance,
                                                                                                          shun-iwasawa 82a8f5
                                                                                                           BufferedImage.TYPE_INT_RGB)
                                                                                                          flags - the bitwise OR of one or more of
                                                                                                          shun-iwasawa 82a8f5
                                                                                                           TJ.FLAG_*
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          Returns:
                                                                                                          a BufferedImage instance containing the
                                                                                                          shun-iwasawa 82a8f5
                                                                                                           decompressed/decoded image.
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          Throws:
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          TJException
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                          shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                          • shun-iwasawa 82a8f5

                                                                                                            close

                                                                                                            shun-iwasawa 82a8f5
                                                                                                            public void close()
                                                                                                            shun-iwasawa 82a8f5
                                                                                                                       throws TJException
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            Free the native structures associated with this decompressor instance.
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            Specified by:
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            close in interface java.io.Closeable
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            Specified by:
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            close in interface java.lang.AutoCloseable
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            Throws:
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            TJException
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                            shun-iwasawa 82a8f5
                                                                                                              shun-iwasawa 82a8f5
                                                                                                            • shun-iwasawa 82a8f5

                                                                                                              finalize

                                                                                                              shun-iwasawa 82a8f5
                                                                                                              protected void finalize()
                                                                                                              shun-iwasawa 82a8f5
                                                                                                                               throws java.lang.Throwable
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              Overrides:
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              finalize in class java.lang.Object
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              Throws:
                                                                                                              shun-iwasawa 82a8f5
                                                                                                              java.lang.Throwable
                                                                                                              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