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
07983b25
Commit
07983b25
authored
Jul 25, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sharpen: use local variables for loops
parent
d71c794d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
modules/video_filter/sharpen.c
modules/video_filter/sharpen.c
+2
-3
No files found.
modules/video_filter/sharpen.c
View file @
07983b25
...
...
@@ -170,7 +170,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
,
j
;
uint8_t
*
restrict
p_src
=
NULL
;
uint8_t
*
restrict
p_out
=
NULL
;
int
i_src_pitch
;
...
...
@@ -202,11 +201,11 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
memcpy
(
p_out
,
p_src
,
i_visible_pitch
);
for
(
i
=
1
;
i
<
i_visible_lines
-
1
;
i
++
)
for
(
unsigned
i
=
1
;
i
<
i_visible_lines
-
1
;
i
++
)
{
p_out
[
i
*
i_out_pitch
]
=
p_src
[
i
*
i_src_pitch
];
for
(
j
=
1
;
j
<
i_visible_pitch
-
1
;
j
++
)
for
(
unsigned
j
=
1
;
j
<
i_visible_pitch
-
1
;
j
++
)
{
pix
=
(
p_src
[(
i
-
1
)
*
i_src_pitch
+
j
-
1
]
*
v1
)
+
(
p_src
[(
i
-
1
)
*
i_src_pitch
+
j
]
*
v1
)
+
...
...
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