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
34ddb7ab
Commit
34ddb7ab
authored
Sep 09, 2016
by
Yaowu Xu
Committed by
Gerrit Code Review
Sep 09, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge "change to use correct type" into nextgenv2
parents
8e80f422
57d92577
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
av1/encoder/subexp.c
av1/encoder/subexp.c
+5
-4
No files found.
av1/encoder/subexp.c
View file @
34ddb7ab
...
...
@@ -117,15 +117,16 @@ void av1_write_prob_diff_update(aom_writer *w, aom_prob newp, aom_prob oldp) {
int
av1_prob_diff_update_savings_search
(
const
unsigned
int
*
ct
,
aom_prob
oldp
,
aom_prob
*
bestp
,
aom_prob
upd
)
{
const
in
t
old_b
=
cost_branch256
(
ct
,
oldp
);
const
uint32_
t
old_b
=
cost_branch256
(
ct
,
oldp
);
int
bestsavings
=
0
;
aom_prob
newp
,
bestnewp
=
oldp
;
const
int
step
=
*
bestp
>
oldp
?
-
1
:
1
;
for
(
newp
=
*
bestp
;
newp
!=
oldp
;
newp
+=
step
)
{
const
int
new_b
=
cost_branch256
(
ct
,
newp
);
const
int
update_b
=
prob_diff_update_cost
(
newp
,
oldp
)
+
av1_cost_upd256
;
const
int
savings
=
old_b
-
new_b
-
update_b
;
const
uint32_t
new_b
=
cost_branch256
(
ct
,
newp
);
const
uint32_t
update_b
=
prob_diff_update_cost
(
newp
,
oldp
)
+
av1_cost_upd256
;
const
int
savings
=
(
int
)((
int64_t
)
old_b
-
new_b
-
update_b
);
if
(
savings
>
bestsavings
)
{
bestsavings
=
savings
;
bestnewp
=
newp
;
...
...
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