changeset 4324:09f15844c960

don't render UV planes if interleaved (also add support later)
author alex
date Wed, 23 Jan 2002 19:32:52 +0000
parents fa8ba116a716
children 6b685da4e0c8
files libvo/vosub_vidix.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vosub_vidix.c	Wed Jan 23 19:30:26 2002 +0000
+++ b/libvo/vosub_vidix.c	Wed Jan 23 19:32:52 2002 +0000
@@ -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;