Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
e646daa9
Commit
e646daa9
authored
Oct 17, 2017
by
Zoe Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up the code for skip probs
Change-Id: Ia0fd1590d3a5aa1691e6ca0a7ab7ddaab3c7297b
parent
1eed2df9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
av1/common/pred_common.h
av1/common/pred_common.h
+0
-7
av1/encoder/bitstream.c
av1/encoder/bitstream.c
+2
-2
No files found.
av1/common/pred_common.h
View file @
e646daa9
...
...
@@ -69,13 +69,6 @@ static INLINE int av1_get_skip_context(const MACROBLOCKD *xd) {
return
above_skip
+
left_skip
;
}
#if !CONFIG_NEW_MULTISYMBOL
static
INLINE
aom_prob
av1_get_skip_prob
(
const
AV1_COMMON
*
cm
,
const
MACROBLOCKD
*
xd
)
{
return
cm
->
fc
->
skip_probs
[
av1_get_skip_context
(
xd
)];
}
#endif // !CONFIG_NEW_MULTISYMBOL
#if CONFIG_DUAL_FILTER
int
av1_get_pred_context_switchable_interp
(
const
MACROBLOCKD
*
xd
,
int
dir
);
#else
...
...
av1/encoder/bitstream.c
View file @
e646daa9
...
...
@@ -388,12 +388,12 @@ static int write_skip(const AV1_COMMON *cm, const MACROBLOCKD *xd,
return
1
;
}
else
{
const
int
skip
=
mi
->
mbmi
.
skip
;
const
int
ctx
=
av1_get_skip_context
(
xd
);
#if CONFIG_NEW_MULTISYMBOL
FRAME_CONTEXT
*
ec_ctx
=
xd
->
tile_ctx
;
const
int
ctx
=
av1_get_skip_context
(
xd
);
aom_write_symbol
(
w
,
skip
,
ec_ctx
->
skip_cdfs
[
ctx
],
2
);
#else
aom_write
(
w
,
skip
,
av1_get_
skip_prob
(
cm
,
xd
)
);
aom_write
(
w
,
skip
,
cm
->
fc
->
skip_prob
s
[
ctx
]
);
#endif
return
skip
;
}
...
...
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