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

AC3SpecificBox

public class AC3SpecificBox extends com.googlecode.mp4parser.AbstractBox

Fields Summary
int
fscod
int
bsid
int
bsmod
int
acmod
int
lfeon
int
bitRateCode
int
reserved
Constructors Summary
public AC3SpecificBox()

        super("dac3");
    
Methods Summary
public void_parseDetails(java.nio.ByteBuffer content)

        BitReaderBuffer brb = new BitReaderBuffer(content);
        fscod = brb.readBits(2);
        bsid = brb.readBits(5);
        bsmod = brb.readBits(3);
        acmod = brb.readBits(3);
        lfeon = brb.readBits(1);
        bitRateCode = brb.readBits(5);
        reserved = brb.readBits(5);
    
public intgetAcmod()

        return acmod;
    
public intgetBitRateCode()

        return bitRateCode;
    
public intgetBsid()

        return bsid;
    
public intgetBsmod()

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

        BitWriterBuffer bwb = new BitWriterBuffer(byteBuffer);
        bwb.writeBits(fscod, 2);
        bwb.writeBits(bsid, 5);
        bwb.writeBits(bsmod, 3);
        bwb.writeBits(acmod, 3);
        bwb.writeBits(lfeon, 1);
        bwb.writeBits(bitRateCode, 5);
        bwb.writeBits(reserved, 5);
    
protected longgetContentSize()

        return 3;
    
public intgetFscod()

        return fscod;
    
public intgetLfeon()

        return lfeon;
    
public intgetReserved()

        return reserved;
    
public voidsetAcmod(int acmod)

        this.acmod = acmod;
    
public voidsetBitRateCode(int bitRateCode)

        this.bitRateCode = bitRateCode;
    
public voidsetBsid(int bsid)

        this.bsid = bsid;
    
public voidsetBsmod(int bsmod)

        this.bsmod = bsmod;
    
public voidsetFscod(int fscod)

        this.fscod = fscod;
    
public voidsetLfeon(int lfeon)

        this.lfeon = lfeon;
    
public voidsetReserved(int reserved)

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

        return "AC3SpecificBox{" +
                "fscod=" + fscod +
                ", bsid=" + bsid +
                ", bsmod=" + bsmod +
                ", acmod=" + acmod +
                ", lfeon=" + lfeon +
                ", bitRateCode=" + bitRateCode +
                ", reserved=" + reserved +
                '}";