public class Mp4EsdsBox extends AbstractMp4Box
Modifier and Type | Class and Description |
---|---|
static class |
Mp4EsdsBox.AudioProfile
Audio profile, held in Section 5 this is usually type LOW_COMPLEXITY
|
static class |
Mp4EsdsBox.Kind
File type, held in Section 4 , only really expecting type 0x64 (AAC)
|
Modifier and Type | Field and Description |
---|---|
private Mp4EsdsBox.AudioProfile |
audioProfile |
private static java.util.Map<java.lang.Integer,Mp4EsdsBox.AudioProfile> |
audioProfileMap |
static int |
AVERAGE_BITRATE_LENGTH |
private int |
avgBitrate |
static int |
BUFFER_SIZE_LENGTH |
static int |
CHANNEL_FLAGS_LENGTH |
static int |
CONFIG_TYPE_LENGTH |
static int |
DESCRIPTOR_OBJECT_TYPE_LENGTH |
static int |
DESCRIPTOR_TYPE_LENGTH |
static int |
ES_ID_LENGTH |
private static int |
FILLER_END |
private static int |
FILLER_OTHER |
private static int |
FILLER_START |
private Mp4EsdsBox.Kind |
kind |
private static java.util.Map<java.lang.Integer,Mp4EsdsBox.Kind> |
kindMap |
static int |
MAX_BITRATE_LENGTH |
private int |
maxBitrate |
private int |
numberOfChannels |
static int |
OBJECT_TYPE_LENGTH |
static int |
OTHER_FLAG_LENGTH |
private static int |
SECTION_FIVE |
private static int |
SECTION_FOUR |
private static int |
SECTION_SIX |
private static int |
SECTION_THREE |
static int |
STREAM_PRIORITY_LENGTH |
static int |
STREAM_TYPE_LENGTH |
static int |
VERSION_FLAG_LENGTH |
dataBuffer, header
Constructor and Description |
---|
Mp4EsdsBox(Mp4BoxHeader header,
java.nio.ByteBuffer dataBuffer)
DataBuffer must start from from the start of the body
|
Modifier and Type | Method and Description |
---|---|
Mp4EsdsBox.AudioProfile |
getAudioProfile()
Get audio profile, usually AAC Low Complexity
|
int |
getAvgBitrate() |
Mp4EsdsBox.Kind |
getKind()
Only expext MPG_Audio,
TODO shouldnt matter if another type of audio, but something gone wrong if type of video
|
int |
getMaxBitrate() |
int |
getNumberOfChannels() |
int |
processSectionHeader(java.nio.ByteBuffer dataBuffer)
Process header, skipping filler bytes and calculating size
|
getData, getHeader
public static final int VERSION_FLAG_LENGTH
public static final int OTHER_FLAG_LENGTH
public static final int DESCRIPTOR_TYPE_LENGTH
public static final int ES_ID_LENGTH
public static final int STREAM_PRIORITY_LENGTH
public static final int CONFIG_TYPE_LENGTH
public static final int OBJECT_TYPE_LENGTH
public static final int STREAM_TYPE_LENGTH
public static final int BUFFER_SIZE_LENGTH
public static final int MAX_BITRATE_LENGTH
public static final int AVERAGE_BITRATE_LENGTH
public static final int DESCRIPTOR_OBJECT_TYPE_LENGTH
public static final int CHANNEL_FLAGS_LENGTH
private Mp4EsdsBox.Kind kind
private Mp4EsdsBox.AudioProfile audioProfile
private int numberOfChannels
private int maxBitrate
private int avgBitrate
private static final int SECTION_THREE
private static final int SECTION_FOUR
private static final int SECTION_FIVE
private static final int SECTION_SIX
private static final int FILLER_START
private static final int FILLER_OTHER
private static final int FILLER_END
private static java.util.Map<java.lang.Integer,Mp4EsdsBox.Kind> kindMap
private static java.util.Map<java.lang.Integer,Mp4EsdsBox.AudioProfile> audioProfileMap
public Mp4EsdsBox(Mp4BoxHeader header, java.nio.ByteBuffer dataBuffer)
header
- header infodataBuffer
- data of box (doesnt include header data)public int getNumberOfChannels()
public int getMaxBitrate()
public int getAvgBitrate()
public int processSectionHeader(java.nio.ByteBuffer dataBuffer)
dataBuffer
- public Mp4EsdsBox.Kind getKind()
public Mp4EsdsBox.AudioProfile getAudioProfile()
Copyright © 2005-2013 java.net. All Rights Reserved.