public class CodecType
extends java.lang.Object
For each codec, the default AVP payload type, frame size, and number of samples per frame are also provided.
Modifier and Type | Field and Description |
---|---|
static CodecType |
AMR_0475
AMR 4.75 kbps
|
static CodecType |
AMR_0515
AMR 5.15 kbps
|
static CodecType |
AMR_0590
AMR 5.9 kbps
|
static CodecType |
AMR_0670
AMR 6.7 kbps
|
static CodecType |
AMR_0740
AMR 7.4 kbps
|
static CodecType |
AMR_0795
AMR 7.95 kbps
|
static CodecType |
AMR_1020
AMR 10.2 kbps
|
static CodecType |
AMR_1220
AMR 12.2 kbps
|
static CodecType |
AMR_NB
AMR narrow band (AMR-NB), from 4.75 to 12.2 kbps (4.75 kbps, 5.15 kbps, 5.9 kbps, 6.7 kbps, 7.4 kbps, 7.95 kbps, 10.2 kbps, or 12.2 kbps )
|
static CodecType |
Clear_Mode
Clear mode
|
static CodecType |
G711_ALAW
G711 (PCM) A-law
|
static CodecType |
G711_ULAW
G711 (PCM) u-law
|
static CodecType |
G726_24
G726_24
|
static CodecType |
G726_32
G726_32
|
static CodecType |
G726_40
G726_40
|
static CodecType |
GSM0610
GSM0610
|
static CodecType |
PCM_LINEAR
PCM linear
|
Modifier | Constructor and Description |
---|---|
protected |
CodecType(java.lang.String name,
int payload_type,
int frame_size,
int samples)
Creates a new Codec.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Whether it is equals to the given object.
|
static CodecType |
getByName(java.lang.String name)
Gets Codec from name.
|
int |
getFrameSize()
Gets the frame size in bytes.
|
java.lang.String |
getName()
Gets codec name.
|
int |
getPayloadType()
Gets AVP payload type.
|
int |
getSamplesPerFrame()
Gets the number of samples per frame.
|
java.lang.String |
toString()
Gets a String representation of this object.
|
public static final CodecType PCM_LINEAR
public static final CodecType G711_ULAW
public static final CodecType G711_ALAW
public static final CodecType G726_24
public static final CodecType G726_32
public static final CodecType G726_40
public static final CodecType GSM0610
public static final CodecType AMR_NB
public static final CodecType AMR_0475
public static final CodecType AMR_0515
public static final CodecType AMR_0590
public static final CodecType AMR_0670
public static final CodecType AMR_0740
public static final CodecType AMR_0795
public static final CodecType AMR_1020
public static final CodecType AMR_1220
public static final CodecType Clear_Mode
protected CodecType(java.lang.String name, int payload_type, int frame_size, int samples)
public java.lang.String getName()
public int getPayloadType()
public int getFrameSize()
public int getSamplesPerFrame()
public java.lang.String toString()
toString
in class java.lang.Object
public static CodecType getByName(java.lang.String name)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object