Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
d404e820
Commit
d404e820
authored
May 31, 2013
by
Ronald S. Bultje
Committed by
Gerrit Code Review
May 31, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Fix silly bug with ENTROPY_STATS enabled." into experimental
parents
a288cb3b
c78f61dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
vp9/encoder/vp9_bitstream.c
vp9/encoder/vp9_bitstream.c
+5
-10
No files found.
vp9/encoder/vp9_bitstream.c
View file @
d404e820
...
...
@@ -1017,10 +1017,6 @@ static void build_tree_distribution(VP9_COMP *cpi, TX_SIZE txfm_size) {
unsigned
int
(
*
eob_branch_ct
)[
REF_TYPES
][
COEF_BANDS
][
PREV_COEF_CONTEXTS
]
=
cpi
->
common
.
fc
.
eob_branch_counts
[
txfm_size
];
vp9_coeff_stats
*
coef_branch_ct
=
cpi
->
frame_branch_ct
[
txfm_size
];
#ifdef ENTROPY_STATS
vp9_coeff_accum
*
context_counters
=
context_counters
[
txfm_size
];
int
t
=
0
;
#endif
vp9_prob
full_probs
[
ENTROPY_NODES
];
int
i
,
j
,
k
,
l
;
...
...
@@ -1051,9 +1047,11 @@ static void build_tree_distribution(VP9_COMP *cpi, TX_SIZE txfm_size) {
#endif
#ifdef ENTROPY_STATS
if
(
!
cpi
->
dummy_packing
)
{
int
t
;
for
(
t
=
0
;
t
<
MAX_ENTROPY_TOKENS
;
++
t
)
context_counters
[
i
][
j
][
k
][
l
][
t
]
+=
coef_counts
[
i
][
j
][
k
][
l
][
t
];
context_counters
[
i
][
j
][
k
][
l
][
MAX_ENTROPY_TOKENS
]
+=
context_counters
[
txfm_size
][
i
][
j
][
k
][
l
][
t
]
+=
coef_counts
[
i
][
j
][
k
][
l
][
t
];
context_counters
[
txfm_size
][
i
][
j
][
k
][
l
][
MAX_ENTROPY_TOKENS
]
+=
eob_branch_ct
[
i
][
j
][
k
][
l
];
}
#endif
...
...
@@ -1071,9 +1069,6 @@ static void build_coeff_contexts(VP9_COMP *cpi) {
static
void
update_coef_probs_common
(
vp9_writer
*
const
bc
,
VP9_COMP
*
cpi
,
TX_SIZE
tx_size
)
{
#ifdef ENTROPY_STATS
vp9_coeff_stats
*
tree_update_hist
=
tree_update_hist
[
tx_size
];
#endif
vp9_coeff_probs_model
*
new_frame_coef_probs
=
cpi
->
frame_coef_probs
[
tx_size
];
vp9_coeff_probs_model
*
old_frame_coef_probs
=
cpi
->
common
.
fc
.
coef_probs
[
tx_size
];
...
...
@@ -1155,7 +1150,7 @@ static void update_coef_probs_common(vp9_writer* const bc, VP9_COMP *cpi,
vp9_write
(
bc
,
u
,
upd
);
#ifdef ENTROPY_STATS
if
(
!
cpi
->
dummy_packing
)
++
tree_update_hist
[
i
][
j
][
k
][
l
][
t
][
u
];
++
tree_update_hist
[
tx_size
][
i
][
j
][
k
][
l
][
t
][
u
];
#endif
if
(
u
)
{
/* send/use new probability */
...
...
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