Examples of SOSSegment


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

Examples of org.apache.sanselan.formats.jpeg.segments.SOSSegment

        {
            int segmentLength = read2Bytes("segmentLength", is,
                    "Not a Valid JPEG File");
            byte[] sosSegmentBytes = readByteArray("SOSSegment",
                    segmentLength - 2, is, "Not a Valid JPEG File");
            sosSegment = new SOSSegment(marker, sosSegmentBytes);

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

Examples of org.apache.sanselan.formats.jpeg.segments.SOSSegment

        {
            int segmentLength = read2Bytes("segmentLength", is,
                    "Not a Valid JPEG File");
            byte[] sosSegmentBytes = readByteArray("SOSSegment",
                    segmentLength - 2, is, "Not a Valid JPEG File");
            sosSegment = new SOSSegment(marker, sosSegmentBytes);

            int hMax = 0;
            int vMax = 0;
            for (int i = 0; i < sofnSegment.numberOfComponents; i++)
            {
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.