Skip to content
GitLab
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
a97d4ab1
Commit
a97d4ab1
authored
Jul 23, 2013
by
Dmitry Kovalev
Browse files
Removing MODE_COUNT_TESTING from vp9_entropymode.c.
Change-Id: I5367bc1d9e660d86879d285a6f146d8a47e62464
parent
8dede954
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_entropymode.c
View file @
a97d4ab1
...
...
@@ -427,46 +427,11 @@ static void update_mode_probs(int n_modes,
dst_probs
[
t
]
=
update_ct
(
pre_probs
[
t
],
probs
[
t
],
branch_ct
[
t
]);
}
// #define MODE_COUNT_TESTING
void
vp9_adapt_mode_probs
(
VP9_COMMON
*
cm
)
{
int
i
,
j
;
FRAME_CONTEXT
*
fc
=
&
cm
->
fc
;
FRAME_CONTEXT
*
pre_fc
=
&
cm
->
frame_contexts
[
cm
->
frame_context_idx
];
#ifdef MODE_COUNT_TESTING
int
t
;
printf
(
"static const unsigned int
\n
ymode_counts"
"[VP9_INTRA_MODES] = {
\n
"
);
for
(
t
=
0
;
t
<
VP9_INTRA_MODES
;
++
t
)
printf
(
"%d, "
,
fc
->
ymode_counts
[
t
]);
printf
(
"};
\n
"
);
printf
(
"static const unsigned int
\n
uv_mode_counts"
"[VP9_INTRA_MODES] [VP9_INTRA_MODES] = {
\n
"
);
for
(
i
=
0
;
i
<
VP9_INTRA_MODES
;
++
i
)
{
printf
(
" {"
);
for
(
t
=
0
;
t
<
VP9_INTRA_MODES
;
++
t
)
printf
(
"%d, "
,
fc
->
uv_mode_counts
[
i
][
t
]);
printf
(
"},
\n
"
);
}
printf
(
"};
\n
"
);
printf
(
"static const unsigned int
\n
bmode_counts"
"[VP9_NKF_BINTRAMODES] = {
\n
"
);
for
(
t
=
0
;
t
<
VP9_NKF_BINTRAMODES
;
++
t
)
printf
(
"%d, "
,
fc
->
bmode_counts
[
t
]);
printf
(
"};
\n
"
);
printf
(
"static const unsigned int
\n
i8x8_mode_counts"
"[VP9_I8X8_MODES] = {
\n
"
);
for
(
t
=
0
;
t
<
VP9_I8X8_MODES
;
++
t
)
printf
(
"%d, "
,
fc
->
i8x8_mode_counts
[
t
]);
printf
(
"};
\n
"
);
printf
(
"static const unsigned int
\n
mbsplit_counts"
"[VP9_NUMMBSPLITS] = {
\n
"
);
for
(
t
=
0
;
t
<
VP9_NUMMBSPLITS
;
++
t
)
printf
(
"%d, "
,
fc
->
mbsplit_counts
[
t
]);
printf
(
"};
\n
"
);
#endif
for
(
i
=
0
;
i
<
INTRA_INTER_CONTEXTS
;
i
++
)
fc
->
intra_inter_prob
[
i
]
=
update_ct2
(
pre_fc
->
intra_inter_prob
[
i
],
fc
->
intra_inter_count
[
i
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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