public class AudioCodecMeta extends CodecMeta
Constructor and Description |
---|
AudioCodecMeta(String fourcc,
ByteBuffer codecPrivate) |
Modifier and Type | Method and Description |
---|---|
static AudioCodecMeta |
createAudioCodecMeta(String fourcc,
int sampleSize,
int channelCount,
int sampleRate,
ByteOrder endian,
boolean pcm,
Label[] labels,
ByteBuffer codecPrivate) |
static AudioCodecMeta |
createAudioCodecMeta2(String fourcc,
int sampleSize,
int channelCount,
int sampleRate,
ByteOrder endian,
boolean pcm,
Label[] labels,
int samplesPerPacket,
int bytesPerPacket,
int bytesPerFrame,
ByteBuffer codecPrivate) |
static AudioCodecMeta |
createAudioCodecMeta3(String fourcc,
ByteBuffer codecPrivate,
AudioFormat format,
boolean pcm,
Label[] labels) |
static AudioCodecMeta |
fromAudioFormat(AudioFormat format) |
int |
getBytesPerFrame() |
int |
getBytesPerPacket() |
int |
getChannelCount() |
Label[] |
getChannelLabels() |
ByteOrder |
getEndian() |
AudioFormat |
getFormat() |
int |
getFrameSize() |
int |
getSampleRate() |
int |
getSampleSize() |
int |
getSamplesPerPacket() |
boolean |
isPCM() |
getCodecPrivate, getFourcc
public AudioCodecMeta(String fourcc, ByteBuffer codecPrivate)
public static AudioCodecMeta createAudioCodecMeta(String fourcc, int sampleSize, int channelCount, int sampleRate, ByteOrder endian, boolean pcm, Label[] labels, ByteBuffer codecPrivate)
public static AudioCodecMeta createAudioCodecMeta2(String fourcc, int sampleSize, int channelCount, int sampleRate, ByteOrder endian, boolean pcm, Label[] labels, int samplesPerPacket, int bytesPerPacket, int bytesPerFrame, ByteBuffer codecPrivate)
public static AudioCodecMeta createAudioCodecMeta3(String fourcc, ByteBuffer codecPrivate, AudioFormat format, boolean pcm, Label[] labels)
public int getFrameSize()
public int getSampleRate()
public int getSampleSize()
public int getChannelCount()
public int getSamplesPerPacket()
public int getBytesPerPacket()
public int getBytesPerFrame()
public ByteOrder getEndian()
public boolean isPCM()
public AudioFormat getFormat()
public Label[] getChannelLabels()
public static AudioCodecMeta fromAudioFormat(AudioFormat format)
Copyright © 2019. All rights reserved.