package org.jcodec.codecs.h264.io.model; import org.jcodec.common.tools.ToJSON; /** * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * A script of instructions applied to reference picture list * * @author The JCodec project * */ public class RefPicMarking { public static enum InstrType { REMOVE_SHORT, REMOVE_LONG, CONVERT_INTO_LONG, TRUNK_LONG, CLEAR, MARK_LONG }; public static class Instruction { private InstrType type; private int arg1; private int arg2; public Instruction(InstrType type, int arg1, int arg2) { this.type = type; this.arg1 = arg1; this.arg2 = arg2; } public InstrType getType() { return type; } public int getArg1() { return arg1; } public int getArg2() { return arg2; } } private Instruction[] instructions; public RefPicMarking(Instruction[] instructions) { this.instructions = instructions; } public Instruction[] getInstructions() { return instructions; } @Override public String toString() { return ToJSON.toJSON(this); } }