Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
76495617
Commit
76495617
authored
Jun 21, 2011
by
Yaowu Xu
Committed by
Code Review
Jun 21, 2011
Browse files
Merge "adjusting the calculation of errorperbit"
parents
55c3963c
10ed60dc
Changes
2
Show whitespace changes
Inline
Side-by-side
vp8/encoder/encodeframe.c
View file @
76495617
...
...
@@ -335,7 +335,8 @@ void vp8_activity_masking(VP8_COMP *cpi, MACROBLOCK *x)
{
#if USE_ACT_INDEX
x
->
rdmult
+=
*
(
x
->
mb_activity_ptr
)
*
(
x
->
rdmult
>>
2
);
x
->
errorperbit
=
x
->
rdmult
/
x
->
rddiv
;
x
->
errorperbit
=
x
->
rdmult
*
100
/
(
110
*
x
->
rddiv
);
x
->
errorperbit
+=
(
x
->
errorperbit
==
0
);
#else
INT64
a
;
INT64
b
;
...
...
@@ -346,8 +347,8 @@ void vp8_activity_masking(VP8_COMP *cpi, MACROBLOCK *x)
b
=
(
2
*
act
)
+
cpi
->
activity_avg
;
x
->
rdmult
=
(
unsigned
int
)(((
INT64
)
x
->
rdmult
*
b
+
(
a
>>
1
))
/
a
);
x
->
errorperbit
=
x
->
rdmult
/
x
->
rddiv
;
x
->
errorperbit
=
x
->
rdmult
*
100
/
(
110
*
x
->
rddiv
)
;
x
->
errorperbit
+=
(
x
->
errorperbit
==
0
);
#endif
// Activity based Zbin adjustment
...
...
vp8/encoder/rdopt.c
View file @
76495617
...
...
@@ -238,7 +238,7 @@ void vp8_initialize_rd_consts(VP8_COMP *cpi, int Qvalue)
(
cpi
->
RDMULT
*
rd_iifactor
[
cpi
->
twopass
.
next_iiratio
])
>>
4
;
}
cpi
->
mb
.
errorperbit
=
(
cpi
->
RDMULT
/
1
0
0
);
cpi
->
mb
.
errorperbit
=
(
cpi
->
RDMULT
/
1
1
0
);
cpi
->
mb
.
errorperbit
+=
(
cpi
->
mb
.
errorperbit
==
0
);
vp8_set_speed_features
(
cpi
);
...
...
Write
Preview
Supports
Markdown
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