Commit 6c456c7b authored by Stefan Westerfeld's avatar Stefan Westerfeld

Support --detect-speed.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 13d51420
...@@ -576,6 +576,10 @@ parse_get_options (ArgParser& ap) ...@@ -576,6 +576,10 @@ parse_get_options (ArgParser& ap)
{ {
Params::test_no_sync = true; Params::test_no_sync = true;
} }
if (ap.parse_opt ("--detect-speed"))
{
Params::detect_speed = true;
}
} }
int int
......
...@@ -25,6 +25,7 @@ double Params::water_delta = 0.01; ...@@ -25,6 +25,7 @@ double Params::water_delta = 0.01;
bool Params::mix = true; bool Params::mix = true;
bool Params::hard = false; // hard decode bits? (soft decoding is better) bool Params::hard = false; // hard decode bits? (soft decoding is better)
bool Params::snr = false; // compute/show snr while adding watermark bool Params::snr = false; // compute/show snr while adding watermark
bool Params::detect_speed = false;
int Params::have_key = 0; int Params::have_key = 0;
size_t Params::payload_size = 128; size_t Params::payload_size = 128;
bool Params::payload_short = false; bool Params::payload_short = false;
......
...@@ -42,6 +42,7 @@ public: ...@@ -42,6 +42,7 @@ public:
static bool hard; // hard decode bits? (soft decoding is better) static bool hard; // hard decode bits? (soft decoding is better)
static bool snr; // compute/show snr while adding watermark static bool snr; // compute/show snr while adding watermark
static int have_key; static int have_key;
static bool detect_speed;
static size_t payload_size; // number of payload bits for the watermark static size_t payload_size; // number of payload bits for the watermark
static bool payload_short; static bool payload_short;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment