org.jcodec.codecs.h264.io.model
Class Frame

java.lang.Object
  extended by org.jcodec.common.model.Picture
      extended by org.jcodec.codecs.h264.io.model.Frame

public class Frame
extends Picture

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Picture extension with frame number, makes it easier to debug reordering

Author:
The JCodec project

Field Summary
static Comparator<Frame> POCAsc
           
static Comparator<Frame> POCDesc
           
 
Constructor Summary
Frame(int width, int height, int[][] data, ColorSpace color, Rect crop, int frameNo, int[][][][] mvs, Frame[][][] refsUsed, int poc)
           
 
Method Summary
 void copyFrom(Frame src)
           
static Frame createFrame(Frame pic)
           
 Frame cropped()
           
 int getFrameNo()
           
 int[][][][] getMvs()
           
 int getPOC()
           
 Frame[][][] getRefsUsed()
           
 boolean isShortTerm()
           
 void setShortTerm(boolean shortTerm)
           
 
Methods inherited from class org.jcodec.common.model.Picture
compatible, copyFrom, create, create, createCompatible, getColor, getCrop, getCroppedHeight, getCroppedWidth, getData, getHeight, getPlaneData, getPlaneHeight, getPlaneWidth, getWidth, setCrop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POCAsc

public static Comparator<Frame> POCAsc

POCDesc

public static Comparator<Frame> POCDesc
Constructor Detail

Frame

public Frame(int width,
             int height,
             int[][] data,
             ColorSpace color,
             Rect crop,
             int frameNo,
             int[][][][] mvs,
             Frame[][][] refsUsed,
             int poc)
Method Detail

createFrame

public static Frame createFrame(Frame pic)

cropped

public Frame cropped()
Overrides:
cropped in class Picture

copyFrom

public void copyFrom(Frame src)

getFrameNo

public int getFrameNo()

getMvs

public int[][][][] getMvs()

isShortTerm

public boolean isShortTerm()

setShortTerm

public void setShortTerm(boolean shortTerm)

getPOC

public int getPOC()

getRefsUsed

public Frame[][][] getRefsUsed()


Copyright © 2013. All Rights Reserved.