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
70ebb630
Commit
70ebb630
authored
Aug 23, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Visual: reindent
parent
db033d3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
modules/visualization/visual/effects.c
modules/visualization/visual/effects.c
+36
-36
No files found.
modules/visualization/visual/effects.c
View file @
70ebb630
...
@@ -804,49 +804,49 @@ int scope_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
...
@@ -804,49 +804,49 @@ int scope_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
uint8_t
*
ppp_area
[
2
][
3
];
uint8_t
*
ppp_area
[
2
][
3
];
for
(
i_index
=
0
;
i_index
<
2
;
i_index
++
)
for
(
i_index
=
0
;
i_index
<
2
;
i_index
++
)
{
int
j
;
for
(
j
=
0
;
j
<
3
;
j
++
)
{
{
int
j
;
ppp_area
[
i_index
][
j
]
=
for
(
j
=
0
;
j
<
3
;
j
++
)
p_picture
->
p
[
j
].
p_pixels
+
i_index
*
p_picture
->
p
[
j
].
i_lines
{
/
2
*
p_picture
->
p
[
j
].
i_pitch
;
ppp_area
[
i_index
][
j
]
=
p_picture
->
p
[
j
].
p_pixels
+
i_index
*
p_picture
->
p
[
j
].
i_lines
/
2
*
p_picture
->
p
[
j
].
i_pitch
;
}
}
}
}
for
(
i_index
=
0
,
p_sample
=
(
float
*
)
p_buffer
->
p_buffer
;
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
,
p_buffer
->
i_nb_samples
);
i_index
++
)
i_index
++
)
{
{
uint8_t
i_value
;
uint8_t
i_value
;
/* Left channel */
/* Left channel */
i_value
=
p_sample
[
p_effect
->
i_idx_left
]
*
127
;
i_value
=
p_sample
[
p_effect
->
i_idx_left
]
*
127
;
*
(
ppp_area
[
0
][
0
]
*
(
ppp_area
[
0
][
0
]
+
p_picture
->
p
[
0
].
i_pitch
*
i_index
/
p_effect
->
i_width
+
p_picture
->
p
[
0
].
i_pitch
*
i_index
/
p_effect
->
i_width
+
p_picture
->
p
[
0
].
i_lines
*
i_value
/
512
+
p_picture
->
p
[
0
].
i_lines
*
i_value
/
512
*
p_picture
->
p
[
0
].
i_pitch
)
=
0xbf
;
*
p_picture
->
p
[
0
].
i_pitch
)
=
0xbf
;
*
(
ppp_area
[
0
][
1
]
*
(
ppp_area
[
0
][
1
]
+
p_picture
->
p
[
1
].
i_pitch
*
i_index
/
p_effect
->
i_width
+
p_picture
->
p
[
1
].
i_pitch
*
i_index
/
p_effect
->
i_width
+
p_picture
->
p
[
1
].
i_lines
*
i_value
/
512
+
p_picture
->
p
[
1
].
i_lines
*
i_value
/
512
*
p_picture
->
p
[
1
].
i_pitch
)
=
0xff
;
*
p_picture
->
p
[
1
].
i_pitch
)
=
0xff
;
/* Right channel */
/* Right channel */
i_value
=
p_sample
[
p_effect
->
i_idx_right
]
*
127
;
i_value
=
p_sample
[
p_effect
->
i_idx_right
]
*
127
;
*
(
ppp_area
[
1
][
0
]
*
(
ppp_area
[
1
][
0
]
+
p_picture
->
p
[
0
].
i_pitch
*
i_index
/
p_effect
->
i_width
+
p_picture
->
p
[
0
].
i_pitch
*
i_index
/
p_effect
->
i_width
+
p_picture
->
p
[
0
].
i_lines
*
i_value
/
512
+
p_picture
->
p
[
0
].
i_lines
*
i_value
/
512
*
p_picture
->
p
[
0
].
i_pitch
)
=
0x9f
;
*
p_picture
->
p
[
0
].
i_pitch
)
=
0x9f
;
*
(
ppp_area
[
1
][
2
]
*
(
ppp_area
[
1
][
2
]
+
p_picture
->
p
[
2
].
i_pitch
*
i_index
/
p_effect
->
i_width
+
p_picture
->
p
[
2
].
i_pitch
*
i_index
/
p_effect
->
i_width
+
p_picture
->
p
[
2
].
i_lines
*
i_value
/
512
+
p_picture
->
p
[
2
].
i_lines
*
i_value
/
512
*
p_picture
->
p
[
2
].
i_pitch
)
=
0xdd
;
*
p_picture
->
p
[
2
].
i_pitch
)
=
0xdd
;
p_sample
+=
p_effect
->
i_nb_chans
;
p_sample
+=
p_effect
->
i_nb_chans
;
}
}
return
0
;
return
0
;
}
}
...
...
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