org.jcodec.containers.mp4.boxes
Class AudioSampleEntry

java.lang.Object
  extended by org.jcodec.containers.mp4.boxes.Box
      extended by org.jcodec.containers.mp4.boxes.NodeBox
          extended by org.jcodec.containers.mp4.boxes.SampleEntry
              extended by org.jcodec.containers.mp4.boxes.AudioSampleEntry

public class AudioSampleEntry
extends SampleEntry

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Describes audio payload sample

Author:
The JCodec project

Nested Class Summary
static class AudioSampleEntry.MyFactory
           
 
Field Summary
static int kAudioFormatFlagIsAlignedHigh
           
static int kAudioFormatFlagIsBigEndian
           
static int kAudioFormatFlagIsFloat
           
static int kAudioFormatFlagIsNonInterleaved
           
static int kAudioFormatFlagIsNonMixable
           
static int kAudioFormatFlagIsPacked
           
static int kAudioFormatFlagIsSignedInteger
           
static Set<String> pcms
           
 
Fields inherited from class org.jcodec.containers.mp4.boxes.NodeBox
boxes, factory
 
Fields inherited from class org.jcodec.containers.mp4.boxes.Box
header
 
Constructor Summary
AudioSampleEntry(Header atom)
           
AudioSampleEntry(Header header, short drefInd, short channelCount, short sampleSize, int sampleRate, short revision, int vendor, int compressionId, int pktSize, int samplesPerPkt, int bytesPerPkt, int bytesPerFrame, int bytesPerSample, short version)
           
 
Method Summary
 int calcFrameSize()
           
 int calcSampleSize()
           
protected  void doWrite(ByteBuffer out)
           
 void dump(StringBuilder sb)
           
 int getBytesPerFrame()
           
 int getBytesPerSample()
           
 short getChannelCount()
           
 EndianBox.Endian getEndian()
           
 AudioFormat getFormat()
           
 ChannelLabel[] getLabels()
           
 float getSampleRate()
           
 short getSampleSize()
           
 short getVersion()
           
 boolean isFloat()
           
 boolean isPCM()
           
 void parse(ByteBuffer input)
           
 
Methods inherited from class org.jcodec.containers.mp4.boxes.SampleEntry
getDrefInd, parseExtensions, setDrefInd, setMediaType, writeExtensions
 
Methods inherited from class org.jcodec.containers.mp4.boxes.NodeBox
add, addFirst, dumpBoxes, getBoxes, newBox, parseBox, parseChildBox, removeChildren, replace
 
Methods inherited from class org.jcodec.containers.mp4.boxes.Box
as, findAll, findAll, findFirst, findFirst, getFourcc, getHeader, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kAudioFormatFlagIsFloat

public static int kAudioFormatFlagIsFloat

kAudioFormatFlagIsBigEndian

public static int kAudioFormatFlagIsBigEndian

kAudioFormatFlagIsSignedInteger

public static int kAudioFormatFlagIsSignedInteger

kAudioFormatFlagIsPacked

public static int kAudioFormatFlagIsPacked

kAudioFormatFlagIsAlignedHigh

public static int kAudioFormatFlagIsAlignedHigh

kAudioFormatFlagIsNonInterleaved

public static int kAudioFormatFlagIsNonInterleaved

kAudioFormatFlagIsNonMixable

public static int kAudioFormatFlagIsNonMixable

pcms

public static Set<String> pcms
Constructor Detail

AudioSampleEntry

public AudioSampleEntry(Header atom)

AudioSampleEntry

public AudioSampleEntry(Header header,
                        short drefInd,
                        short channelCount,
                        short sampleSize,
                        int sampleRate,
                        short revision,
                        int vendor,
                        int compressionId,
                        int pktSize,
                        int samplesPerPkt,
                        int bytesPerPkt,
                        int bytesPerFrame,
                        int bytesPerSample,
                        short version)
Method Detail

parse

public void parse(ByteBuffer input)
Overrides:
parse in class SampleEntry

doWrite

protected void doWrite(ByteBuffer out)
Overrides:
doWrite in class SampleEntry

getChannelCount

public short getChannelCount()

calcFrameSize

public int calcFrameSize()

calcSampleSize

public int calcSampleSize()

getSampleSize

public short getSampleSize()

getSampleRate

public float getSampleRate()

getBytesPerFrame

public int getBytesPerFrame()

getBytesPerSample

public int getBytesPerSample()

getVersion

public short getVersion()

getEndian

public EndianBox.Endian getEndian()

isFloat

public boolean isFloat()

isPCM

public boolean isPCM()

getFormat

public AudioFormat getFormat()

dump

public void dump(StringBuilder sb)
Overrides:
dump in class NodeBox

getLabels

public ChannelLabel[] getLabels()


Copyright © 2013. All Rights Reserved.