All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jcodec.codecs.common.biari.Context Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy