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
01fcd5af
Commit
01fcd5af
authored
Feb 01, 2000
by
Vincent Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scaling vertical dans les 2 sens en YUV walken.
parent
1c5e6d00
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
104 additions
and
135 deletions
+104
-135
src/video_output/video_output.c
src/video_output/video_output.c
+28
-0
src/video_output/video_yuv.c
src/video_output/video_yuv.c
+76
-135
No files found.
src/video_output/video_output.c
View file @
01fcd5af
...
...
@@ -1383,6 +1383,34 @@ static void SetBufferPicture( vout_thread_t *p_vout, picture_t *p_pic )
* Clear areas array
*/
p_buffer
->
i_areas
=
0
;
#ifdef DEBUG_VIDEO
/*
* In DEBUG_VIDEO_MODE, draw white pixels at the beginning and the end of
* the picture area. These pixels should not be erased by rendering functions,
* otherwise segmentation fault is menacing !
*/
if
(
i_pic_x
>
0
)
{
*
(
u16
*
)(
p_buffer
->
p_data
+
p_vout
->
i_bytes_per_line
*
i_pic_y
+
p_vout
->
i_bytes_per_pixel
*
(
i_pic_x
-
1
))
=
0xffff
;
}
if
(
i_pic_y
>
0
)
{
*
(
u16
*
)(
p_buffer
->
p_data
+
p_vout
->
i_bytes_per_line
*
(
i_pic_y
-
1
)
+
p_vout
->
i_bytes_per_pixel
*
i_pic_x
)
=
0xffff
;
}
if
(
i_pic_x
+
i_pic_width
<
p_vout
->
i_width
)
{
*
(
u16
*
)(
p_buffer
->
p_data
+
p_vout
->
i_bytes_per_line
*
(
i_pic_y
+
i_pic_height
-
1
)
+
p_vout
->
i_bytes_per_pixel
*
(
i_pic_x
+
i_pic_width
)
)
=
0xffff
;
}
if
(
i_pic_y
+
i_pic_height
<
p_vout
->
i_height
)
{
*
(
u16
*
)(
p_buffer
->
p_data
+
p_vout
->
i_bytes_per_line
*
(
i_pic_y
+
i_pic_height
)
+
p_vout
->
i_bytes_per_pixel
*
(
i_pic_x
+
i_pic_width
-
1
)
)
=
0xffff
;
}
#endif
}
/******************************************************************************
...
...
src/video_output/video_yuv.c
View file @
01fcd5af
This diff is collapsed.
Click to expand it.
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