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
Xiph.Org
aom-rav1e
Commits
6e6c57da
Commit
6e6c57da
authored
Jul 07, 2015
by
Jingning Han
Committed by
Gerrit Code Review
Jul 07, 2015
Browse files
Merge "Reduce dqcoeff array size in decoder"
parents
1acdd04d
cccad1c5
Changes
3
Show whitespace changes
Inline
Side-by-side
vp9/common/vp9_blockd.h
View file @
6e6c57da
...
@@ -188,8 +188,11 @@ typedef struct macroblockd {
...
@@ -188,8 +188,11 @@ typedef struct macroblockd {
#endif
#endif
/* dqcoeff are shared by all the planes. So planes must be decoded serially */
/* dqcoeff are shared by all the planes. So planes must be decoded serially */
#if CONFIG_VP9_ENCODER
DECLARE_ALIGNED
(
16
,
tran_low_t
,
dqcoeff
[
64
*
64
]);
DECLARE_ALIGNED
(
16
,
tran_low_t
,
dqcoeff
[
64
*
64
]);
#else
DECLARE_ALIGNED
(
16
,
tran_low_t
,
dqcoeff
[
32
*
32
]);
#endif
int
lossless
;
int
lossless
;
int
corrupted
;
int
corrupted
;
...
...
vp9/decoder/vp9_decodeframe.c
View file @
6e6c57da
...
@@ -188,7 +188,7 @@ static void inverse_transform_block(MACROBLOCKD* xd, int plane, int block,
...
@@ -188,7 +188,7 @@ static void inverse_transform_block(MACROBLOCKD* xd, int plane, int block,
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
if
(
eob
>
0
)
{
if
(
eob
>
0
)
{
TX_TYPE
tx_type
=
DCT_DCT
;
TX_TYPE
tx_type
=
DCT_DCT
;
tran_low_t
*
const
dqcoeff
=
BLOCK_OFFSET
(
pd
->
dqcoeff
,
block
)
;
tran_low_t
*
const
dqcoeff
=
pd
->
dqcoeff
;
#if CONFIG_VP9_HIGHBITDEPTH
#if CONFIG_VP9_HIGHBITDEPTH
if
(
xd
->
cur_buf
->
flags
&
YV12_FLAG_HIGHBITDEPTH
)
{
if
(
xd
->
cur_buf
->
flags
&
YV12_FLAG_HIGHBITDEPTH
)
{
if
(
xd
->
lossless
)
{
if
(
xd
->
lossless
)
{
...
...
vp9/decoder/vp9_detokenize.c
View file @
6e6c57da
...
@@ -217,7 +217,7 @@ int vp9_decode_block_tokens(MACROBLOCKD *xd,
...
@@ -217,7 +217,7 @@ int vp9_decode_block_tokens(MACROBLOCKD *xd,
pd
->
left_context
+
y
);
pd
->
left_context
+
y
);
const
scan_order
*
so
=
get_scan
(
xd
,
tx_size
,
pd
->
plane_type
,
block
);
const
scan_order
*
so
=
get_scan
(
xd
,
tx_size
,
pd
->
plane_type
,
block
);
const
int
eob
=
decode_coefs
(
xd
,
pd
->
plane_type
,
const
int
eob
=
decode_coefs
(
xd
,
pd
->
plane_type
,
BLOCK_OFFSET
(
pd
->
dqcoeff
,
block
),
tx_size
,
pd
->
dqcoeff
,
tx_size
,
dequant
,
ctx
,
so
->
scan
,
so
->
neighbors
,
r
);
dequant
,
ctx
,
so
->
scan
,
so
->
neighbors
,
r
);
vp9_set_contexts
(
xd
,
pd
,
plane_bsize
,
tx_size
,
eob
>
0
,
x
,
y
);
vp9_set_contexts
(
xd
,
pd
,
plane_bsize
,
tx_size
,
eob
>
0
,
x
,
y
);
return
eob
;
return
eob
;
...
...
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