Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
0f68789c
Commit
0f68789c
authored
Apr 30, 2012
by
Ronald S. Bultje
Browse files
Fix inversion of probability and value in calls to vp8_cost_bit().
Change-Id: I9f1686249ac812f7b9b872eabe3970d1dfb25e56
parent
c0d59513
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp8/encoder/rdopt.c
View file @
0f68789c
...
...
@@ -2597,19 +2597,19 @@ void vp8_estimate_ref_frame_costs(VP8_COMP *cpi, unsigned int * ref_costs )
if
(
!
pred_flag
)
{
if
(
mod_refprobs
[
0
]
)
cost
+=
vp8_cost_bit
(
(
i
!=
INTRA_FRAME
)
,
mod_refprobs
[
0
]
);
cost
+=
vp8_cost_bit
(
mod_refprobs
[
0
],
(
i
!=
INTRA_FRAME
)
);
// Inter coded
if
(
i
!=
INTRA_FRAME
)
{
if
(
mod_refprobs
[
1
]
)
cost
+=
vp8_cost_bit
(
(
i
!=
LAST_FRAME
)
,
mod_refprobs
[
1
]
);
cost
+=
vp8_cost_bit
(
mod_refprobs
[
1
],
(
i
!=
LAST_FRAME
)
);
if
(
i
!=
LAST_FRAME
)
{
if
(
mod_refprobs
[
2
]
)
cost
+=
vp8_cost_bit
(
(
i
!=
GOLDEN_FRAME
)
,
mod_refprobs
[
2
]
);
cost
+=
vp8_cost_bit
(
mod_refprobs
[
2
]
,
(
i
!=
GOLDEN_FRAME
)
);
}
}
}
...
...
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