Examples of ImageDataElement


Examples of org.apache.commons.imaging.formats.tiff.TiffDirectory.ImageDataElement

        }
    }

    private JpegImageData getJpegRawImageData(final ByteSource byteSource,
            final TiffDirectory directory) throws ImageReadException, IOException {
        final ImageDataElement element = directory.getJpegRawImageDataElement();
        final long offset = element.offset;
        int length = element.length;
        // In case the length is not correct, adjust it and check if the last read byte actually is the end of the image
        if (offset + length > byteSource.getLength()) {
            length = (int) (byteSource.getLength() - offset);
View Full Code Here

Examples of org.apache.sanselan.formats.tiff.TiffDirectory.ImageDataElement

    }
  }

  private JpegImageData getJpegRawImageData(ByteSource byteSource,
      TiffDirectory directory) throws ImageReadException, IOException {
    ImageDataElement element = directory.getJpegRawImageDataElement();
    int offset = element.offset;
    int length = element.length;
    // Sony DCR-PC110 has an off-by-one error.
    if (offset + length == byteSource.getLength() + 1)
      length--;
View Full Code Here

Examples of org.apache.sanselan.formats.tiff.TiffDirectory.ImageDataElement

  }

  private JpegImageData getJpegRawImageData(ByteSource byteSource,
      TiffDirectory directory) throws ImageReadException, IOException
  {
    ImageDataElement element = directory.getJpegRawImageDataElement();
    int offset = element.offset;
    int length = element.length;
    // Sony DCR-PC110 has an off-by-one error.
    if (offset + length == byteSource.getLength() + 1)
      length--;
View Full Code Here

Examples of org.apache.sanselan.formats.tiff.TiffDirectory.ImageDataElement

    }

    private JpegImageData getJpegRawImageData(ByteSource byteSource,
            TiffDirectory directory) throws ImageReadException, IOException
    {
        ImageDataElement element = directory.getJpegRawImageDataElement();
        int offset = element.offset;
        int length = element.length;
        // Sony DCR-PC110 has an off-by-one error.
        if (offset + length == byteSource.getLength() + 1)
            length--;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.