From: Robin K. <kom...@us...> - 2003-10-24 18:22:54
|
Update of /cvsroot/xine/xine-lib/src/video_out In directory sc8-pr-cvs1:/tmp/cvs-serv11458/src/video_out Modified Files: video_out_pgx64.c Log Message: Fix pitch calculations for U and V lines. Index: video_out_pgx64.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/video_out_pgx64.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- video_out_pgx64.c 23 Oct 2003 15:17:07 -0000 1.42 +++ video_out_pgx64.c 24 Oct 2003 07:10:36 -0000 1.43 @@ -291,8 +291,6 @@ } } - - static void pgx64_frame_field(pgx64_frame_t *frame, int which_field) { } @@ -361,8 +359,8 @@ 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); |