FileDocCategorySizeDatePackage
AppleLosslessSpecificBox.javaAPI Docmp4parser 1.0-RC-174638Wed Dec 19 20:10:37 GMT 2012com.coremedia.iso.boxes.apple

AppleLosslessSpecificBox

public final class AppleLosslessSpecificBox extends com.googlecode.mp4parser.AbstractFullBox

Fields Summary
public static final String
TYPE
private long
maxSamplePerFrame
private int
unknown1
private int
sampleSize
private int
historyMult
private int
initialHistory
private int
kModifier
private int
channels
private int
unknown2
private long
maxCodedFrameSize
private long
bitRate
private long
sampleRate
Constructors Summary
public AppleLosslessSpecificBox()

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

        parseVersionAndFlags(content);
        maxSamplePerFrame = IsoTypeReader.readUInt32(content);
        unknown1 = IsoTypeReader.readUInt8(content);
        sampleSize = IsoTypeReader.readUInt8(content);
        historyMult = IsoTypeReader.readUInt8(content);
        initialHistory = IsoTypeReader.readUInt8(content);
        kModifier = IsoTypeReader.readUInt8(content);
        channels = IsoTypeReader.readUInt8(content);
        unknown2 = IsoTypeReader.readUInt16(content);
        maxCodedFrameSize = IsoTypeReader.readUInt32(content);
        bitRate = IsoTypeReader.readUInt32(content);
        sampleRate = IsoTypeReader.readUInt32(content);
    
public longgetBitRate()

        return bitRate;
    
public intgetChannels()

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

        writeVersionAndFlags(byteBuffer);
        IsoTypeWriter.writeUInt32(byteBuffer, maxSamplePerFrame);
        IsoTypeWriter.writeUInt8(byteBuffer, unknown1);
        IsoTypeWriter.writeUInt8(byteBuffer, sampleSize);
        IsoTypeWriter.writeUInt8(byteBuffer, historyMult);
        IsoTypeWriter.writeUInt8(byteBuffer, initialHistory);
        IsoTypeWriter.writeUInt8(byteBuffer, kModifier);
        IsoTypeWriter.writeUInt8(byteBuffer, channels);
        IsoTypeWriter.writeUInt16(byteBuffer, unknown2);
        IsoTypeWriter.writeUInt32(byteBuffer, maxCodedFrameSize);
        IsoTypeWriter.writeUInt32(byteBuffer, bitRate);
        IsoTypeWriter.writeUInt32(byteBuffer, sampleRate);
    
protected longgetContentSize()

        return 28;
    
public intgetHistoryMult()

        return historyMult;
    
public intgetInitialHistory()

        return initialHistory;
    
public intgetKModifier()

        return kModifier;
    
public longgetMaxCodedFrameSize()

        return maxCodedFrameSize;
    
public longgetMaxSamplePerFrame()

 // 32bit

       
        return maxSamplePerFrame;
    
public longgetSampleRate()

        return sampleRate;
    
public intgetSampleSize()

        return sampleSize;
    
public intgetUnknown1()

        return unknown1;
    
public intgetUnknown2()

        return unknown2;
    
public voidsetBitRate(int bitRate)

        this.bitRate = bitRate;
    
public voidsetChannels(int channels)

        this.channels = channels;
    
public voidsetHistoryMult(int historyMult)

        this.historyMult = historyMult;
    
public voidsetInitialHistory(int initialHistory)

        this.initialHistory = initialHistory;
    
public voidsetKModifier(int kModifier)

        this.kModifier = kModifier;
    
public voidsetMaxCodedFrameSize(int maxCodedFrameSize)

        this.maxCodedFrameSize = maxCodedFrameSize;
    
public voidsetMaxSamplePerFrame(int maxSamplePerFrame)

        this.maxSamplePerFrame = maxSamplePerFrame;
    
public voidsetSampleRate(int sampleRate)

        this.sampleRate = sampleRate;
    
public voidsetSampleSize(int sampleSize)

        this.sampleSize = sampleSize;
    
public voidsetUnknown1(int unknown1)

        this.unknown1 = unknown1;
    
public voidsetUnknown2(int unknown2)

        this.unknown2 = unknown2;