Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
398cbeb6
Commit
398cbeb6
authored
Aug 08, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scale every plane correctly. This fixes the "green bar at the bottom after scaling" issue.
parent
c0da24fe
Changes
1
Show 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 @
398cbeb6
...
...
@@ -160,12 +160,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
);
...
...
@@ -201,13 +204,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