Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
81b22c5a
Commit
81b22c5a
authored
Aug 23, 2009
by
Jean-Baptiste Kempf
Browse files
Visual: kill signedness warnings
parent
70ebb630
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/visualization/visual/effects.c
View file @
81b22c5a
...
...
@@ -799,15 +799,14 @@ int scope_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
aout_buffer_t
*
p_buffer
,
picture_t
*
p_picture
)
{
VLC_UNUSED
(
p_aout
);
int
i_index
;
float
*
p_sample
;
uint8_t
*
ppp_area
[
2
][
3
];
for
(
i_index
=
0
;
i_index
<
2
;
i_index
++
)
{
int
j
;
for
(
j
=
0
;
j
<
3
;
j
++
)
for
(
int
j
=
0
;
j
<
3
;
j
++
)
{
ppp_area
[
i_index
][
j
]
=
p_picture
->
p
[
j
].
p_pixels
+
i_index
*
p_picture
->
p
[
j
].
i_lines
...
...
@@ -816,7 +815,7 @@ int scope_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
}
for
(
i_index
=
0
,
p_sample
=
(
float
*
)
p_buffer
->
p_buffer
;
i_index
<
__MIN
(
p_effect
->
i_width
,
p_buffer
->
i_nb_samples
);
i_index
<
__MIN
(
p_effect
->
i_width
,
(
int
)
p_buffer
->
i_nb_samples
);
i_index
++
)
{
uint8_t
i_value
;
...
...
@@ -857,12 +856,12 @@ int vuMeter_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
aout_buffer_t
*
p_buffer
,
picture_t
*
p_picture
)
{
VLC_UNUSED
(
p_aout
);
int
i
,
j
;
int
j
;
float
i_value_l
=
0
;
float
i_value_r
=
0
;
/* Compute the peack values */
for
(
i
=
0
;
i
<
p_buffer
->
i_nb_samples
;
i
++
)
for
(
unsigned
i
=
0
;
i
<
p_buffer
->
i_nb_samples
;
i
++
)
{
const
float
*
p_sample
=
(
float
*
)
p_buffer
->
p_buffer
;
float
ch
;
...
...
@@ -925,7 +924,7 @@ int vuMeter_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
teta_grad
=
GRAD_ANGLE_MIN
;
for
(
teta
=
-
M_PI_4
;
teta
<=
M_PI_4
;
teta
=
teta
+
0
.
003
)
{
for
(
i
=
140
;
i
<=
150
;
i
++
)
for
(
unsigned
i
=
140
;
i
<=
150
;
i
++
)
{
y
=
i
*
cos
(
teta
)
+
20
;
x
=
i
*
sin
(
teta
)
+
150
+
240
*
j
;
...
...
@@ -949,7 +948,7 @@ int vuMeter_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
/* Draw the two hands */
teta
=
(
float
)
i_value
[
j
]
/
200
-
M_PI_4
;
for
(
i
=
0
;
i
<=
150
;
i
++
)
for
(
int
i
=
0
;
i
<=
150
;
i
++
)
{
y
=
i
*
cos
(
teta
)
+
20
;
x
=
i
*
sin
(
teta
)
+
150
+
240
*
j
;
...
...
@@ -967,7 +966,7 @@ int vuMeter_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
/* Draw the hand bases */
for
(
teta
=
-
M_PI_2
;
teta
<=
M_PI_2
+
0
.
01
;
teta
=
teta
+
0
.
003
)
{
for
(
i
=
0
;
i
<
10
;
i
++
)
for
(
int
i
=
0
;
i
<
10
;
i
++
)
{
y
=
i
*
cos
(
teta
)
+
20
;
x
=
i
*
sin
(
teta
)
+
150
+
240
*
j
;
...
...
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