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
4aee123f
Commit
4aee123f
authored
Aug 31, 2015
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_filter: magnify: use C99 loop declarations
parent
e6d066c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
modules/video_filter/magnify.c
modules/video_filter/magnify.c
+3
-7
No files found.
modules/video_filter/magnify.c
View file @
4aee123f
...
...
@@ -157,7 +157,6 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
int
v_w
,
v_h
;
picture_t
*
p_converted
;
plane_t
*
p_oyp
;
int
i_plane
;
p_outpic
=
filter_NewPicture
(
p_filter
);
if
(
!
p_outpic
)
...
...
@@ -180,7 +179,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
picture_t
crop
;
crop
=
*
p_pic
;
for
(
i_plane
=
0
;
i_plane
<
p_pic
->
i_planes
;
i_plane
++
)
for
(
i
nt
i
_plane
=
0
;
i_plane
<
p_pic
->
i_planes
;
i_plane
++
)
{
const
int
o_yp
=
o_y
*
p_outpic
->
p
[
i_plane
].
i_lines
/
p_outpic
->
p
[
Y_PLANE
].
i_lines
;
const
int
o_xp
=
o_x
*
p_outpic
->
p
[
i_plane
].
i_pitch
/
p_outpic
->
p
[
Y_PLANE
].
i_pitch
;
...
...
@@ -287,9 +286,8 @@ static void DrawZoomStatus( uint8_t *pb_dst, int i_pitch, int i_width, int i_hei
" X X X X X X X X X X X X X X X X X X XL"
" X XXXXX XXXX XXXXX XXX XXX X X XXXX X X XXX X X L"
;
const
char
*
p_draw
=
b_visible
?
p_hide
:
p_show
;
int
i
,
y
,
x
;
for
(
i
=
0
,
x
=
i_offset_x
,
y
=
i_offset_y
;
p_draw
[
i
]
!=
'\0'
;
i
++
)
for
(
i
nt
i
=
0
,
x
=
i_offset_x
,
y
=
i_offset_y
;
p_draw
[
i
]
!=
'\0'
;
i
++
)
{
if
(
p_draw
[
i
]
==
'X'
)
{
...
...
@@ -311,8 +309,6 @@ static void DrawZoomStatus( uint8_t *pb_dst, int i_pitch, int i_width, int i_hei
static
void
DrawRectangle
(
uint8_t
*
pb_dst
,
int
i_pitch
,
int
i_width
,
int
i_height
,
int
x
,
int
y
,
int
i_w
,
int
i_h
)
{
int
dy
;
if
(
x
+
i_w
>
i_width
||
y
+
i_h
>
i_height
)
return
;
...
...
@@ -320,7 +316,7 @@ static void DrawRectangle( uint8_t *pb_dst, int i_pitch, int i_width, int i_heig
memset
(
&
pb_dst
[
y
*
i_pitch
+
x
],
0xff
,
i_w
);
/* left and right */
for
(
dy
=
1
;
dy
<
i_h
-
1
;
dy
++
)
for
(
int
dy
=
1
;
dy
<
i_h
-
1
;
dy
++
)
{
pb_dst
[(
y
+
dy
)
*
i_pitch
+
x
+
0
]
=
0xff
;
pb_dst
[(
y
+
dy
)
*
i_pitch
+
x
+
i_w
-
1
]
=
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