Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
b5c45201
Commit
b5c45201
authored
Nov 18, 2013
by
Dmitry Kovalev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calculating dst pointer only once per transform block.
Change-Id: I23fea0a2e85be8373600e3e2dae98d36acde389c
parent
220af9ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
vp9/decoder/vp9_decodeframe.c
vp9/decoder/vp9_decodeframe.c
+6
-7
No files found.
vp9/decoder/vp9_decodeframe.c
View file @
b5c45201
...
...
@@ -241,16 +241,13 @@ static void alloc_tile_storage(VP9D_COMP *pbi, int tile_rows, int tile_cols) {
}
static
void
inverse_transform_block
(
MACROBLOCKD
*
xd
,
int
plane
,
int
block
,
TX_SIZE
tx_size
,
int
x
,
int
y
)
{
TX_SIZE
tx_size
,
uint8_t
*
dst
,
int
stride
)
{
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
const
int
eob
=
pd
->
eobs
[
block
];
if
(
eob
>
0
)
{
TX_TYPE
tx_type
;
const
int
plane_type
=
pd
->
plane_type
;
const
int
stride
=
pd
->
dst
.
stride
;
int16_t
*
const
dqcoeff
=
BLOCK_OFFSET
(
pd
->
dqcoeff
,
block
);
uint8_t
*
const
dst
=
&
pd
->
dst
.
buf
[
4
*
y
*
stride
+
4
*
x
];
switch
(
tx_size
)
{
case
TX_4X4
:
tx_type
=
get_tx_type_4x4
(
plane_type
,
xd
,
block
);
...
...
@@ -322,7 +319,7 @@ static void predict_and_reconstruct_intra_block(int plane, int block,
if
(
!
mi
->
mbmi
.
skip_coeff
)
{
vp9_decode_block_tokens
(
cm
,
xd
,
plane
,
block
,
plane_bsize
,
x
,
y
,
tx_size
,
args
->
r
,
args
->
token_cache
);
inverse_transform_block
(
xd
,
plane
,
block
,
tx_size
,
x
,
y
);
inverse_transform_block
(
xd
,
plane
,
block
,
tx_size
,
dst
,
pd
->
dst
.
stride
);
}
}
...
...
@@ -340,13 +337,15 @@ static void reconstruct_inter_block(int plane, int block,
struct
inter_args
*
args
=
arg
;
VP9_COMMON
*
const
cm
=
args
->
cm
;
MACROBLOCKD
*
const
xd
=
args
->
xd
;
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
int
x
,
y
;
txfrm_block_to_raster_xy
(
plane_bsize
,
tx_size
,
block
,
&
x
,
&
y
);
*
args
->
eobtotal
+=
vp9_decode_block_tokens
(
cm
,
xd
,
plane
,
block
,
plane_bsize
,
x
,
y
,
tx_size
,
args
->
r
,
args
->
token_cache
);
inverse_transform_block
(
xd
,
plane
,
block
,
tx_size
,
x
,
y
);
inverse_transform_block
(
xd
,
plane
,
block
,
tx_size
,
&
pd
->
dst
.
buf
[
4
*
y
*
pd
->
dst
.
stride
+
4
*
x
],
pd
->
dst
.
stride
);
}
static
void
set_offsets
(
VP9_COMMON
*
const
cm
,
MACROBLOCKD
*
const
xd
,
...
...
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