Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VVCSoftware_VTM
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jvet-tuc
VVCSoftware_VTM
Commits
b9fc7ce7
Commit
b9fc7ce7
authored
1 year ago
by
Frank Bossen
Browse files
Options
Downloads
Patches
Plain Diff
Remove JVET_O0549_ENCODER_ONLY_FILTER_POL macro
parent
1537b7f1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/Lib/Utilities/program_options_lite.cpp
+0
-15
0 additions, 15 deletions
source/Lib/Utilities/program_options_lite.cpp
source/Lib/Utilities/program_options_lite.h
+0
-2
0 additions, 2 deletions
source/Lib/Utilities/program_options_lite.h
with
0 additions
and
17 deletions
source/Lib/Utilities/program_options_lite.cpp
+
0
−
15
View file @
b9fc7ce7
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
source/Lib/Utilities/program_options_lite.h
+
0
−
2
View file @
b9fc7ce7
...
@@ -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__
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment