BYTE_MASK, ELEMENT_CCE, ELEMENT_CPE, ELEMENT_DSE, ELEMENT_END, ELEMENT_FIL, ELEMENT_LFE, ELEMENT_PCE, ELEMENT_SCE, LOGGER, MAX_ELEMENTS, MAX_LTP_SFB, MAX_MS_MASK, MAX_SECTIONS, MAX_WINDOW_COUNT, MAX_WINDOW_GROUP_COUNT, MIN_INPUT_SIZE, SQRT2, WINDOW_LEN_LONG, WINDOW_LEN_SHORT, WINDOW_SMALL_LEN_LONG, WINDOW_SMALL_LEN_SHORT
Constructor and Description |
---|
Decoder(byte[] decoderSpecificInfo)
Initializes the decoder with a MP4 decoder specific info.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canDecode(Profile profile)
The methods returns true, if a profile is supported by the decoder.
|
void |
decodeFrame(byte[] frame,
SampleBuffer buffer)
Decodes one frame of AAC data in frame mode and returns the raw PCM
data.
|
DecoderConfig |
getConfig() |
public Decoder(byte[] decoderSpecificInfo) throws AACException
decodeFrame(byte[], SampleBuffer)
method to decode them.decoderSpecificInfo
- a byte array containing the decoder specific info from an MP4 containerAACException
- if the specified profile is not supportedpublic static boolean canDecode(Profile profile)
profile
- an AAC profileProfile.isDecodingSupported()
public DecoderConfig getConfig()
public void decodeFrame(byte[] frame, SampleBuffer buffer) throws AACException
frame
- the AAC framebuffer
- a buffer to hold the decoded PCM dataAACException
- if decoding fails