Examples of packetout()


Examples of com.jcraft.jogg.StreamState.packetout()

              break;
            }

            test.init(og.serialno());
            test.pagein(og);
            test.packetout(op);
           
            /* identify the codec: try theora */
            if (ENABLE_VIDEO && theora_p == 0 && ti.decodeHeader(tc, op) >= 0)
            {
              /* it is theora */
 
View Full Code Here

Examples of com.jcraft.jogg.StreamState.packetout()

                // error; stream version mismatch perhaps
                System.err.println("Error reading first page of Ogg bitstream data.");
                System.exit(1);
            }

            if (os.packetout(op) != 1) {
                // no page? must not be vorbis
                System.err.println("Error reading initial header packet.");
                System.exit(1);
            }
View Full Code Here

Examples of com.jcraft.jogg.StreamState.packetout()

                    if (result == 1) {
                        os.pagein(og); // we can ignore any errors here
                        // as they'll also become apparent
                        // at packetout
                        while (i < 2) {
                            result = os.packetout(op);
                            if (result == 0)
                                break;
                            if (result == -1) {
                                // Uh oh; data at some point was corrupted or missing!
                                // We can't tolerate that in a header.  Die.
View Full Code Here

Examples of com.jcraft.jogg.StreamState.packetout()

                                .println("Corrupt or missing data in bitstream; continuing...");
                    } else {
                        os.pagein(og); // can safely ignore errors at
                        // this point
                        while (true) {
                            result = os.packetout(op);

                            if (result == 0)
                                break; // need more data
                            if (result == -1) { // missing or corrupt data at this page position
                                // no reason to complain; already complained above
View Full Code Here

Examples of org.vorbis.jcraft.jogg.StreamState.packetout()

                // error; stream version mismatch perhaps
                LOG.log(Level.SEVERE, "Error reading first page of Ogg bitstream data.");
                return;
            }

            if (os.packetout(op) != 1) {
                // no page? must not be vorbis
                LOG.log(Level.SEVERE, "Error reading initial header packet.");
                return;
            }
View Full Code Here

Examples of org.vorbis.jcraft.jogg.StreamState.packetout()

                    if (result == 1) {
                        os.pagein(og); // we can ignore any errors here
                        // as they'll also become apparent
                        // at packetout
                        while (i < 2) {
                            result = os.packetout(op);
                            if (result == 0) {
                                break;
                            }
                            if (result == -1) {
                                // Uh oh; data at some point was corrupted or missing!
View Full Code Here

Examples of org.vorbis.jcraft.jogg.StreamState.packetout()

                        LOG.log(Level.INFO, "Corrupt or missing data in bitstream; continuing...");
                    } else {
                        os.pagein(og); // can safely ignore errors at
                        // this point
                        while (true) {
                            result = os.packetout(op);

                            if (result == 0) {
                                break; // need more data
                            }
                            if (result == -1) { // missing or corrupt data at this page position
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.