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
e6d066c6
Commit
e6d066c6
authored
Aug 31, 2015
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_filter: mosaic: use C99 loop declarations
parent
be89cdf1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
modules/video_filter/mirror.c
modules/video_filter/mirror.c
+1
-2
modules/video_filter/mosaic.c
modules/video_filter/mosaic.c
+4
-5
No files found.
modules/video_filter/mirror.c
View file @
e6d066c6
...
...
@@ -186,7 +186,6 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
{
picture_t
*
p_outpic
;
bool
b_vertical_split
,
b_left_to_right
;
int
i_index
;
if
(
!
p_pic
)
return
NULL
;
...
...
@@ -202,7 +201,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
return
NULL
;
}
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
++
)
{
if
(
b_vertical_split
)
VerticalMirror
(
p_pic
,
p_outpic
,
i_index
,
b_left_to_right
);
...
...
modules/video_filter/mosaic.c
View file @
e6d066c6
...
...
@@ -433,7 +433,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
bridge_t
*
p_bridge
;
int
i_
index
,
i_
real_index
,
i_row
,
i_col
;
int
i_real_index
,
i_row
,
i_col
;
int
i_greatest_real_index_used
=
p_sys
->
i_order_length
-
1
;
unsigned
int
col_inner_width
,
row_inner_height
;
...
...
@@ -486,7 +486,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
if
(
p_sys
->
i_position
==
position_auto
)
{
int
i_numpics
=
p_sys
->
i_order_length
;
/* keep slots and all */
for
(
i_index
=
0
;
i_index
<
p_bridge
->
i_es_num
;
i_index
++
)
for
(
int
i_index
=
0
;
i_index
<
p_bridge
->
i_es_num
;
i_index
++
)
{
bridged_es_t
*
p_es
=
p_bridge
->
pp_es
[
i_index
];
if
(
!
p_es
->
b_empty
)
...
...
@@ -496,8 +496,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
{
/* We also want to leave slots for images given in
* mosaic-order that are not available in p_vout_picture */
int
i
;
for
(
i
=
0
;
i
<
p_sys
->
i_order_length
;
i
++
)
for
(
int
i
=
0
;
i
<
p_sys
->
i_order_length
;
i
++
)
{
if
(
!
strcmp
(
p_sys
->
ppsz_order
[
i
],
p_es
->
psz_id
)
)
{
...
...
@@ -522,7 +521,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
i_real_index
=
0
;
for
(
i_index
=
0
;
i_index
<
p_bridge
->
i_es_num
;
i_index
++
)
for
(
int
i_index
=
0
;
i_index
<
p_bridge
->
i_es_num
;
i_index
++
)
{
bridged_es_t
*
p_es
=
p_bridge
->
pp_es
[
i_index
];
video_format_t
fmt_in
,
fmt_out
;
...
...
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