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

de.jarnbjo.theora.CodingMode Maven / Gradle / Ivy

/*
 * $ProjectName$
 * $ProjectRevision$
 * -----------------------------------------------------------
 * $Id: CodingMode.java,v 1.1 2003/03/03 22:09:02 jarnbjo Exp $
 * -----------------------------------------------------------
 *
 * $Author: jarnbjo $
 *
 * Description:
 *
 * Copyright 2002-2003 Tor-Einar Jarnbjo
 * -----------------------------------------------------------
 *
 * Change History
 * -----------------------------------------------------------
 * $Log: CodingMode.java,v $
 * Revision 1.1  2003/03/03 22:09:02  jarnbjo
 * no message
 */
package de.jarnbjo.theora;

public final class CodingMode {
    public static final CodingMode CODE_INTER_NO_MV
            = new CodingMode(0x0);
    /* INTER prediction, (0,0) motion vector implied.  */

    public static final CodingMode CODE_INTRA
            = new CodingMode(0x1);
    /* INTRA i.e. no prediction. */

    public static final CodingMode CODE_INTER_PLUS_MV
            = new CodingMode(0x2);
    /* INTER prediction, non-zero motion vector. */

    public static final CodingMode CODE_INTER_LAST_MV
            = new CodingMode(0x3);
    /* Use Last Motion vector */

    public static final CodingMode CODE_INTER_PRIOR_LAST
            = new CodingMode(0x4);
    /* Prior last motion vector */

    public static final CodingMode CODE_USING_GOLDEN
            = new CodingMode(0x5);
    /* 'Golden frame' prediction (no MV). */

    public static final CodingMode CODE_GOLDEN_MV
            = new CodingMode(0x6);
    /* 'Golden frame' prediction plus MV. */

    public static final CodingMode CODE_INTER_FOURMV
            = new CodingMode(0x7);
    /* Inter prediction 4MV per macro block. */

    final private int value;

    public static final CodingMode[] MODES = {
        CODE_INTER_NO_MV,
        CODE_INTRA,
        CODE_INTER_PLUS_MV,
        CODE_INTER_LAST_MV,
        CODE_INTER_PRIOR_LAST,
        CODE_USING_GOLDEN,
        CODE_GOLDEN_MV,
        CODE_INTER_FOURMV
    };

    private CodingMode(int i) {
        value = i;
    }

    public int getValue() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy