Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
dav1d
Commits
3ccfc25a
Commit
3ccfc25a
authored
Jan 08, 2021
by
Kyle Siefring
Committed by
Jean-Baptiste Kempf
Jan 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dedup setting match flags for spatial candidates
parent
864b1995
Pipeline
#56579
passed with stages
in 3 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
src/refmvs.c
src/refmvs.c
+6
-8
No files found.
src/refmvs.c
View file @
3ccfc25a
...
...
@@ -51,12 +51,13 @@ static void add_spatial_candidate(refmvs_candidate *const mvstack, int *const cn
const
mv
cand_mv
=
((
b
->
mf
&
1
)
&&
gmv
[
0
].
n
!=
INVALID_MV
)
?
gmv
[
0
]
:
b
->
mv
.
mv
[
n
];
*
have_refmv_match
=
1
;
*
have_newmv_match
|=
b
->
mf
>>
1
;
const
int
last
=
*
cnt
;
for
(
int
m
=
0
;
m
<
last
;
m
++
)
if
(
mvstack
[
m
].
mv
.
mv
[
0
].
n
==
cand_mv
.
n
)
{
mvstack
[
m
].
weight
+=
weight
;
*
have_refmv_match
=
1
;
*
have_newmv_match
|=
b
->
mf
>>
1
;
return
;
}
...
...
@@ -65,8 +66,6 @@ static void add_spatial_candidate(refmvs_candidate *const mvstack, int *const cn
mvstack
[
last
].
weight
=
weight
;
*
cnt
=
last
+
1
;
}
*
have_refmv_match
=
1
;
*
have_newmv_match
|=
b
->
mf
>>
1
;
return
;
}
}
...
...
@@ -76,12 +75,13 @@ static void add_spatial_candidate(refmvs_candidate *const mvstack, int *const cn
[
1
]
=
((
b
->
mf
&
1
)
&&
gmv
[
1
].
n
!=
INVALID_MV
)
?
gmv
[
1
]
:
b
->
mv
.
mv
[
1
],
}};
*
have_refmv_match
=
1
;
*
have_newmv_match
|=
b
->
mf
>>
1
;
const
int
last
=
*
cnt
;
for
(
int
n
=
0
;
n
<
last
;
n
++
)
if
(
mvstack
[
n
].
mv
.
n
==
cand_mv
.
n
)
{
mvstack
[
n
].
weight
+=
weight
;
*
have_refmv_match
=
1
;
*
have_newmv_match
|=
b
->
mf
>>
1
;
return
;
}
...
...
@@ -90,8 +90,6 @@ static void add_spatial_candidate(refmvs_candidate *const mvstack, int *const cn
mvstack
[
last
].
weight
=
weight
;
*
cnt
=
last
+
1
;
}
*
have_refmv_match
=
1
;
*
have_newmv_match
|=
b
->
mf
>>
1
;
}
}
...
...
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