Skip to content
GitLab
Projects
Groups
Snippets
/
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
a60b76bd
Commit
a60b76bd
authored
Feb 14, 2014
by
Jim Bankoski
Browse files
vp9_vaq.c resolve vs warnings
Change-Id: I8f1107a33f0ec51010fb00eae3d28ee8b4d748c2
parent
fb4f10a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_vaq.c
View file @
a60b76bd
...
...
@@ -75,9 +75,9 @@ void vp9_vaq_init() {
void
vp9_vaq_frame_setup
(
VP9_COMP
*
cpi
)
{
VP9_COMMON
*
cm
=
&
cpi
->
common
;
struct
segmentation
*
seg
=
&
cm
->
seg
;
int
base_q
=
vp9_convert_qindex_to_q
(
cm
->
base_qindex
);
int
base_rdmult
=
vp9_compute_rd_mult
(
cpi
,
cm
->
base_qindex
+
cm
->
y_dc_delta_q
);
const
double
base_q
=
vp9_convert_qindex_to_q
(
cm
->
base_qindex
);
const
int
base_rdmult
=
vp9_compute_rd_mult
(
cpi
,
cm
->
base_qindex
+
cm
->
y_dc_delta_q
);
int
i
;
if
(
cm
->
frame_type
==
KEY_FRAME
||
...
...
@@ -143,9 +143,6 @@ int vp9_block_energy(VP9_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bs) {
vp9_clear_system_state
();
// __asm emms;
// if (var <= 1000)
// return 0;
energy
=
0
.
9
*
(
logf
(
var
+
1
)
-
10
.
0
);
energy
=
0
.
9
*
(
log
(
var
+
1
.
0
)
-
10
.
0
);
return
clamp
(
round
(
energy
),
ENERGY_MIN
,
ENERGY_MAX
);
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment