Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4f1a86ba
Commit
4f1a86ba
authored
Sep 17, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_filter/scale.c: add a bias when calculating the nearest neighbour.
parent
c6b73779
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/video_filter/scale.c
modules/video_filter/scale.c
+4
-2
No files found.
modules/video_filter/scale.c
View file @
4f1a86ba
...
...
@@ -124,12 +124,14 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
for
(
i
=
0
;
i
<
p_pic_dst
->
p
[
i_plane
].
i_visible_lines
;
i
++
)
{
l
=
p_filter
->
fmt_in
.
video
.
i_height
*
i
/
l
=
(
p_filter
->
fmt_in
.
video
.
i_height
*
i
+
p_filter
->
fmt_out
.
video
.
i_height
/
2
)
/
p_filter
->
fmt_out
.
video
.
i_height
;
for
(
j
=
0
;
j
<
p_pic_dst
->
p
[
i_plane
].
i_visible_pitch
;
j
++
)
{
k
=
p_filter
->
fmt_in
.
video
.
i_width
*
j
/
k
=
(
p_filter
->
fmt_in
.
video
.
i_width
*
j
+
p_filter
->
fmt_out
.
video
.
i_width
/
2
)
/
p_filter
->
fmt_out
.
video
.
i_width
;
p_dst
[
i
*
i_dst_pitch
+
j
]
=
p_src
[
l
*
i_src_pitch
+
k
];
...
...
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