Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
d29f5435
Commit
d29f5435
authored
Mar 18, 2013
by
Yaowu Xu
Committed by
Gerrit Code Review
Mar 18, 2013
Browse files
Merge "put refmvselection under experiment" into experimental
parents
12ade557
88862c04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
configure
configure
+1
-0
vp9/common/vp9_findnearmv.c
vp9/common/vp9_findnearmv.c
+19
-0
No files found.
configure
View file @
d29f5435
...
@@ -246,6 +246,7 @@ EXPERIMENT_LIST="
...
@@ -246,6 +246,7 @@ EXPERIMENT_LIST="
enable_6tap
enable_6tap
abovesprefmv
abovesprefmv
code_nonzerocount
code_nonzerocount
useselectrefmv
"
"
CONFIG_LIST
=
"
CONFIG_LIST
=
"
external_build
external_build
...
...
vp9/common/vp9_findnearmv.c
View file @
d29f5435
...
@@ -118,10 +118,12 @@ unsigned int vp9_sub_pixel_variance2x16_c(const uint8_t *src_ptr,
...
@@ -118,10 +118,12 @@ unsigned int vp9_sub_pixel_variance2x16_c(const uint8_t *src_ptr,
return
vp9_variance2x16_c
(
temp2
,
2
,
dst_ptr
,
dst_pixels_per_line
,
sse
);
return
vp9_variance2x16_c
(
temp2
,
2
,
dst_ptr
,
dst_pixels_per_line
,
sse
);
}
}
#if CONFIG_USESELECTREFMV
/* check a list of motion vectors by sad score using a number rows of pixels
/* check a list of motion vectors by sad score using a number rows of pixels
* above and a number cols of pixels in the left to select the one with best
* above and a number cols of pixels in the left to select the one with best
* score to use as ref motion vector
* score to use as ref motion vector
*/
*/
void
vp9_find_best_ref_mvs
(
MACROBLOCKD
*
xd
,
void
vp9_find_best_ref_mvs
(
MACROBLOCKD
*
xd
,
uint8_t
*
ref_y_buffer
,
uint8_t
*
ref_y_buffer
,
int
ref_y_stride
,
int
ref_y_stride
,
...
@@ -298,3 +300,20 @@ void vp9_find_best_ref_mvs(MACROBLOCKD *xd,
...
@@ -298,3 +300,20 @@ void vp9_find_best_ref_mvs(MACROBLOCKD *xd,
// Copy back the re-ordered mv list
// Copy back the re-ordered mv list
vpx_memcpy
(
mvlist
,
sorted_mvs
,
sizeof
(
sorted_mvs
));
vpx_memcpy
(
mvlist
,
sorted_mvs
,
sizeof
(
sorted_mvs
));
}
}
#else
void
vp9_find_best_ref_mvs
(
MACROBLOCKD
*
xd
,
uint8_t
*
ref_y_buffer
,
int
ref_y_stride
,
int_mv
*
mvlist
,
int_mv
*
nearest
,
int_mv
*
near
)
{
int
i
;
// Make sure all the candidates are properly clamped etc
for
(
i
=
0
;
i
<
MAX_MV_REF_CANDIDATES
;
++
i
)
{
lower_mv_precision
(
&
mvlist
[
i
],
xd
->
allow_high_precision_mv
);
clamp_mv2
(
&
mvlist
[
i
],
xd
);
}
*
nearest
=
mvlist
[
0
];
*
near
=
mvlist
[
1
];
}
#endif
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