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
219e9710
Commit
219e9710
authored
Sep 04, 2007
by
Jean-Paul Saman
Committed by
Jean-Paul Saman
Mar 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix green line problem in scale (backport from [21020])
parent
2f2c70a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/video_filter/scale.c
modules/video_filter/scale.c
+10
-4
No files found.
modules/video_filter/scale.c
View file @
219e9710
...
...
@@ -157,12 +157,15 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
uint8_t
*
p_dstendline
=
p_dst
+
i_dst_visible_pitch
;
const
uint8_t
*
p_dstend
=
p_dst
+
i_dst_visible_lines
*
i_dst_pitch
;
int
l
=
1
<<
(
SHIFT_SIZE
-
1
);
const
int
i_shift_height
=
i_dst_height
/
i_src_height
;
const
int
i_shift_width
=
i_dst_width
/
i_src_width
;
int
l
=
1
<<
(
SHIFT_SIZE
-
i_shift_height
);
for
(
;
p_dst
<
p_dstend
;
p_dst
+=
i_dst_hidden_pitch
,
p_dstendline
+=
i_dst_pitch
,
l
+=
i_height_coef
)
{
int
k
=
1
<<
(
SHIFT_SIZE
-
1
);
int
k
=
1
<<
(
SHIFT_SIZE
-
i_shift_width
);
uint8_t
*
p_srcl
=
p_src
+
(
__MIN
(
i_src_height_1
,
l
>>
SHIFT_SIZE
)
*
i_src_pitch
);
...
...
@@ -198,13 +201,16 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
uint32_t
*
p_dstendline
=
p_dst
+
(
i_dst_visible_pitch
>>
2
);
const
uint32_t
*
p_dstend
=
p_dst
+
i_dst_visible_lines
*
(
i_dst_pitch
>>
2
);
int
l
=
1
<<
(
SHIFT_SIZE
-
1
);
const
int
i_shift_height
=
i_dst_height
/
i_src_height
;
const
int
i_shift_width
=
i_dst_width
/
i_src_width
;
int
l
=
1
<<
(
SHIFT_SIZE
-
i_shift_height
);
for
(
;
p_dst
<
p_dstend
;
p_dst
+=
(
i_dst_hidden_pitch
>>
2
),
p_dstendline
+=
(
i_dst_pitch
>>
2
),
l
+=
i_height_coef
)
{
int
k
=
1
<<
(
SHIFT_SIZE
-
1
);
int
k
=
1
<<
(
SHIFT_SIZE
-
i_shift_width
);
uint32_t
*
p_srcl
=
p_src
+
(
__MIN
(
i_src_height_1
,
l
>>
SHIFT_SIZE
)
*
(
i_src_pitch
>>
2
));
for
(
;
p_dst
<
p_dstendline
;
p_dst
++
,
k
+=
i_width_coef
)
...
...
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