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
5771276f
Commit
5771276f
authored
11 years ago
by
Dmitry Kovalev
Browse files
Options
Download
Patches
Plain Diff
Moving get_scan() call out of decode_coeffs() function.
Change-Id: I5db2e5a6c36e6c503dea2e07d9d2e0daf4ac9d89
parent
ed2fba2a
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
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/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
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/decoder/vp9_detokenize.c
+7
-8
vp9/decoder/vp9_detokenize.c
with
7 additions
and
8 deletions
vp9/decoder/vp9_detokenize.c
+
7
−
8
View file @
5771276f
...
@@ -79,9 +79,10 @@ static const vp9_prob cat6_prob[15] = {
...
@@ -79,9 +79,10 @@ static const vp9_prob cat6_prob[15] = {
val += (vp9_read(r, prob) << bits_count); \
val += (vp9_read(r, prob) << bits_count); \
} while (0)
} while (0)
static
int
decode_coefs
(
VP9_COMMON
*
cm
,
const
MACROBLOCKD
*
xd
,
int
block
,
static
int
decode_coefs
(
VP9_COMMON
*
cm
,
const
MACROBLOCKD
*
xd
,
PLANE_TYPE
type
,
PLANE_TYPE
type
,
int16_t
*
dqcoeff
,
TX_SIZE
tx_size
,
int16_t
*
dqcoeff
,
TX_SIZE
tx_size
,
const
int16_t
*
dq
,
const
int16_t
*
dq
,
int
ctx
,
vp9_reader
*
r
)
{
int
ctx
,
const
int16_t
*
scan
,
const
int16_t
*
nb
,
vp9_reader
*
r
)
{
const
int
max_eob
=
16
<<
(
tx_size
<<
1
);
const
int
max_eob
=
16
<<
(
tx_size
<<
1
);
const
FRAME_CONTEXT
*
const
fc
=
&
cm
->
fc
;
const
FRAME_CONTEXT
*
const
fc
=
&
cm
->
fc
;
FRAME_COUNTS
*
const
counts
=
&
cm
->
counts
;
FRAME_COUNTS
*
const
counts
=
&
cm
->
counts
;
...
@@ -98,9 +99,6 @@ static int decode_coefs(VP9_COMMON *cm, const MACROBLOCKD *xd, int block,
...
@@ -98,9 +99,6 @@ static int decode_coefs(VP9_COMMON *cm, const MACROBLOCKD *xd, int block,
const
uint8_t
*
cat6
;
const
uint8_t
*
cat6
;
const
uint8_t
*
band_translate
=
get_band_translate
(
tx_size
);
const
uint8_t
*
band_translate
=
get_band_translate
(
tx_size
);
const
int
dq_shift
=
(
tx_size
==
TX_32X32
);
const
int
dq_shift
=
(
tx_size
==
TX_32X32
);
const
scan_order
*
so
=
get_scan
(
xd
,
tx_size
,
type
,
block
);
const
int16_t
*
scan
=
so
->
scan
;
const
int16_t
*
nb
=
so
->
neighbors
;
int
v
;
int
v
;
int16_t
dqv
=
dq
[
0
];
int16_t
dqv
=
dq
[
0
];
...
@@ -202,9 +200,10 @@ int vp9_decode_block_tokens(VP9_COMMON *cm, MACROBLOCKD *xd,
...
@@ -202,9 +200,10 @@ int vp9_decode_block_tokens(VP9_COMMON *cm, MACROBLOCKD *xd,
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
const
int
ctx
=
get_entropy_context
(
tx_size
,
pd
->
above_context
+
x
,
const
int
ctx
=
get_entropy_context
(
tx_size
,
pd
->
above_context
+
x
,
pd
->
left_context
+
y
);
pd
->
left_context
+
y
);
const
int
eob
=
decode_coefs
(
cm
,
xd
,
block
,
pd
->
plane_type
,
const
scan_order
*
so
=
get_scan
(
xd
,
tx_size
,
pd
->
plane_type
,
block
);
const
int
eob
=
decode_coefs
(
cm
,
xd
,
pd
->
plane_type
,
BLOCK_OFFSET
(
pd
->
dqcoeff
,
block
),
tx_size
,
BLOCK_OFFSET
(
pd
->
dqcoeff
,
block
),
tx_size
,
pd
->
dequant
,
ctx
,
r
);
pd
->
dequant
,
ctx
,
so
->
scan
,
so
->
neighbors
,
r
);
set_contexts
(
xd
,
pd
,
plane_bsize
,
tx_size
,
eob
>
0
,
x
,
y
);
set_contexts
(
xd
,
pd
,
plane_bsize
,
tx_size
,
eob
>
0
,
x
,
y
);
return
eob
;
return
eob
;
}
}
...
...
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