SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <audiog722.h>
Classes | |
struct | g722_encode_state |
Public Member Functions | |
AudioG722 () | |
~AudioG722 () | |
void | init (int rate, int options) |
int | encode (uint8_t g722_data[], const int16_t amp[], int len) |
Private Member Functions | |
int16_t | saturate (int32_t amp) |
void | block4 (int band, int d) |
Private Attributes | |
g722_encode_state | state |
Static Private Attributes | |
static const int | q6 [32] |
static const int | iln [32] |
static const int | ilp [32] |
static const int | wl [8] |
static const int | rl42 [16] |
static const int | ilb [32] |
static const int | qm4 [16] |
static const int | qm2 [4] |
static const int | qmf_coeffs [12] |
static const int | ihn [3] = {0, 1, 0} |
static const int | ihp [3] = {0, 3, 2} |
static const int | wh [3] = {0, -214, 798} |
static const int | rh2 [4] = {2, 1, 2, 1} |
Definition at line 25 of file audiog722.h.
AudioG722::AudioG722 | ( | ) |
Definition at line 125 of file audiog722.cpp.
AudioG722::~AudioG722 | ( | ) |
Definition at line 128 of file audiog722.cpp.
|
private |
Definition at line 136 of file audiog722.cpp.
References AudioG722::g722_encode_state::a, AudioG722::g722_encode_state::ap, AudioG722::g722_encode_state::b, AudioG722::g722_encode_state::band, AudioG722::g722_encode_state::bp, AudioG722::g722_encode_state::d, i, AudioG722::g722_encode_state::p, AudioG722::g722_encode_state::r, AudioG722::g722_encode_state::s, saturate(), AudioG722::g722_encode_state::sg, AudioG722::g722_encode_state::sp, state, and AudioG722::g722_encode_state::sz.
Referenced by encode().
Definition at line 236 of file audiog722.cpp.
References AudioG722::g722_encode_state::band, AudioG722::g722_encode_state::bits_per_sample, block4(), AudioG722::g722_encode_state::det, AudioG722::g722_encode_state::eight_k, i, ihn, ihp, ilb, iln, ilp, AudioG722::g722_encode_state::itu_test_mode, AudioG722::g722_encode_state::nb, AudioG722::g722_encode_state::out_bits, AudioG722::g722_encode_state::out_buffer, AudioG722::g722_encode_state::packed, q6, qm2, qm4, qmf_coeffs, rh2, rl42, AudioG722::g722_encode_state::s, saturate(), state, wh, wl, and AudioG722::g722_encode_state::x.
Referenced by AudioNetSink::write().
void AudioG722::init | ( | int | rate, |
int | options | ||
) |
Definition at line 131 of file audiog722.cpp.
References AudioG722::g722_encode_state::init(), and state.
Definition at line 75 of file audiog722.h.
Referenced by block4(), and encode().
|
staticprivate |
Definition at line 105 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 106 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 101 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 97 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 98 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 96 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 103 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 102 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 104 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 108 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 100 of file audiog722.h.
Referenced by encode().
|
private |
Definition at line 94 of file audiog722.h.
|
staticprivate |
Definition at line 107 of file audiog722.h.
Referenced by encode().
|
staticprivate |
Definition at line 99 of file audiog722.h.
Referenced by encode().