Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
43e979db
Commit
43e979db
authored
11 years ago
by
Dmitry Kovalev
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Adding const to function arguments."
parents
7fa14f42
c64e2383
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vp9/common/vp9_entropymode.c
+11
-9
vp9/common/vp9_entropymode.c
vp9/common/vp9_entropymode.h
+3
-3
vp9/common/vp9_entropymode.h
with
14 additions
and
12 deletions
vp9/common/vp9_entropymode.c
+
11
−
9
View file @
43e979db
...
...
@@ -286,7 +286,7 @@ static const struct tx_probs default_tx_probs = {
{
66
}
}
};
void
tx_counts_to_branch_counts_32x32
(
unsigned
int
*
tx_count_32x32p
,
void
tx_counts_to_branch_counts_32x32
(
const
unsigned
int
*
tx_count_32x32p
,
unsigned
int
(
*
ct_32x32p
)[
2
])
{
ct_32x32p
[
0
][
0
]
=
tx_count_32x32p
[
TX_4X4
];
ct_32x32p
[
0
][
1
]
=
tx_count_32x32p
[
TX_8X8
]
+
...
...
@@ -299,7 +299,7 @@ void tx_counts_to_branch_counts_32x32(unsigned int *tx_count_32x32p,
ct_32x32p
[
2
][
1
]
=
tx_count_32x32p
[
TX_32X32
];
}
void
tx_counts_to_branch_counts_16x16
(
unsigned
int
*
tx_count_16x16p
,
void
tx_counts_to_branch_counts_16x16
(
const
unsigned
int
*
tx_count_16x16p
,
unsigned
int
(
*
ct_16x16p
)[
2
])
{
ct_16x16p
[
0
][
0
]
=
tx_count_16x16p
[
TX_4X4
];
ct_16x16p
[
0
][
1
]
=
tx_count_16x16p
[
TX_8X8
]
+
tx_count_16x16p
[
TX_16X16
];
...
...
@@ -307,7 +307,7 @@ void tx_counts_to_branch_counts_16x16(unsigned int *tx_count_16x16p,
ct_16x16p
[
1
][
1
]
=
tx_count_16x16p
[
TX_16X16
];
}
void
tx_counts_to_branch_counts_8x8
(
unsigned
int
*
tx_count_8x8p
,
void
tx_counts_to_branch_counts_8x8
(
const
unsigned
int
*
tx_count_8x8p
,
unsigned
int
(
*
ct_8x8p
)[
2
])
{
ct_8x8p
[
0
][
0
]
=
tx_count_8x8p
[
TX_4X4
];
ct_8x8p
[
0
][
1
]
=
tx_count_8x8p
[
TX_8X8
];
...
...
@@ -356,17 +356,19 @@ void vp9_entropy_mode_init() {
#define COUNT_SAT 20
#define MAX_UPDATE_FACTOR 128
static
int
update_ct
(
vp9_prob
pre_prob
,
vp9_prob
prob
,
unsigned
int
ct
[
2
])
{
static
int
update_ct
(
vp9_prob
pre_prob
,
vp9_prob
prob
,
const
unsigned
int
ct
[
2
])
{
return
merge_probs
(
pre_prob
,
prob
,
ct
,
COUNT_SAT
,
MAX_UPDATE_FACTOR
);
}
static
int
update_ct2
(
vp9_prob
pre_prob
,
unsigned
int
ct
[
2
])
{
static
int
update_ct2
(
vp9_prob
pre_prob
,
const
unsigned
int
ct
[
2
])
{
return
merge_probs2
(
pre_prob
,
ct
,
COUNT_SAT
,
MAX_UPDATE_FACTOR
);
}
static
void
update_mode_probs
(
int
n_modes
,
const
vp9_tree_index
*
tree
,
unsigned
int
*
cnt
,
vp9_prob
*
pre_probs
,
vp9_prob
*
dst_probs
,
const
vp9_tree_index
*
tree
,
const
unsigned
int
*
cnt
,
const
vp9_prob
*
pre_probs
,
vp9_prob
*
dst_probs
,
unsigned
int
tok0_offset
)
{
#define MAX_PROBS 32
vp9_prob
probs
[
MAX_PROBS
];
...
...
@@ -382,8 +384,8 @@ static void update_mode_probs(int n_modes,
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
];
FRAME_COUNTS
*
counts
=
&
cm
->
counts
;
const
FRAME_CONTEXT
*
pre_fc
=
&
cm
->
frame_contexts
[
cm
->
frame_context_idx
];
const
FRAME_COUNTS
*
counts
=
&
cm
->
counts
;
for
(
i
=
0
;
i
<
INTRA_INTER_CONTEXTS
;
i
++
)
fc
->
intra_inter_prob
[
i
]
=
update_ct2
(
pre_fc
->
intra_inter_prob
[
i
],
...
...
This diff is collapsed.
Click to expand it.
vp9/common/vp9_entropymode.h
+
3
−
3
View file @
43e979db
...
...
@@ -61,11 +61,11 @@ void vp9_init_mbmode_probs(struct VP9Common *cm);
void
vp9_adapt_mode_probs
(
struct
VP9Common
*
cm
);
void
tx_counts_to_branch_counts_32x32
(
unsigned
int
*
tx_count_32x32p
,
void
tx_counts_to_branch_counts_32x32
(
const
unsigned
int
*
tx_count_32x32p
,
unsigned
int
(
*
ct_32x32p
)[
2
]);
void
tx_counts_to_branch_counts_16x16
(
unsigned
int
*
tx_count_16x16p
,
void
tx_counts_to_branch_counts_16x16
(
const
unsigned
int
*
tx_count_16x16p
,
unsigned
int
(
*
ct_16x16p
)[
2
]);
void
tx_counts_to_branch_counts_8x8
(
unsigned
int
*
tx_count_8x8p
,
void
tx_counts_to_branch_counts_8x8
(
const
unsigned
int
*
tx_count_8x8p
,
unsigned
int
(
*
ct_8x8p
)[
2
]);
#endif // VP9_COMMON_VP9_ENTROPYMODE_H_
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets