summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin KAY <komadori@users.sourceforge.net>2003-10-24 07:10:36 +0000
committerRobin KAY <komadori@users.sourceforge.net>2003-10-24 07:10:36 +0000
commitcfb0c3ddeea748a0ec45b216e7142ebe39b180ae (patch)
tree16179d65b648a4a1f55f53b0a0ab7c8696104a1d /src
parent0cad8aa73aac63e0dec2d4fa8808672b9c96675d (diff)
downloadxine-lib-cfb0c3ddeea748a0ec45b216e7142ebe39b180ae.tar.gz
xine-lib-cfb0c3ddeea748a0ec45b216e7142ebe39b180ae.tar.bz2
Fix pitch calculations for U and V lines.
CVS patchset: 5585 CVS date: 2003/10/24 07:10:36
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_pgx64.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/video_out/video_out_pgx64.c b/src/video_out/video_out_pgx64.c
index b08bc4e31..f9c66bc82 100644
--- a/src/video_out/video_out_pgx64.c
+++ b/src/video_out/video_out_pgx64.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_pgx64.c,v 1.42 2003/10/23 15:17:07 mroi Exp $
+ * $Id: video_out_pgx64.c,v 1.43 2003/10/24 07:10:36 komadori Exp $
*
* video_out_pgx64.c, Sun PGX64/PGX24 output plugin for xine
*
@@ -291,8 +291,6 @@ static void pgx64_frame_proc_slice(pgx64_frame_t *frame, uint8_t **src)
}
}
-
-
static void pgx64_frame_field(pgx64_frame_t *frame, int which_field)
{
}
@@ -361,8 +359,8 @@ static void pgx64_update_frame_format(pgx64_driver_t *this, pgx64_frame_t *frame
frame->native_format = VIDEO_FORMAT_YUV12;
frame->planes = 3;
frame->vo_frame.pitches[0] = frame->pitch;
- frame->vo_frame.pitches[1] = frame->pitch / 2;
- frame->vo_frame.pitches[2] = frame->pitch / 2;
+ frame->vo_frame.pitches[1] = ((width + 15) / 16) * 8;
+ frame->vo_frame.pitches[2] = ((width + 15) / 16) * 8;
frame->lengths[0] = frame->vo_frame.pitches[0] * height;
frame->lengths[1] = frame->vo_frame.pitches[1] * ((height + 1) / 2);
frame->lengths[2] = frame->vo_frame.pitches[2] * ((height + 1) / 2);