FileDocCategorySizeDatePackage
BaseMediaInfoAtom.javaAPI Docmp4parser 1.0-RC-172695Wed Dec 19 20:10:37 GMT 2012com.googlecode.mp4parser.boxes.apple

BaseMediaInfoAtom

public class BaseMediaInfoAtom extends com.googlecode.mp4parser.AbstractFullBox

Fields Summary
public static final String
TYPE
short
graphicsMode
int
opColorR
int
opColorG
int
opColorB
short
balance
short
reserved
Constructors Summary
public BaseMediaInfoAtom()


      
        super(TYPE);
    
Methods Summary
protected void_parseDetails(java.nio.ByteBuffer content)

        parseVersionAndFlags(content);
        graphicsMode = content.getShort();
        opColorR = IsoTypeReader.readUInt16(content);
        opColorG = IsoTypeReader.readUInt16(content);
        opColorB = IsoTypeReader.readUInt16(content);
        balance = content.getShort();
        reserved = content.getShort();

    
public shortgetBalance()

        return balance;
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        writeVersionAndFlags(byteBuffer);
        byteBuffer.putShort(graphicsMode);
        IsoTypeWriter.writeUInt16(byteBuffer, opColorR);
        IsoTypeWriter.writeUInt16(byteBuffer,opColorG );
        IsoTypeWriter.writeUInt16(byteBuffer,opColorB );
        byteBuffer.putShort(balance);
        byteBuffer.putShort(reserved);
    
protected longgetContentSize()

        return 16;
    
public shortgetGraphicsMode()

        return graphicsMode;
    
public intgetOpColorB()

        return opColorB;
    
public intgetOpColorG()

        return opColorG;
    
public intgetOpColorR()

        return opColorR;
    
public shortgetReserved()

        return reserved;
    
public voidsetBalance(short balance)

        this.balance = balance;
    
public voidsetGraphicsMode(short graphicsMode)

        this.graphicsMode = graphicsMode;
    
public voidsetOpColorB(int opColorB)

        this.opColorB = opColorB;
    
public voidsetOpColorG(int opColorG)

        this.opColorG = opColorG;
    
public voidsetOpColorR(int opColorR)

        this.opColorR = opColorR;
    
public voidsetReserved(short reserved)

        this.reserved = reserved;
    
public java.lang.StringtoString()

        return "BaseMediaInfoAtom{" +
                "graphicsMode=" + graphicsMode +
                ", opColorR=" + opColorR +
                ", opColorG=" + opColorG +
                ", opColorB=" + opColorB +
                ", balance=" + balance +
                ", reserved=" + reserved +
                '}";