Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
8026697a
Commit
8026697a
authored
Jan 27, 2024
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change result order for same time: AB blocks should go after B block
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
5c040ae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
wmget.cc
src/wmget.cc
+13
-11
No files found.
src/wmget.cc
View file @
8026697a
...
...
@@ -178,25 +178,27 @@ public:
const
int
all2
=
p2
.
type
==
Type
::
ALL
;
const
auto
p1bits
=
bit_vec_to_str
(
p1
.
bit_vec
);
const
auto
p2bits
=
bit_vec_to_str
(
p2
.
bit_vec
);
auto
ab
=
[]
(
const
Pattern
&
pattern
)
{
switch
(
pattern
.
sync_score
.
block_type
)
{
case
ConvBlockType
:
:
a
:
return
0
;
case
ConvBlockType
:
:
b
:
return
1
;
case
ConvBlockType
:
:
ab
:
return
2
;
};
return
99
;
// should not happen
};
if
(
p1
.
key
.
name
()
!=
p2
.
key
.
name
())
return
p1
.
key
.
name
()
<
p2
.
key
.
name
();
else
if
(
all1
!=
all2
)
return
all1
<
all2
;
else
if
(
p1
.
time
!=
p2
.
time
)
return
p1
.
time
<
p2
.
time
;
else
if
(
p1bits
!=
p2bits
)
return
p1bits
<
p2bits
;
else
if
(
ab
(
p1
)
!=
ab
(
p2
)
)
return
ab
(
p1
)
<
ab
(
p2
)
;
else
{
auto
ab
=
[]
(
const
Pattern
&
pattern
)
{
switch
(
pattern
.
sync_score
.
block_type
)
{
case
ConvBlockType
:
:
a
:
return
0
;
case
ConvBlockType
:
:
b
:
return
1
;
case
ConvBlockType
:
:
ab
:
return
2
;
};
return
99
;
// should not happen
};
return
ab
(
p1
)
<
ab
(
p2
);
return
p1bits
<
p2bits
;
}
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment