org.jcodec.codecs.h264.encode
Class ConstantRateControl

java.lang.Object
  extended by org.jcodec.codecs.h264.encode.ConstantRateControl
All Implemented Interfaces:
RateControl

public class ConstantRateControl
extends Object
implements RateControl

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License H.264 rate control policy that would produce frames of exactly equal size

Author:
The JCodec project

Constructor Summary
ConstantRateControl(int bitsPer256)
           
 
Method Summary
 boolean accept(int bits)
           
 int calcFrameSize(int nMB)
           
 int getInitQp()
           
 int getQpDelta()
           
 void reset()
           
 void setRate(int rate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantRateControl

public ConstantRateControl(int bitsPer256)
Method Detail

getInitQp

public int getInitQp()
Specified by:
getInitQp in interface RateControl

getQpDelta

public int getQpDelta()
Specified by:
getQpDelta in interface RateControl

accept

public boolean accept(int bits)
Specified by:
accept in interface RateControl

reset

public void reset()
Specified by:
reset in interface RateControl

calcFrameSize

public int calcFrameSize(int nMB)

setRate

public void setRate(int rate)


Copyright © 2013. All Rights Reserved.