Package org.apache.commons.imaging.formats.jpeg.segments

Examples of org.apache.commons.imaging.formats.jpeg.segments.SosSegment


        final ByteArrayInputStream is = new ByteArrayInputStream(imageData);
        try {
            final int segmentLength = read2Bytes("segmentLength", is, "Not a Valid JPEG File", getByteOrder());
            final byte[] sosSegmentBytes = readBytes("SosSegment",
                    is, segmentLength - 2, "Not a Valid JPEG File");
            sosSegment = new SosSegment(marker, sosSegmentBytes);

            int hMax = 0;
            int vMax = 0;
            for (int i = 0; i < sofnSegment.numberOfComponents; i++) {
                hMax = Math.max(hMax,
View Full Code Here

TOP

Related Classes of org.apache.commons.imaging.formats.jpeg.segments.SosSegment

Copyright © 2018 www.massapicom. 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.