public class AudioSampleEntry extends SampleEntry
Box.LeafBox
Modifier and Type | Field and Description |
---|---|
static Label[] |
EMPTY |
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 |
drefInd
header, MAX_BOX_SIZE
Constructor and Description |
---|
AudioSampleEntry(Header atom) |
Modifier and Type | Method and Description |
---|---|
static void |
_setLabels(TrakBox trakBox,
Label[] labels) |
static AudioSampleEntry |
audioSampleEntry(String fourcc,
int drefId,
int sampleSize,
int channels,
int sampleRate,
ByteOrder endian) |
static AudioSampleEntry |
audioSampleEntryPCM(AudioFormat format) |
int |
calcFrameSize() |
int |
calcSampleSize() |
static AudioSampleEntry |
compressedAudioSampleEntry(String fourcc,
int drefId,
int sampleSize,
int channels,
int sampleRate,
int samplesPerPacket,
int bytesPerPacket,
int bytesPerFrame) |
static AudioSampleEntry |
createAudioSampleEntry(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) |
protected void |
doWrite(ByteBuffer out) |
static Label[] |
extractLabels(ChannelBox.ChannelDescription[] descriptions) |
int |
getBytesPerFrame() |
int |
getBytesPerSample() |
short |
getChannelCount() |
ByteOrder |
getEndian() |
AudioFormat |
getFormat() |
ChannelLabel[] |
getLabels() |
static Label[] |
getLabelsByBitmap(long channelBitmap)
enum
{
kCAFChannelBit_Left = (1<<0),
kCAFChannelBit_Right = (1<<1),
kCAFChannelBit_Center = (1<<2),
kCAFChannelBit_LFEScreen = (1<<3),
kCAFChannelBit_LeftSurround = (1<<4), // WAVE: "Back Left"
kCAFChannelBit_RightSurround = (1<<5), // WAVE: "Back Right"
kCAFChannelBit_LeftCenter = (1<<6),
kCAFChannelBit_RightCenter = (1<<7),
kCAFChannelBit_CenterSurround = (1<<8), // WAVE: "Back Center"
kCAFChannelBit_LeftSurroundDirect = (1<<9), // WAVE: "Side Left"
kCAFChannelBit_RightSurroundDirect = (1<<10), // WAVE: "Side Right"
kCAFChannelBit_TopCenterSurround = (1<<11),
kCAFChannelBit_VerticalHeightLeft = (1<<12), // WAVE: "Top Front Left"
kCAFChannelBit_VerticalHeightCenter = (1<<13), // WAVE: "Top Front Center"
kCAFChannelBit_VerticalHeightRight = (1<<14), // WAVE: "Top Front Right"
kCAFChannelBit_TopBackLeft = (1<<15),
kCAFChannelBit_TopBackCenter = (1<<16),
kCAFChannelBit_TopBackRight = (1<<17)
};
|
static Label[] |
getLabelsFromChan(ChannelBox box) |
static Label[] |
getLabelsFromSampleEntry(AudioSampleEntry se) |
static Label[] |
getLabelsFromTrack(TrakBox trakBox) |
float |
getSampleRate() |
short |
getSampleSize() |
short |
getVersion() |
boolean |
isFloat() |
boolean |
isPCM() |
static String |
lookupFourcc(AudioFormat format) |
void |
parse(ByteBuffer input) |
static void |
setLabel(TrakBox trakBox,
int channel,
Label label) |
static void |
setLabels(Label[] labels,
ChannelBox channel) |
estimateSize, getDrefInd, parseExtensions, setDrefInd, setMediaType, writeExtensions
add, addFirst, cloneBox, doCloneBox, dump, dumpBoxes, findAll, findAllPath, findBox, findDeep, findDeepInner, findFirst, findFirstPath, getBoxes, parseChildBox, removeChildren, replace, replaceBox, setFactory
asBox, createLeafBox, getFourcc, getHeader, parseBox, path, terminatorAtom, toString, write
public static int kAudioFormatFlagIsFloat
public static int kAudioFormatFlagIsBigEndian
public static int kAudioFormatFlagIsSignedInteger
public static int kAudioFormatFlagIsPacked
public static int kAudioFormatFlagIsAlignedHigh
public static int kAudioFormatFlagIsNonInterleaved
public static int kAudioFormatFlagIsNonMixable
public static final Label[] EMPTY
public AudioSampleEntry(Header atom)
public static AudioSampleEntry createAudioSampleEntry(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)
public void parse(ByteBuffer input)
parse
in class SampleEntry
protected void doWrite(ByteBuffer out)
doWrite
in class SampleEntry
public short getChannelCount()
public int calcFrameSize()
public int calcSampleSize()
public short getSampleSize()
public float getSampleRate()
public int getBytesPerFrame()
public int getBytesPerSample()
public short getVersion()
public ByteOrder getEndian()
public boolean isFloat()
public boolean isPCM()
public AudioFormat getFormat()
public ChannelLabel[] getLabels()
public static AudioSampleEntry compressedAudioSampleEntry(String fourcc, int drefId, int sampleSize, int channels, int sampleRate, int samplesPerPacket, int bytesPerPacket, int bytesPerFrame)
public static AudioSampleEntry audioSampleEntry(String fourcc, int drefId, int sampleSize, int channels, int sampleRate, ByteOrder endian)
public static String lookupFourcc(AudioFormat format)
public static AudioSampleEntry audioSampleEntryPCM(AudioFormat format)
public static Label[] getLabelsFromSampleEntry(AudioSampleEntry se)
public static void setLabels(Label[] labels, ChannelBox channel)
public static Label[] getLabelsByBitmap(long channelBitmap)
enum
{
kCAFChannelBit_Left = (1<<0),
kCAFChannelBit_Right = (1<<1),
kCAFChannelBit_Center = (1<<2),
kCAFChannelBit_LFEScreen = (1<<3),
kCAFChannelBit_LeftSurround = (1<<4), // WAVE: "Back Left"
kCAFChannelBit_RightSurround = (1<<5), // WAVE: "Back Right"
kCAFChannelBit_LeftCenter = (1<<6),
kCAFChannelBit_RightCenter = (1<<7),
kCAFChannelBit_CenterSurround = (1<<8), // WAVE: "Back Center"
kCAFChannelBit_LeftSurroundDirect = (1<<9), // WAVE: "Side Left"
kCAFChannelBit_RightSurroundDirect = (1<<10), // WAVE: "Side Right"
kCAFChannelBit_TopCenterSurround = (1<<11),
kCAFChannelBit_VerticalHeightLeft = (1<<12), // WAVE: "Top Front Left"
kCAFChannelBit_VerticalHeightCenter = (1<<13), // WAVE: "Top Front Center"
kCAFChannelBit_VerticalHeightRight = (1<<14), // WAVE: "Top Front Right"
kCAFChannelBit_TopBackLeft = (1<<15),
kCAFChannelBit_TopBackCenter = (1<<16),
kCAFChannelBit_TopBackRight = (1<<17)
};
channelBitmap
- public static Label[] extractLabels(ChannelBox.ChannelDescription[] descriptions)
public static Label[] getLabelsFromChan(ChannelBox box)
Copyright © 2019. All rights reserved.