[Mplayer-cvslog] CVS: main/libvo vosub_vidix.c,1.17,1.18
Alex Beregszaszi
alex at mplayer.dev.hu
Wed Jan 23 20:32:55 CET 2002
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv5149
Modified Files:
vosub_vidix.c
Log Message:
don't render UV planes if interleaved (also add support later)
Index: vosub_vidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vosub_vidix.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- vosub_vidix.c 23 Jan 2002 16:54:29 -0000 1.17
+++ vosub_vidix.c 23 Jan 2002 19:32:52 -0000 1.18
@@ -241,6 +241,8 @@
uint8_t *dest;
unsigned bespitch,apitch;
int i;
+
+ /* Plane Y */
apitch = vidix_play.dest.pitch.y-1;
bespitch = (w + apitch) & ~apitch;
@@ -253,8 +255,16 @@
dest += bespitch;
}
+ if (vidix_play.flags & VID_PLAY_INTERLEAVED_UV)
+ {
+ printf("vosub_vidix: interleaving UV planes not supported yet\n");
+ return 0;
+ }
+
+ /* Plane V */
apitch = vidix_play.dest.pitch.v-1;
bespitch = (w + apitch) & ~apitch;
+
dest = vidix_mem + vidix_play.offsets[next_frame] + vidix_play.offset.v;
dest += bespitch*y/4 + x;
src = image[1];
@@ -263,6 +273,8 @@
src+=stride[1];
dest+=bespitch/2;
}
+
+ /* Plane U */
apitch = vidix_play.dest.pitch.u-1;
bespitch = (w + apitch) & ~apitch;
More information about the MPlayer-cvslog
mailing list