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

DTSSpecificBox

public class DTSSpecificBox extends com.googlecode.mp4parser.AbstractBox
Created by IntelliJ IDEA. User: magnus Date: 2012-03-09 Time: 16:11 To change this template use File | Settings | File Templates.

Fields Summary
long
DTSSamplingFrequency
long
maxBitRate
long
avgBitRate
int
pcmSampleDepth
int
frameDuration
int
streamConstruction
int
coreLFEPresent
int
coreLayout
int
coreSize
int
stereoDownmix
int
representationType
int
channelLayout
int
multiAssetFlag
int
LBRDurationMod
int
reservedBoxPresent
int
reserved
Constructors Summary
public DTSSpecificBox()

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

        DTSSamplingFrequency = IsoTypeReader.readUInt32(content);
        maxBitRate = IsoTypeReader.readUInt32(content);
        avgBitRate = IsoTypeReader.readUInt32(content);
        pcmSampleDepth = IsoTypeReader.readUInt8(content);
        BitReaderBuffer brb = new BitReaderBuffer(content);
        frameDuration = brb.readBits(2);
        streamConstruction = brb.readBits(5);
        coreLFEPresent = brb.readBits(1);
        coreLayout = brb.readBits(6);
        coreSize = brb.readBits(14);
        stereoDownmix = brb.readBits(1);
        representationType = brb.readBits(3);
        channelLayout = brb.readBits(16);
        multiAssetFlag = brb.readBits(1);
        LBRDurationMod = brb.readBits(1);
        reservedBoxPresent = brb.readBits(1);
        reserved = brb.readBits(5);

    
public longgetAvgBitRate()

        return avgBitRate;
    
public intgetChannelLayout()

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

        IsoTypeWriter.writeUInt32(byteBuffer, DTSSamplingFrequency);
        IsoTypeWriter.writeUInt32(byteBuffer, maxBitRate);
        IsoTypeWriter.writeUInt32(byteBuffer, avgBitRate);
        IsoTypeWriter.writeUInt8(byteBuffer, pcmSampleDepth);
        BitWriterBuffer bwb = new BitWriterBuffer(byteBuffer);
        bwb.writeBits(frameDuration, 2);
        bwb.writeBits(streamConstruction, 5);
        bwb.writeBits(coreLFEPresent, 1);
        bwb.writeBits(coreLayout, 6);
        bwb.writeBits(coreSize, 14);
        bwb.writeBits(stereoDownmix, 1);
        bwb.writeBits(representationType, 3);
        bwb.writeBits(channelLayout, 16);
        bwb.writeBits(multiAssetFlag, 1);
        bwb.writeBits(LBRDurationMod, 1);
        bwb.writeBits(reservedBoxPresent, 1);
        bwb.writeBits(reserved, 5);

    
protected longgetContentSize()

        return 20;
    
public intgetCoreLFEPresent()

        return coreLFEPresent;
    
public intgetCoreLayout()

        return coreLayout;
    
public intgetCoreSize()

        return coreSize;
    
public longgetDTSSamplingFrequency()

        return DTSSamplingFrequency;
    
public intgetFrameDuration()

        return frameDuration;
    
public intgetLBRDurationMod()

        return LBRDurationMod;
    
public longgetMaxBitRate()

        return maxBitRate;
    
public intgetMultiAssetFlag()

        return multiAssetFlag;
    
public intgetPcmSampleDepth()

        return pcmSampleDepth;
    
public intgetRepresentationType()

        return representationType;
    
public intgetReserved()

        return reserved;
    
public intgetReservedBoxPresent()

        return reservedBoxPresent;
    
public intgetStereoDownmix()

        return stereoDownmix;
    
public intgetStreamConstruction()

        return streamConstruction;
    
public voidsetAvgBitRate(long avgBitRate)

        this.avgBitRate = avgBitRate;
    
public voidsetChannelLayout(int channelLayout)

        this.channelLayout = channelLayout;
    
public voidsetCoreLFEPresent(int coreLFEPresent)

        this.coreLFEPresent = coreLFEPresent;
    
public voidsetCoreLayout(int coreLayout)

        this.coreLayout = coreLayout;
    
public voidsetCoreSize(int coreSize)

        this.coreSize = coreSize;
    
public voidsetDTSSamplingFrequency(long DTSSamplingFrequency)

        this.DTSSamplingFrequency = DTSSamplingFrequency;
    
public voidsetFrameDuration(int frameDuration)

        this.frameDuration = frameDuration;
    
public voidsetLBRDurationMod(int LBRDurationMod)

        this.LBRDurationMod = LBRDurationMod;
    
public voidsetMaxBitRate(long maxBitRate)

        this.maxBitRate = maxBitRate;
    
public voidsetMultiAssetFlag(int multiAssetFlag)

        this.multiAssetFlag = multiAssetFlag;
    
public voidsetPcmSampleDepth(int pcmSampleDepth)

        this.pcmSampleDepth = pcmSampleDepth;
    
public voidsetRepresentationType(int representationType)

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

        this.reserved = reserved;
    
public voidsetReservedBoxPresent(int reservedBoxPresent)

        this.reservedBoxPresent = reservedBoxPresent;
    
public voidsetStereoDownmix(int stereoDownmix)

        this.stereoDownmix = stereoDownmix;
    
public voidsetStreamConstruction(int streamConstruction)

        this.streamConstruction = streamConstruction;