Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
0d2abe30
Commit
0d2abe30
authored
13 years ago
by
Adrian Grange
Committed by
Code Review
13 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix usage of value returned by vp8_pick_intra4x4mby_modes"
parents
1312a7a2
8608de1c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp8/encoder/pickinter.c
+9
-4
9 additions, 4 deletions
vp8/encoder/pickinter.c
with
9 additions
and
4 deletions
vp8/encoder/pickinter.c
+
9
−
4
View file @
0d2abe30
...
...
@@ -642,10 +642,10 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int re
switch
(
this_mode
)
{
case
B_PRED
:
distortion2
=
*
returndistortion
;
//
B
est so far
passed in as breakout value
to vp8_pick_intra4x4mby_modes
vp8_pick_intra4x4mby_modes
(
IF_RTCD
(
&
cpi
->
rtcd
),
x
,
&
rate
,
&
distortion
2
)
;
rate2
+=
rate
;
distortion2
=
VARIANCE_INVOKE
(
&
cpi
->
rtcd
.
variance
,
get16x16prederror
)(
x
->
src
.
y_buffer
,
x
->
src
.
y_stride
,
x
->
e_mbd
.
pre
di
c
tor
,
16
,
0x7fffffff
);
//
Pass b
est so far to vp8_pick_intra4x4mby_modes
to use as breakout
distortion2
=
*
return
distortion
;
vp8_pick_intra4x4mby_modes
(
IF_RTCD
(
&
cpi
->
rtcd
),
x
,
&
rate
,
&
di
s
tor
tion2
);
if
(
distortion2
==
INT_MAX
)
{
...
...
@@ -653,6 +653,11 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int re
}
else
{
rate2
+=
rate
;
distortion2
=
VARIANCE_INVOKE
(
&
cpi
->
rtcd
.
variance
,
get16x16prederror
)(
x
->
src
.
y_buffer
,
x
->
src
.
y_stride
,
x
->
e_mbd
.
predictor
,
16
,
0x7fffffff
);
this_rd
=
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
rate2
,
distortion2
);
if
(
this_rd
<
best_intra_rd
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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