Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
81b22c5a
Commit
81b22c5a
authored
Aug 23, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Visual: kill signedness warnings
parent
70ebb630
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
modules/visualization/visual/effects.c
modules/visualization/visual/effects.c
+8
-9
No files found.
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
(
i
nt
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
(
i
nt
i
=
0
;
i
<
10
;
i
++
)
{
y
=
i
*
cos
(
teta
)
+
20
;
x
=
i
*
sin
(
teta
)
+
150
+
240
*
j
;
...
...
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