Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
4c5a4efc
Commit
4c5a4efc
authored
Feb 25, 2015
by
Jingning Han
Committed by
Gerrit Code Review
Feb 25, 2015
Browse files
Merge "Re-distribute hierarchical vector match pattern"
parents
bcdac7b4
f87e315e
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
4c5a4efc
...
...
@@ -533,10 +533,10 @@ static int vector_match(int16_t *ref, int16_t *src) {
}
center
=
offset
;
for
(
d
=
-
8
;
d
<=
8
;
d
+=
4
)
{
for
(
d
=
-
8
;
d
<=
8
;
d
+=
16
)
{
int
this_pos
=
offset
+
d
;
// check limit
if
(
this_pos
<
0
||
this_pos
>
64
||
this_pos
==
32
)
if
(
this_pos
<
0
||
this_pos
>
64
)
continue
;
this_sad
=
vp9_vector_sad
(
&
ref
[
this_pos
],
src
,
64
);
if
(
this_sad
<
best_sad
)
{
...
...
@@ -546,10 +546,10 @@ static int vector_match(int16_t *ref, int16_t *src) {
}
offset
=
center
;
for
(
d
=
-
4
;
d
<=
4
;
d
+=
2
)
{
for
(
d
=
-
4
;
d
<=
4
;
d
+=
8
)
{
int
this_pos
=
offset
+
d
;
// check limit
if
(
this_pos
<
0
||
this_pos
>
64
||
this_pos
==
32
)
if
(
this_pos
<
0
||
this_pos
>
64
)
continue
;
this_sad
=
vp9_vector_sad
(
&
ref
[
this_pos
],
src
,
64
);
if
(
this_sad
<
best_sad
)
{
...
...
@@ -559,10 +559,23 @@ static int vector_match(int16_t *ref, int16_t *src) {
}
offset
=
center
;
for
(
d
=
-
2
;
d
<=
2
;
d
+=
1
)
{
for
(
d
=
-
2
;
d
<=
2
;
d
+=
4
)
{
int
this_pos
=
offset
+
d
;
// check limit
if
(
this_pos
<
0
||
this_pos
>
64
||
this_pos
==
32
)
if
(
this_pos
<
0
||
this_pos
>
64
)
continue
;
this_sad
=
vp9_vector_sad
(
&
ref
[
this_pos
],
src
,
64
);
if
(
this_sad
<
best_sad
)
{
best_sad
=
this_sad
;
center
=
this_pos
;
}
}
offset
=
center
;
for
(
d
=
-
1
;
d
<=
1
;
d
+=
2
)
{
int
this_pos
=
offset
+
d
;
// check limit
if
(
this_pos
<
0
||
this_pos
>
64
)
continue
;
this_sad
=
vp9_vector_sad
(
&
ref
[
this_pos
],
src
,
64
);
if
(
this_sad
<
best_sad
)
{
...
...
Write
Preview
Supports
Markdown
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