Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
ef53898c
Commit
ef53898c
authored
Oct 20, 2014
by
Jingning Han
Committed by
Gerrit Code Review
Oct 20, 2014
Browse files
Remove unused sb_has_motion function in vp9_encodeframe.c
Change-Id: I035fb6aa5c10741b065e27befb097d8087e3c62f
parent
e62ce79e
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
ef53898c
...
...
@@ -1365,27 +1365,6 @@ static int is_background(const VP9_COMP *cpi, const TileInfo *const tile,
return
this_sad
<
2
*
threshold
;
}
static
int
sb_has_motion
(
const
VP9_COMMON
*
cm
,
MODE_INFO
*
prev_mi_8x8
,
const
int
motion_thresh
)
{
const
int
mis
=
cm
->
mi_stride
;
int
block_row
,
block_col
;
if
(
cm
->
prev_mi
)
{
for
(
block_row
=
0
;
block_row
<
8
;
++
block_row
)
{
for
(
block_col
=
0
;
block_col
<
8
;
++
block_col
)
{
const
MODE_INFO
*
prev_mi
=
prev_mi_8x8
[
block_row
*
mis
+
block_col
].
src_mi
;
if
(
prev_mi
)
{
if
(
abs
(
prev_mi
->
mbmi
.
mv
[
0
].
as_mv
.
row
)
>
motion_thresh
||
abs
(
prev_mi
->
mbmi
.
mv
[
0
].
as_mv
.
col
)
>
motion_thresh
)
return
1
;
}
}
}
}
return
0
;
}
static
void
update_state_rt
(
VP9_COMP
*
cpi
,
PICK_MODE_CONTEXT
*
ctx
,
int
mi_row
,
int
mi_col
,
int
bsize
)
{
VP9_COMMON
*
const
cm
=
&
cpi
->
common
;
...
...
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