| Package | Description |
|---|---|
| io.humble.video |
The Humble Video library for decoding and encoding audio and pictures (i.e.
|
| io.humble.video.javaxsound |
A collection of classes that can map
MediaAudio into
javax.sound.sampled methods. |
| Modifier and Type | Method and Description |
|---|---|
static AudioFormat.Type |
AudioFormat.getAlternateSampleFormat(AudioFormat.Type sample_fmt,
boolean planar)
Return the planar<->packed alternative form of the given sample format, or
SAMPLE_FMT_NONE on error. |
AudioFormat.Type |
MediaAudio.getFormat()
Format of audio in this object.
|
static AudioFormat.Type |
AudioFormat.getFormat(String name)
Return a sample format corresponding to name, or SAMPLE_FMT_NONE
on error. |
AudioFormat.Type |
MediaAudioResampler.getInputFormat()
Get input audio format.
|
AudioFormat.Type |
MediaAudioResampler.getOutputFormat()
Get output audio format.
|
static AudioFormat.Type |
AudioFormat.getPackedSampleFormat(AudioFormat.Type sample_fmt)
Get the packed alternative form of the given sample format.
If the passed sample_fmt is already in packed format, the format returned is the same as the input. |
static AudioFormat.Type |
AudioFormat.getPlanarSampleFormat(AudioFormat.Type sample_fmt)
Get the planar alternative form of the given sample format.
If the passed sample_fmt is already in planar format, the format returned is the same as the input. |
AudioFormat.Type |
Coder.getSampleFormat()
Get the audio sample format.
|
AudioFormat.Type |
FilterLink.getSampleFormat() |
AudioFormat.Type |
Codec.getSupportedAudioFormat(int index)
Get the supported sample format at this index.
|
static AudioFormat.Type |
AudioFormat.Type.swigToEnum(int swigValue) |
static AudioFormat.Type |
AudioFormat.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AudioFormat.Type[] |
AudioFormat.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<AudioFormat.Type> |
Codec.getSupportedAudioFormats()
Returns a list of supported audio sample formats this codec can encode
audio in.
|
| Modifier and Type | Method and Description |
|---|---|
FilterAudioSink |
FilterGraph.addAudioSink(String name,
int sampleRate,
AudioChannel.Layout channelLayout,
AudioFormat.Type format)
Add a FilterAudioSink.
|
FilterAudioSource |
FilterGraph.addAudioSource(String name,
int sampleRate,
AudioChannel.Layout channelLayout,
AudioFormat.Type format,
Rational timeBase)
Add a FilterAudioSource.
|
static AudioFormat.Type |
AudioFormat.getAlternateSampleFormat(AudioFormat.Type sample_fmt,
boolean planar)
Return the planar<->packed alternative form of the given sample format, or
SAMPLE_FMT_NONE on error. |
static int |
AudioFormat.getBufferSizeNeeded(int numSamples,
int numChannels,
AudioFormat.Type format)
Get the size of a buffer in bytes that would be required to hold the
number of samples of audio in the given format and with the given number of channels. |
static int |
AudioFormat.getBytesPerSample(AudioFormat.Type sample_fmt)
Return number of bytes per sample.
|
static int |
AudioFormat.getDataPlaneSizeNeeded(int numSamples,
int numChannels,
AudioFormat.Type format)
Get the size of a plane of audio bytes that would be required to hold the
number of samples of audio in the given format and with the given number of channels. |
static String |
AudioFormat.getName(AudioFormat.Type format)
Return the name of format, or NULL if format is not
recognized. |
static AudioFormat.Type |
AudioFormat.getPackedSampleFormat(AudioFormat.Type sample_fmt)
Get the packed alternative form of the given sample format.
If the passed sample_fmt is already in packed format, the format returned is the same as the input. |
static AudioFormat.Type |
AudioFormat.getPlanarSampleFormat(AudioFormat.Type sample_fmt)
Get the planar alternative form of the given sample format.
If the passed sample_fmt is already in planar format, the format returned is the same as the input. |
static boolean |
AudioFormat.isPlanar(AudioFormat.Type sample_fmt)
Check if the sample format is planar.
|
static MediaAudioResampler |
MediaAudioResampler.make(AudioChannel.Layout outLayout,
int outSampleRate,
AudioFormat.Type outFormat,
AudioChannel.Layout inLayout,
int inSampleRate,
AudioFormat.Type inFormat)
Create a new MediaAudioResampler.
|
static MediaAudio |
MediaAudio.make(Buffer buffer,
int numSamples,
int sampleRate,
int channels,
AudioChannel.Layout channelLayout,
AudioFormat.Type format)
Create a MediaAudio using the given buffer.
Note: that the Buffer.getBufferSize() constraints the max number of samples we can place in here, and HumbleVideo needs to reserve some of the buffer for, um, stuff (assume at least 64 bytes). |
static MediaAudio |
MediaAudio.make(int numSamples,
int sampleRate,
int channels,
AudioChannel.Layout channelLayout,
AudioFormat.Type format)
Create a MediaAudio and the underlying data.
|
void |
Coder.setSampleFormat(AudioFormat.Type format)
Set the sample format when ENCODING.
|
| Modifier and Type | Method and Description |
|---|---|
AudioFormat.Type |
MediaAudioConverter.getMediaFormat()
The Humble
AudioFormat this converter converts from. |
| Modifier and Type | Method and Description |
|---|---|
static MediaAudioConverter |
MediaAudioConverterFactory.createConverter(String description,
int sampleRate,
AudioChannel.Layout layout,
AudioFormat.Type format)
Create a converter.
|
Copyright © 2018 Humble Software. All rights reserved.