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
de00c163
Commit
de00c163
authored
Nov 04, 2015
by
Jingning Han
Committed by
Gerrit Code Review
Nov 04, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Simplify txfm rate-distortion optimization" into nextgenv2
parents
4aafd018
493d0234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
18 deletions
+7
-18
vp10/encoder/rdopt.c
vp10/encoder/rdopt.c
+7
-18
No files found.
vp10/encoder/rdopt.c
View file @
de00c163
...
...
@@ -1948,6 +1948,9 @@ static void select_tx_type_yrd(const VP10_COMP *cpi, MACROBLOCK *x,
int
s0
=
vp10_cost_bit
(
skip_prob
,
0
);
int
s1
=
vp10_cost_bit
(
skip_prob
,
1
);
TX_SIZE
best_tx_size
[
64
];
TX_SIZE
best_tx
=
TX_SIZES
;
uint8_t
best_blk_skip
[
256
];
const
int
n4
=
1
<<
(
num_pels_log2_lookup
[
bsize
]
-
4
);
int
idx
,
idy
;
*
distortion
=
INT64_MAX
;
...
...
@@ -2017,6 +2020,8 @@ static void select_tx_type_yrd(const VP10_COMP *cpi, MACROBLOCK *x,
*
skippable
=
this_skip
;
*
sse
=
this_sse
;
best_tx_type
=
mbmi
->
tx_type
;
best_tx
=
mbmi
->
tx_size
;
memcpy
(
best_blk_skip
,
x
->
blk_skip
[
0
],
sizeof
(
best_blk_skip
[
0
])
*
n4
);
for
(
idy
=
0
;
idy
<
xd
->
n8_h
;
++
idy
)
for
(
idx
=
0
;
idx
<
xd
->
n8_w
;
++
idx
)
best_tx_size
[
idy
*
8
+
idx
]
=
mbmi
->
inter_tx_size
[
idy
*
8
+
idx
];
...
...
@@ -2024,27 +2029,11 @@ static void select_tx_type_yrd(const VP10_COMP *cpi, MACROBLOCK *x,
}
mbmi
->
tx_type
=
best_tx_type
;
for
(
idy
=
0
;
idy
<
xd
->
n8_h
;
++
idy
)
for
(
idx
=
0
;
idx
<
xd
->
n8_w
;
++
idx
)
mbmi
->
inter_tx_size
[
idy
*
8
+
idx
]
=
best_tx_size
[
idy
*
8
+
idx
];
inter_block_yrd
(
cpi
,
x
,
rate
,
distortion
,
skippable
,
sse
,
bsize
,
ref_best_rd
);
if
(
get_ext_tx_types
(
max_tx_size
,
bsize
,
is_inter
)
>
1
&&
!
xd
->
lossless
[
xd
->
mi
[
0
]
->
mbmi
.
segment_id
]
&&
*
rate
!=
INT_MAX
)
{
if
(
is_inter
)
{
if
(
ext_tx_set
>
0
)
*
rate
+=
cpi
->
inter_tx_type_costs
[
ext_tx_set
]
[
max_tx_size
][
mbmi
->
tx_type
];
}
else
{
if
(
ext_tx_set
>
0
)
*
rate
+=
cpi
->
intra_tx_type_costs
[
ext_tx_set
][
max_tx_size
]
[
mbmi
->
mode
][
mbmi
->
tx_type
];
}
}
mbmi
->
tx_size
=
best_tx
;
memcpy
(
x
->
blk_skip
[
0
],
best_blk_skip
,
sizeof
(
best_blk_skip
[
0
])
*
n4
);
}
#endif
...
...
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