summaryrefslogtreecommitdiffstats
path: root/libvo/vosub_vidix.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-23 19:32:52 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-23 19:32:52 +0000
commit35f4745d05f0779565de047c93f2d32e9eafb77e (patch)
treec88828b4183f355b3f4ceda4204e90446595464d /libvo/vosub_vidix.c
parentbb37a1a5ab725cbbf5463512dd02b680b770fb94 (diff)
downloadmpv-35f4745d05f0779565de047c93f2d32e9eafb77e.tar.bz2
mpv-35f4745d05f0779565de047c93f2d32e9eafb77e.tar.xz
don't render UV planes if interleaved (also add support later)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4325 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vosub_vidix.c')
-rw-r--r--libvo/vosub_vidix.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libvo/vosub_vidix.c b/libvo/vosub_vidix.c
index b8b757ab3d..5d184e83ff 100644
--- a/libvo/vosub_vidix.c
+++ b/libvo/vosub_vidix.c
@@ -241,6 +241,8 @@ uint32_t vidix_draw_slice_420(uint8_t *image[], int stride[], int w,int h,int x,
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 @@ uint32_t vidix_draw_slice_420(uint8_t *image[], int stride[], int w,int h,int x,
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 @@ uint32_t vidix_draw_slice_420(uint8_t *image[], int stride[], int w,int h,int x,
src+=stride[1];
dest+=bespitch/2;
}
+
+ /* Plane U */
apitch = vidix_play.dest.pitch.u-1;
bespitch = (w + apitch) & ~apitch;