Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
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
d9d7040e
Commit
d9d7040e
authored
Oct 09, 2013
by
Dmitry Kovalev
Browse files
Adding const to several pointers.
Change-Id: I7231589bda71d0d23c730283febd5bb58585a0da
parent
80f21519
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_entropy.c
View file @
d9d7040e
...
...
@@ -657,10 +657,10 @@ void vp9_coef_tree_initialize() {
static
void
adapt_coef_probs
(
VP9_COMMON
*
cm
,
TX_SIZE
tx_size
,
unsigned
int
count_sat
,
unsigned
int
update_factor
)
{
FRAME_CONTEXT
*
pre_fc
=
&
cm
->
frame_contexts
[
cm
->
frame_context_idx
];
const
FRAME_CONTEXT
*
pre_fc
=
&
cm
->
frame_contexts
[
cm
->
frame_context_idx
];
vp9_coeff_probs_model
*
dst_coef_probs
=
cm
->
fc
.
coef_probs
[
tx_size
];
vp9_coeff_probs_model
*
pre_coef_probs
=
pre_fc
->
coef_probs
[
tx_size
];
const
vp9_coeff_probs_model
*
pre_coef_probs
=
pre_fc
->
coef_probs
[
tx_size
];
vp9_coeff_count_model
*
coef_counts
=
cm
->
counts
.
coef
[
tx_size
];
unsigned
int
(
*
eob_branch_count
)[
REF_TYPES
][
COEF_BANDS
][
PREV_COEF_CONTEXTS
]
=
cm
->
counts
.
eob_branch
[
tx_size
];
...
...
vp9/common/vp9_entropymv.c
View file @
d9d7040e
...
...
@@ -214,11 +214,11 @@ static unsigned int adapt_probs(unsigned int i,
void
vp9_adapt_mv_probs
(
VP9_COMMON
*
cm
,
int
allow_hp
)
{
int
i
,
j
;
FRAME_CONTEXT
*
pre_fc
=
&
cm
->
frame_contexts
[
cm
->
frame_context_idx
];
const
FRAME_CONTEXT
*
pre_fc
=
&
cm
->
frame_contexts
[
cm
->
frame_context_idx
];
nmv_context
*
ctx
=
&
cm
->
fc
.
nmvc
;
nmv_context
*
pre_ctx
=
&
pre_fc
->
nmvc
;
nmv_context_counts
*
cts
=
&
cm
->
counts
.
mv
;
const
nmv_context
*
pre_ctx
=
&
pre_fc
->
nmvc
;
const
nmv_context_counts
*
cts
=
&
cm
->
counts
.
mv
;
adapt_probs
(
0
,
vp9_mv_joint_tree
,
ctx
->
joints
,
pre_ctx
->
joints
,
cts
->
joints
);
...
...
Write
Preview
Supports
Markdown
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