public class MPEGDecoder extends VideoDecoder
Modifier and Type | Class and Description |
---|---|
static class |
MPEGDecoder.Context |
Modifier and Type | Field and Description |
---|---|
protected GOPHeader |
gh |
protected SequenceHeader |
sh |
Constructor and Description |
---|
MPEGDecoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
blockInter(BitReader bits,
VLC vlcCoeff,
int[] block,
int[] scan,
int escSize,
int qScale,
int[] qmat) |
protected void |
blockIntra(BitReader bits,
VLC vlcCoeff,
int[] block,
int[] intra_dc_predictor,
int blkIdx,
int[] scan,
int escSize,
int intra_dc_mult,
int qScale,
int[] qmat) |
protected static int |
clip(int val) |
protected static byte |
clipTo8Bit(int val) |
Picture |
decodeFrame(ByteBuffer buffer,
byte[][] buf)
Decodes a video frame to an uncompressed picture in codec native
colorspace
|
int |
decodeMacroblock(PictureHeader ph,
MPEGDecoder.Context context,
int prevAddr,
int[] qScaleCode,
byte[][] buf,
int stride,
BitReader bits,
int vertOff,
int vertStep,
MPEGPred pred) |
Picture |
decodePicture(MPEGDecoder.Context context,
PictureHeader ph,
ByteBuffer buffer,
byte[][] buf,
int vertOff,
int vertStep) |
void |
decodeSlice(PictureHeader ph,
int verticalPos,
MPEGDecoder.Context context,
byte[][] buf,
BitReader _in,
int vertOff,
int vertStep) |
VideoCodecMeta |
getCodecMeta(ByteBuffer data) |
static int |
getCodedHeight(SequenceHeader sh,
PictureHeader ph) |
static PictureHeader |
getPictureHeader(ByteBuffer data) |
static int |
getSequenceNumber(ByteBuffer data) |
protected MPEGDecoder.Context |
initContext(SequenceHeader sh,
PictureHeader ph) |
protected void |
mapBlock(int[] block,
int[] out,
int blkIdx,
int dctType,
int chromaFormat) |
static int |
mpegSigned(BitReader bits,
int size) |
static int |
probe(ByteBuffer data) |
protected void |
put(int[][] mbPix,
byte[][] buf,
int stride,
int chromaFormat,
int mbX,
int mbY,
int width,
int height,
int vertOff,
int vertStep) |
protected void |
putSub(byte[] big,
int off,
int stride,
int[] block,
int mbW,
int mbH) |
protected static int |
quantInter(int level,
int quant) |
protected static int |
quantInterSigned(int level,
int quant) |
static int |
toSigned(int val,
int s) |
static int |
twosSigned(BitReader bits,
int size) |
downscaled, getSameSizeBuffer
protected SequenceHeader sh
protected GOPHeader gh
public Picture decodeFrame(ByteBuffer buffer, byte[][] buf)
VideoDecoder
decodeFrame
in class VideoDecoder
buffer
- Compressed frame dataprotected MPEGDecoder.Context initContext(SequenceHeader sh, PictureHeader ph)
public static int getCodedHeight(SequenceHeader sh, PictureHeader ph)
public Picture decodePicture(MPEGDecoder.Context context, PictureHeader ph, ByteBuffer buffer, byte[][] buf, int vertOff, int vertStep)
public void decodeSlice(PictureHeader ph, int verticalPos, MPEGDecoder.Context context, byte[][] buf, BitReader _in, int vertOff, int vertStep) throws IOException
IOException
public int decodeMacroblock(PictureHeader ph, MPEGDecoder.Context context, int prevAddr, int[] qScaleCode, byte[][] buf, int stride, BitReader bits, int vertOff, int vertStep, MPEGPred pred)
protected void mapBlock(int[] block, int[] out, int blkIdx, int dctType, int chromaFormat)
protected void put(int[][] mbPix, byte[][] buf, int stride, int chromaFormat, int mbX, int mbY, int width, int height, int vertOff, int vertStep)
protected void putSub(byte[] big, int off, int stride, int[] block, int mbW, int mbH)
protected static final byte clipTo8Bit(int val)
protected static final int clip(int val)
protected static final int quantInter(int level, int quant)
protected static final int quantInterSigned(int level, int quant)
protected void blockIntra(BitReader bits, VLC vlcCoeff, int[] block, int[] intra_dc_predictor, int blkIdx, int[] scan, int escSize, int intra_dc_mult, int qScale, int[] qmat)
protected void blockInter(BitReader bits, VLC vlcCoeff, int[] block, int[] scan, int escSize, int qScale, int[] qmat)
public static final int twosSigned(BitReader bits, int size)
public static final int mpegSigned(BitReader bits, int size)
public static final int toSigned(int val, int s)
public static int probe(ByteBuffer data)
public static int getSequenceNumber(ByteBuffer data)
public static PictureHeader getPictureHeader(ByteBuffer data)
public VideoCodecMeta getCodecMeta(ByteBuffer data)
getCodecMeta
in class VideoDecoder
Copyright © 2019. All rights reserved.