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
Guillaume Martres
aom-rav1e
Commits
6965e6f3
Commit
6965e6f3
authored
Oct 14, 2013
by
Dmitry Kovalev
Browse files
Removing print_prob_tree function and vp9_coeff_probs typedef.
Change-Id: If14265084e9b4c85c75b43e8d33a6fafad468cbc
parent
bee4abc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_entropy.h
View file @
6965e6f3
...
...
@@ -95,8 +95,6 @@ typedef unsigned int vp9_coeff_count[REF_TYPES][COEF_BANDS][PREV_COEF_CONTEXTS]
[
MAX_ENTROPY_TOKENS
];
typedef
unsigned
int
vp9_coeff_stats
[
REF_TYPES
][
COEF_BANDS
][
PREV_COEF_CONTEXTS
]
[
ENTROPY_NODES
][
2
];
typedef
vp9_prob
vp9_coeff_probs
[
REF_TYPES
][
COEF_BANDS
][
PREV_COEF_CONTEXTS
]
[
ENTROPY_NODES
];
#define SUBEXP_PARAM 4
/* Subexponential code parameter */
#define MODULUS_PARAM 13
/* Modulus parameter */
...
...
vp9/encoder/vp9_bitstream.c
View file @
6965e6f3
...
...
@@ -696,35 +696,6 @@ static void write_modes(VP9_COMP *cpi, vp9_writer* const bc,
}
}
/* This function is used for debugging probability trees. */
static
void
print_prob_tree
(
vp9_coeff_probs
*
coef_probs
,
int
block_types
)
{
/* print coef probability tree */
int
i
,
j
,
k
,
l
,
m
;
FILE
*
f
=
fopen
(
"enc_tree_probs.txt"
,
"a"
);
fprintf
(
f
,
"{
\n
"
);
for
(
i
=
0
;
i
<
block_types
;
i
++
)
{
fprintf
(
f
,
" {
\n
"
);
for
(
j
=
0
;
j
<
REF_TYPES
;
++
j
)
{
fprintf
(
f
,
" {
\n
"
);
for
(
k
=
0
;
k
<
COEF_BANDS
;
k
++
)
{
fprintf
(
f
,
" {
\n
"
);
for
(
l
=
0
;
l
<
PREV_COEF_CONTEXTS
;
l
++
)
{
fprintf
(
f
,
" {"
);
for
(
m
=
0
;
m
<
ENTROPY_NODES
;
m
++
)
{
fprintf
(
f
,
"%3u, "
,
(
unsigned
int
)(
coef_probs
[
i
][
j
][
k
][
l
][
m
]));
}
}
fprintf
(
f
,
" }
\n
"
);
}
fprintf
(
f
,
" }
\n
"
);
}
fprintf
(
f
,
" }
\n
"
);
}
fprintf
(
f
,
"}
\n
"
);
fclose
(
f
);
}
static
void
build_tree_distribution
(
VP9_COMP
*
cpi
,
TX_SIZE
tx_size
)
{
vp9_coeff_probs_model
*
coef_probs
=
cpi
->
frame_coef_probs
[
tx_size
];
vp9_coeff_count
*
coef_counts
=
cpi
->
coef_counts
[
tx_size
];
...
...
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