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
f43cd0ab
Commit
f43cd0ab
authored
Jan 09, 2003
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/video_output/x11/xcommon.c: fixed i_visible_pitch calculation.
parent
00a30b7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+11
-10
No files found.
modules/video_output/x11/xcommon.c
View file @
f43cd0ab
...
...
@@ -2,7 +2,7 @@
* xcommon.c: Functions common to the X11 and XVideo plugins
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: xcommon.c,v 1.
8 2002/12/06 16:34:08
sam Exp $
* $Id: xcommon.c,v 1.
9 2003/01/09 18:06:06
sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -1100,21 +1100,21 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
p_pic
->
p
[
Y_PLANE
].
i_lines
=
p_vout
->
output
.
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_pitch
=
p_pic
->
p_sys
->
p_image
->
pitches
[
0
];
p_pic
->
p
[
Y_PLANE
].
i_pixel_pitch
=
1
;
p_pic
->
p
[
Y_PLANE
].
i_visible_pitch
=
p_
pic
->
p
[
Y_PLANE
].
i_pitc
h
;
p_pic
->
p
[
Y_PLANE
].
i_visible_pitch
=
p_
vout
->
output
.
i_widt
h
;
p_pic
->
U_PIXELS
=
p_pic
->
p_sys
->
p_image
->
data
+
p_pic
->
p_sys
->
p_image
->
offsets
[
1
];
p_pic
->
p
[
U_PLANE
].
i_lines
=
p_vout
->
output
.
i_height
/
2
;
p_pic
->
p
[
U_PLANE
].
i_pitch
=
p_pic
->
p_sys
->
p_image
->
pitches
[
1
];
p_pic
->
p
[
U_PLANE
].
i_pixel_pitch
=
1
;
p_pic
->
p
[
U_PLANE
].
i_visible_pitch
=
p_
pic
->
p
[
U_PLANE
].
i_pitch
;
p_pic
->
p
[
U_PLANE
].
i_visible_pitch
=
p_
vout
->
output
.
i_width
/
2
;
p_pic
->
V_PIXELS
=
p_pic
->
p_sys
->
p_image
->
data
+
p_pic
->
p_sys
->
p_image
->
offsets
[
2
];
p_pic
->
p
[
V_PLANE
].
i_lines
=
p_vout
->
output
.
i_height
/
2
;
p_pic
->
p
[
V_PLANE
].
i_pitch
=
p_pic
->
p_sys
->
p_image
->
pitches
[
2
];
p_pic
->
p
[
V_PLANE
].
i_pixel_pitch
=
1
;
p_pic
->
p
[
V_PLANE
].
i_visible_pitch
=
p_
pic
->
p
[
V_PLANE
].
i_pitch
;
p_pic
->
p
[
V_PLANE
].
i_visible_pitch
=
p_
vout
->
output
.
i_width
/
2
;
p_pic
->
i_planes
=
3
;
break
;
...
...
@@ -1127,20 +1127,21 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
p_pic
->
p
[
Y_PLANE
].
i_pitch
=
p_pic
->
p_sys
->
p_image
->
pitches
[
0
];
p_pic
->
p
[
Y_PLANE
].
i_pixel_pitch
=
1
;
p_pic
->
p
[
Y_PLANE
].
i_visible_pitch
=
p_pic
->
p
[
Y_PLANE
].
i_pitch
;
p_pic
->
p
[
Y_PLANE
].
i_visible_pitch
=
p_vout
->
output
.
i_width
;
p_pic
->
U_PIXELS
=
p_pic
->
p_sys
->
p_image
->
data
+
p_pic
->
p_sys
->
p_image
->
offsets
[
2
];
p_pic
->
p
[
U_PLANE
].
i_lines
=
p_vout
->
output
.
i_height
/
2
;
p_pic
->
p
[
U_PLANE
].
i_pitch
=
p_pic
->
p_sys
->
p_image
->
pitches
[
2
];
p_pic
->
p
[
U_PLANE
].
i_pixel_pitch
=
1
;
p_pic
->
p
[
U_PLANE
].
i_visible_pitch
=
p_
pic
->
p
[
U_PLANE
].
i_pitch
;
p_pic
->
p
[
U_PLANE
].
i_visible_pitch
=
p_
vout
->
output
.
i_width
/
2
;
p_pic
->
V_PIXELS
=
p_pic
->
p_sys
->
p_image
->
data
+
p_pic
->
p_sys
->
p_image
->
offsets
[
1
];
p_pic
->
p
[
V_PLANE
].
i_lines
=
p_vout
->
output
.
i_height
/
2
;
p_pic
->
p
[
V_PLANE
].
i_pitch
=
p_pic
->
p_sys
->
p_image
->
pitches
[
1
];
p_pic
->
p
[
V_PLANE
].
i_pixel_pitch
=
1
;
p_pic
->
p
[
V_PLANE
].
i_visible_pitch
=
p_
pic
->
p
[
V_PLANE
].
i_pitch
;
p_pic
->
p
[
V_PLANE
].
i_visible_pitch
=
p_
vout
->
output
.
i_width
/
2
;
p_pic
->
i_planes
=
3
;
break
;
...
...
@@ -1153,7 +1154,7 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
/* XXX: this just looks so plain wrong... check it out ! */
p_pic
->
p
->
i_pitch
=
p_pic
->
p_sys
->
p_image
->
pitches
[
0
]
/
4
;
p_pic
->
p
->
i_pixel_pitch
=
4
;
p_pic
->
p
->
i_visible_pitch
=
p_
pic
->
p
->
i_pitch
;
p_pic
->
p
->
i_visible_pitch
=
p_
vout
->
output
.
i_width
*
4
;
p_pic
->
i_planes
=
1
;
break
;
...
...
@@ -1166,7 +1167,7 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
p_pic
->
p
->
i_lines
=
p_vout
->
output
.
i_height
;
p_pic
->
p
->
i_pitch
=
p_pic
->
p_sys
->
p_image
->
pitches
[
0
];
p_pic
->
p
->
i_pixel_pitch
=
4
;
p_pic
->
p
->
i_visible_pitch
=
p_
pic
->
p
->
i_pitch
;
p_pic
->
p
->
i_visible_pitch
=
p_
vout
->
output
.
i_width
*
4
;
p_pic
->
i_planes
=
1
;
break
;
...
...
@@ -1178,7 +1179,7 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
p_pic
->
p
->
i_lines
=
p_vout
->
output
.
i_height
;
p_pic
->
p
->
i_pitch
=
p_pic
->
p_sys
->
p_image
->
pitches
[
0
];
p_pic
->
p
->
i_pixel_pitch
=
2
;
p_pic
->
p
->
i_visible_pitch
=
p_
pic
->
p
->
i_pitch
;
p_pic
->
p
->
i_visible_pitch
=
p_
vout
->
output
.
i_width
*
2
;
p_pic
->
i_planes
=
1
;
break
;
...
...
@@ -1190,7 +1191,7 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
p_pic
->
p
->
i_lines
=
p_vout
->
output
.
i_height
;
p_pic
->
p
->
i_pitch
=
p_pic
->
p_sys
->
p_image
->
pitches
[
0
];
p_pic
->
p
->
i_pixel_pitch
=
2
;
p_pic
->
p
->
i_visible_pitch
=
p_
pic
->
p
->
i_pitch
;
p_pic
->
p
->
i_visible_pitch
=
p_
vout
->
output
.
i_width
*
2
;
p_pic
->
i_planes
=
1
;
break
;
...
...
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