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
52d13057
Commit
52d13057
authored
Aug 31, 2015
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_filter: wave: use C99 loop declarations
parent
707f2169
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/video_filter/wave.c
modules/video_filter/wave.c
+3
-4
No files found.
modules/video_filter/wave.c
View file @
52d13057
...
...
@@ -120,7 +120,6 @@ static void Destroy( vlc_object_t *p_this )
static
picture_t
*
Filter
(
filter_t
*
p_filter
,
picture_t
*
p_pic
)
{
picture_t
*
p_outpic
;
int
i_index
;
double
f_angle
;
mtime_t
new_date
=
mdate
();
...
...
@@ -137,9 +136,9 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
p_filter
->
p_sys
->
last_date
=
new_date
;
f_angle
=
p_filter
->
p_sys
->
f_angle
;
for
(
i_index
=
0
;
i_index
<
p_pic
->
i_planes
;
i_index
++
)
for
(
i
nt
i
_index
=
0
;
i_index
<
p_pic
->
i_planes
;
i_index
++
)
{
int
i_
line
,
i_
num_lines
,
i_visible_pitch
,
i_pixel_pitch
,
i_offset
,
int
i_num_lines
,
i_visible_pitch
,
i_pixel_pitch
,
i_offset
,
i_visible_pixels
;
uint8_t
black_pixel
;
uint8_t
*
p_in
,
*
p_out
;
...
...
@@ -163,7 +162,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
:
0x80
;
/* Ok, we do 3 times the sin() calculation for each line. So what ? */
for
(
i_line
=
0
;
i_line
<
i_num_lines
;
i_line
++
)
for
(
i
nt
i
_line
=
0
;
i_line
<
i_num_lines
;
i_line
++
)
{
/* Calculate today's offset, don't go above 1/20th of the screen */
i_offset
=
(
int
)(
(
double
)(
i_visible_pixels
)
...
...
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