Class G722CodecState
Stores state to be used between calls to Encode or Decode
Inheritance
System.Object
G722CodecState
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Media
Assembly: SIPSorcery.dll
Syntax
public class G722CodecState
Constructors
| Improve this Doc View SourceG722CodecState(Int32, G722Flags)
Creates a new instance of G722 Codec State for a new encode or decode session
Declaration
public G722CodecState(int rate, G722Flags options)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rate | Bitrate (typically 64000) |
G722Flags | options | Special options |
Properties
| Improve this Doc View SourceBand
Band
Declaration
public Band[] Band { get; }
Property Value
Type | Description |
---|---|
Band[] |
BitsPerSample
Bits Per Sample 6 for 48000kbps, 7 for 56000kbps, or 8 for 64000kbps.
Declaration
public int BitsPerSample { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
EncodeFrom8000Hz
8kHz Sampling TRUE if encode from 8k samples/second
Declaration
public bool EncodeFrom8000Hz { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
InBits
Number of bits in InBuffer
Declaration
public int InBits { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
InBuffer
In bit buffer
Declaration
public uint InBuffer { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
ItuTestMode
ITU Test Mode TRUE if the operating in the special ITU test mode, with the band split filters disabled.
Declaration
public bool ItuTestMode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
OutBits
Number of bits in OutBuffer
Declaration
public int OutBits { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
OutBuffer
Out bit buffer
Declaration
public uint OutBuffer { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Packed
TRUE if the G.722 data is packed
Declaration
public bool Packed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
QmfSignalHistory
Signal history for the QMF (x)
Declaration
public int[] QmfSignalHistory { get; }
Property Value
Type | Description |
---|---|
System.Int32[] |