org.jcodec.codecs.common.biari.Context 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.codecs.common.biari;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* Context model for table-based binary arithmetic encoders/decoders
*
* Stores probability state table index and current MPS symbol value
*
* @author The JCodec project
*
*/
public class Context {
private int stateIdx;
private int mps;
public Context(int state, int mps) {
this.stateIdx = state;
this.mps = mps;
}
public int getState() {
return stateIdx;
}
public int getMps() {
return mps;
}
public void setMps(int mps) {
this.mps = mps;
}
public void setState(int state) {
this.stateIdx = state;
}
}