Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
ba71191c
Commit
ba71191c
authored
11 years ago
by
Dmitry Kovalev
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Cleanup of decode_coefs() function."
parents
501a8c6b
942c820d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/decoder/vp9_detokenize.c
+8
-9
8 additions, 9 deletions
vp9/decoder/vp9_detokenize.c
with
8 additions
and
9 deletions
vp9/decoder/vp9_detokenize.c
+
8
−
9
View file @
ba71191c
...
...
@@ -88,22 +88,20 @@ static const vp9_prob cat6_prob[15] = {
static
int
decode_coefs
(
VP9_COMMON
*
cm
,
const
MACROBLOCKD
*
xd
,
vp9_reader
*
r
,
int
block_idx
,
PLANE_TYPE
type
,
int
seg_eob
,
int16_t
*
qcoeff_ptr
,
TX_SIZE
tx_size
,
const
int16_t
*
dq
,
ENTROPY_CONTEXT
*
A
,
ENTROPY_CONTEXT
*
L
)
{
FRAME_CONTEXT
*
const
fc
=
&
cm
->
fc
;
TX_SIZE
tx_size
,
const
int16_t
*
dq
,
int
pt
)
{
const
FRAME_CONTEXT
*
const
fc
=
&
cm
->
fc
;
FRAME_COUNTS
*
const
counts
=
&
cm
->
counts
;
const
int
ref
=
is_inter_block
(
&
xd
->
this_mi
->
mbmi
);
int
band
,
c
=
0
;
vp9_prob
(
*
coef_probs
)[
PREV_COEF_CONTEXTS
][
UNCONSTRAINED_NODES
]
=
const
vp9_prob
(
*
coef_probs
)[
PREV_COEF_CONTEXTS
][
UNCONSTRAINED_NODES
]
=
fc
->
coef_probs
[
tx_size
][
type
][
ref
];
vp9_prob
coef_probs_full
[
COEF_BANDS
][
PREV_COEF_CONTEXTS
][
ENTROPY_NODES
];
uint8_t
load_map
[
COEF_BANDS
][
PREV_COEF_CONTEXTS
]
=
{
{
0
}
};
vp9_prob
*
prob
;
const
vp9_prob
*
prob
;
vp9_coeff_count_model
*
coef_counts
=
counts
->
coef
[
tx_size
];
const
int16_t
*
scan
,
*
nb
;
const
uint8_t
*
band_translate
;
uint8_t
token_cache
[
1024
];
int
pt
=
get_entropy_context
(
tx_size
,
A
,
L
);
get_scan_and_band
(
xd
,
tx_size
,
type
,
block_idx
,
&
scan
,
&
nb
,
&
band_translate
);
while
(
1
)
{
...
...
@@ -222,14 +220,15 @@ static void decode_block(int plane, int block, BLOCK_SIZE plane_bsize,
struct
macroblockd_plane
*
pd
=
&
xd
->
plane
[
plane
];
const
int
segment_id
=
xd
->
this_mi
->
mbmi
.
segment_id
;
const
int
seg_eob
=
get_tx_eob
(
seg
,
segment_id
,
tx_size
);
int
aoff
,
loff
,
eob
;
int
aoff
,
loff
,
eob
,
pt
;
txfrm_block_to_raster_xy
(
plane_bsize
,
tx_size
,
block
,
&
aoff
,
&
loff
);
pt
=
get_entropy_context
(
tx_size
,
pd
->
above_context
+
aoff
,
pd
->
left_context
+
loff
);
eob
=
decode_coefs
(
&
arg
->
pbi
->
common
,
xd
,
arg
->
r
,
block
,
pd
->
plane_type
,
seg_eob
,
BLOCK_OFFSET
(
pd
->
qcoeff
,
block
),
tx_size
,
pd
->
dequant
,
pd
->
above_context
+
aoff
,
pd
->
left_context
+
loff
);
tx_size
,
pd
->
dequant
,
pt
);
set_contexts
(
xd
,
pd
,
plane_bsize
,
tx_size
,
eob
>
0
,
aoff
,
loff
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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