Skip to content
Snippets Groups Projects
Commit b9fc7ce7 authored by Frank Bossen's avatar Frank Bossen
Browse files

Remove JVET_O0549_ENCODER_ONLY_FILTER_POL macro

parent 1537b7f1
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,6 @@ namespace df ...@@ -94,7 +94,6 @@ namespace df
} }
else else
{ {
#if JVET_O0549_ENCODER_ONLY_FILTER_POL
if (opt_name.size() > 0 && opt_name.back() == '*') if (opt_name.size() > 0 && opt_name.back() == '*')
{ {
std::string prefix_name = opt_name.substr(0, opt_name.size() - 1); std::string prefix_name = opt_name.substr(0, opt_name.size() - 1);
...@@ -106,10 +105,6 @@ namespace df ...@@ -106,10 +105,6 @@ namespace df
names->opt_long.push_back(opt_name); names->opt_long.push_back(opt_name);
opt_long_map[opt_name].push_back(names); opt_long_map[opt_name].push_back(names);
} }
#else
names->opt_long.push_back(opt_name);
opt_long_map[opt_name].push_back(names);
#endif
} }
opt_start += opt_end + 1; opt_start += opt_end + 1;
} }
...@@ -162,12 +157,10 @@ namespace df ...@@ -162,12 +157,10 @@ namespace df
{ {
out << "--" << entry.opt_long.front(); out << "--" << entry.opt_long.front();
} }
#if JVET_O0549_ENCODER_ONLY_FILTER_POL
else if (!entry.opt_prefix.empty()) else if (!entry.opt_prefix.empty())
{ {
out << "--" << entry.opt_prefix.front() << "*"; out << "--" << entry.opt_prefix.front() << "*";
} }
#endif
} }
/* format the help text */ /* format the help text */
...@@ -286,9 +279,7 @@ namespace df ...@@ -286,9 +279,7 @@ namespace df
bool OptionWriter::storePair(bool allow_long, bool allow_short, const std::string &name, const std::string &value) bool OptionWriter::storePair(bool allow_long, bool allow_short, const std::string &name, const std::string &value)
{ {
bool found = false; bool found = false;
#if JVET_O0549_ENCODER_ONLY_FILTER_POL
std::string val = value; std::string val = value;
#endif
Options::NamesMap::iterator opt_it; Options::NamesMap::iterator opt_it;
if (allow_long) if (allow_long)
{ {
...@@ -308,7 +299,6 @@ namespace df ...@@ -308,7 +299,6 @@ namespace df
found = true; found = true;
} }
} }
#if JVET_O0549_ENCODER_ONLY_FILTER_POL
bool allow_prefix = allow_long; bool allow_prefix = allow_long;
if (allow_prefix && !found) if (allow_prefix && !found)
{ {
...@@ -324,18 +314,13 @@ namespace df ...@@ -324,18 +314,13 @@ namespace df
} }
} }
} }
#endif
if (!found) if (!found)
{ {
error_reporter.error(where()) error_reporter.error(where())
<< "Unknown option `" << name << "' (value:`" << value << "')\n"; << "Unknown option `" << name << "' (value:`" << value << "')\n";
return false; return false;
} }
#if JVET_O0549_ENCODER_ONLY_FILTER_POL
setOptions((*opt_it).second, val, error_reporter); setOptions((*opt_it).second, val, error_reporter);
#else
setOptions((*opt_it).second, value, error_reporter);
#endif
return true; return true;
} }
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
#include <vector> #include <vector>
#include <optional> #include <optional>
#define JVET_O0549_ENCODER_ONLY_FILTER_POL 1 // JVET-O0549: Encoder-only GOP-based temporal filter. Program Options Lite related changes.
#ifndef __PROGRAM_OPTIONS_LITE__ #ifndef __PROGRAM_OPTIONS_LITE__
#define __PROGRAM_OPTIONS_LITE__ #define __PROGRAM_OPTIONS_LITE__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment