Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
93c4f0f8
Commit
93c4f0f8
authored
Apr 15, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Visual: Center the vuMeter.
Close #3534
parent
269e239f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/visualization/visual/effects.c
modules/visualization/visual/effects.c
+8
-7
No files found.
modules/visualization/visual/effects.c
View file @
93c4f0f8
...
@@ -854,7 +854,6 @@ int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
...
@@ -854,7 +854,6 @@ int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
const
block_t
*
p_buffer
,
picture_t
*
p_picture
)
const
block_t
*
p_buffer
,
picture_t
*
p_picture
)
{
{
VLC_UNUSED
(
p_aout
);
VLC_UNUSED
(
p_aout
);
int
j
;
float
i_value_l
=
0
;
float
i_value_l
=
0
;
float
i_value_r
=
0
;
float
i_value_r
=
0
;
...
@@ -911,21 +910,23 @@ int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
...
@@ -911,21 +910,23 @@ int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
i_value
[
1
]
=
i_value
[
1
]
-
6
;
i_value
[
1
]
=
i_value
[
1
]
-
6
;
}
}
int
x
,
y
,
k
;
int
x
,
y
;
float
teta
;
float
teta
;
float
teta_grad
;
float
teta_grad
;
for
(
j
=
0
;
j
<
2
;
j
++
)
int
start_x
=
p_effect
->
i_width
/
2
-
120
;
/* i_width.min = 532 (visual.c) */
for
(
int
j
=
0
;
j
<
2
;
j
++
)
{
{
/* Draw the two scales */
/* Draw the two scales */
k
=
0
;
int
k
=
0
;
teta_grad
=
GRAD_ANGLE_MIN
;
teta_grad
=
GRAD_ANGLE_MIN
;
for
(
teta
=
-
M_PI_4
;
teta
<=
M_PI_4
;
teta
=
teta
+
0
.
003
)
for
(
teta
=
-
M_PI_4
;
teta
<=
M_PI_4
;
teta
=
teta
+
0
.
003
)
{
{
for
(
unsigned
i
=
140
;
i
<=
150
;
i
++
)
for
(
unsigned
i
=
140
;
i
<=
150
;
i
++
)
{
{
y
=
i
*
cos
(
teta
)
+
20
;
y
=
i
*
cos
(
teta
)
+
20
;
x
=
i
*
sin
(
teta
)
+
150
+
240
*
j
;
x
=
i
*
sin
(
teta
)
+
start_x
+
240
*
j
;
/* Compute the last color for the gradation */
/* Compute the last color for the gradation */
if
(
teta
>=
teta_grad
+
GRAD_INCR
&&
teta_grad
<=
GRAD_ANGLE_MAX
)
if
(
teta
>=
teta_grad
+
GRAD_INCR
&&
teta_grad
<=
GRAD_ANGLE_MAX
)
{
{
...
@@ -949,7 +950,7 @@ int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
...
@@ -949,7 +950,7 @@ int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
for
(
int
i
=
0
;
i
<=
150
;
i
++
)
for
(
int
i
=
0
;
i
<=
150
;
i
++
)
{
{
y
=
i
*
cos
(
teta
)
+
20
;
y
=
i
*
cos
(
teta
)
+
20
;
x
=
i
*
sin
(
teta
)
+
150
+
240
*
j
;
x
=
i
*
sin
(
teta
)
+
start_x
+
240
*
j
;
*
(
p_picture
->
p
[
0
].
p_pixels
+
*
(
p_picture
->
p
[
0
].
p_pixels
+
(
p_picture
->
p
[
0
].
i_lines
-
y
-
1
)
*
p_picture
->
p
[
0
].
i_pitch
(
p_picture
->
p
[
0
].
i_lines
-
y
-
1
)
*
p_picture
->
p
[
0
].
i_pitch
+
x
)
=
0xAD
;
+
x
)
=
0xAD
;
...
@@ -967,7 +968,7 @@ int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
...
@@ -967,7 +968,7 @@ int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
for
(
int
i
=
0
;
i
<
10
;
i
++
)
for
(
int
i
=
0
;
i
<
10
;
i
++
)
{
{
y
=
i
*
cos
(
teta
)
+
20
;
y
=
i
*
cos
(
teta
)
+
20
;
x
=
i
*
sin
(
teta
)
+
150
+
240
*
j
;
x
=
i
*
sin
(
teta
)
+
start_x
+
240
*
j
;
*
(
p_picture
->
p
[
0
].
p_pixels
+
*
(
p_picture
->
p
[
0
].
p_pixels
+
(
p_picture
->
p
[
0
].
i_lines
-
y
-
1
)
*
p_picture
->
p
[
0
].
i_pitch
(
p_picture
->
p
[
0
].
i_lines
-
y
-
1
)
*
p_picture
->
p
[
0
].
i_pitch
+
x
)
=
0xFF
;
+
x
)
=
0xFF
;
...
...
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