#include <assert.h>
#include <math.h>
#include <iostream>
#include <memory>
#include "gflags/gflags.h"
#include "webrtc/common_types.h"
#include "webrtc/modules/audio_coding/codecs/audio_format_conversion.h"
#include "webrtc/modules/audio_coding/include/audio_coding_module.h"
#include "webrtc/modules/audio_coding/include/audio_coding_module_typedefs.h"
#include "webrtc/modules/audio_coding/test/Channel.h"
#include "webrtc/modules/audio_coding/test/PCMFile.h"
#include "webrtc/modules/audio_coding/test/utility.h"
#include "webrtc/system_wrappers/include/event_wrapper.h"
#include "webrtc/test/gtest.h"
#include "webrtc/test/testsupport/fileutils.h"
#include "webrtc/typedefs.h"
|
| DEFINE_string (codec, "isac", "Codec Name") |
|
| DEFINE_int32 (sample_rate_hz, 16000, "Sampling rate in Hertz.") |
|
| DEFINE_int32 (num_channels, 1, "Number of Channels.") |
|
| DEFINE_string (input_file, "", "Input file, PCM16 32 kHz, optional.") |
|
| DEFINE_int32 (delay, 0, "Delay in millisecond.") |
|
| DEFINE_bool (dtx, false, "Enable DTX at the sender side.") |
|
| DEFINE_bool (packet_loss, false, "Apply packet loss, c.f. Channel{.cc, .h}.") |
|
| DEFINE_bool (fec, false, "Use Forward Error Correction (FEC).") |
|
int | main (int argc, char *argv[]) |
|
◆ DEFINE_bool() [1/3]
◆ DEFINE_bool() [2/3]
◆ DEFINE_bool() [3/3]
DEFINE_bool |
( |
fec |
, |
|
|
false |
, |
|
|
"Use Forward Error Correction (FEC)." |
|
|
) |
| |
◆ DEFINE_int32() [1/3]
◆ DEFINE_int32() [2/3]
◆ DEFINE_int32() [3/3]
DEFINE_int32 |
( |
delay |
, |
|
|
0 |
, |
|
|
"Delay in millisecond." |
|
|
) |
| |
◆ DEFINE_string() [1/2]
DEFINE_string |
( |
codec |
, |
|
|
"isac" |
, |
|
|
"Codec Name" |
|
|
) |
| |
◆ DEFINE_string() [2/2]
DEFINE_string |
( |
input_file |
, |
|
|
"" |
, |
|
|
"Input |
file, |
|
|
PCM16 32 |
kHz, |
|
|
optional." |
|
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ acm
◆ codec
◆ dtx
◆ fec
◆ name
◆ num_channels
◆ packet_loss
◆ sample_rate_hz