org.jcodec.common.VideoDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcodec Show documentation
Show all versions of jcodec Show documentation
Pure Java implementation of video/audio codecs and formats
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);
}