All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jcodec.common.VideoDecoder Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
package org.jcodec.common;

import java.io.IOException;
import java.nio.ByteBuffer;

import org.jcodec.common.model.Picture;

/**
 * This class is part of JCodec ( www.jcodec.org ) This software is distributed
 * under FreeBSD License
 * 
 * @author The JCodec project
 * 
 */
public interface VideoDecoder {
    /**
     * Decodes a video frame to an uncompressed picture in codec native
     * colorspace
     * 
     * @param data
     *            Compressed frame data
     * @throws IOException
     */
    Picture decodeFrame(ByteBuffer data, int[][] buffer);

    /**
     * Tests if compressed frame can be decoded with this decoder
     * 
     * @param data
     *            Compressed frame data
     * @return
     */
    int probe(ByteBuffer data);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy