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
Xiph.Org
aom-rav1e
Commits
edd457a4
Commit
edd457a4
authored
Apr 03, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Apr 03, 2014
Browse files
Merge "Making frame_branch_ct a local array."
parents
94e08299
db85ea21
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_bitstream.c
View file @
edd457a4
...
...
@@ -484,12 +484,12 @@ static void write_modes(VP9_COMP *cpi,
}
}
static
void
build_tree_distribution
(
VP9_COMP
*
cpi
,
TX_SIZE
tx_size
)
{
static
void
build_tree_distribution
(
VP9_COMP
*
cpi
,
TX_SIZE
tx_size
,
vp9_coeff_stats
*
coef_branch_ct
)
{
vp9_coeff_probs_model
*
coef_probs
=
cpi
->
frame_coef_probs
[
tx_size
];
vp9_coeff_count
*
coef_counts
=
cpi
->
coef_counts
[
tx_size
];
unsigned
int
(
*
eob_branch_ct
)[
REF_TYPES
][
COEF_BANDS
][
COEFF_CONTEXTS
]
=
cpi
->
common
.
counts
.
eob_branch
[
tx_size
];
vp9_coeff_stats
*
coef_branch_ct
=
cpi
->
frame_branch_ct
[
tx_size
];
int
i
,
j
,
k
,
l
,
m
;
for
(
i
=
0
;
i
<
PLANE_TYPES
;
++
i
)
{
...
...
@@ -512,11 +512,11 @@ static void build_tree_distribution(VP9_COMP *cpi, TX_SIZE tx_size) {
}
static
void
update_coef_probs_common
(
vp9_writer
*
const
bc
,
VP9_COMP
*
cpi
,
TX_SIZE
tx_size
)
{
TX_SIZE
tx_size
,
vp9_coeff_stats
*
frame_branch_ct
)
{
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
];
vp9_coeff_stats
*
frame_branch_ct
=
cpi
->
frame_branch_ct
[
tx_size
];
const
vp9_prob
upd
=
DIFF_UPDATE_PROB
;
const
int
entropy_nodes_update
=
UNCONSTRAINED_NODES
;
int
i
,
j
,
k
,
l
,
t
;
...
...
@@ -669,13 +669,15 @@ static void update_coef_probs(VP9_COMP *cpi, vp9_writer* w) {
const
TX_MODE
tx_mode
=
cpi
->
common
.
tx_mode
;
const
TX_SIZE
max_tx_size
=
tx_mode_to_biggest_tx_size
[
tx_mode
];
TX_SIZE
tx_size
;
vp9_coeff_stats
frame_branch_ct
[
TX_SIZES
][
PLANE_TYPES
];
vp9_clear_system_state
();
for
(
tx_size
=
TX_4X4
;
tx_size
<=
TX_32X32
;
++
tx_size
)
build_tree_distribution
(
cpi
,
tx_size
);
build_tree_distribution
(
cpi
,
tx_size
,
frame_branch_ct
[
tx_size
]
);
for
(
tx_size
=
TX_4X4
;
tx_size
<=
max_tx_size
;
++
tx_size
)
update_coef_probs_common
(
w
,
cpi
,
tx_size
);
update_coef_probs_common
(
w
,
cpi
,
tx_size
,
frame_branch_ct
[
tx_size
]
);
}
static
void
encode_loopfilter
(
struct
loopfilter
*
lf
,
...
...
vp9/encoder/vp9_onyx_int.h
View file @
edd457a4
...
...
@@ -385,7 +385,6 @@ typedef struct VP9_COMP {
vp9_coeff_count
coef_counts
[
TX_SIZES
][
PLANE_TYPES
];
vp9_coeff_probs_model
frame_coef_probs
[
TX_SIZES
][
PLANE_TYPES
];
vp9_coeff_stats
frame_branch_ct
[
TX_SIZES
][
PLANE_TYPES
];
struct
vpx_codec_pkt_list
*
output_pkt_list
;
...
...
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