[Mplayer-cvslog] CVS: main/libvo vosub_vidix.c,1.37,1.38
Nick Kurshev
nick at mplayer.dev.hu
Sun Mar 10 18:51:55 CET 2002
- Previous message: [Mplayer-cvslog] CVS: main/libvo vo_aa.c,1.23,1.24
- Next message: [Mplayer-cvslog] CVS: main Makefile,1.161,1.162 codec-cfg.c,1.70,1.71 codec-cfg.h,1.43,1.44 configure,1.398,1.399
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv20010/main/libvo
Modified Files:
vosub_vidix.c
Log Message:
fixed strides for packed fourccs
Index: vosub_vidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vosub_vidix.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- vosub_vidix.c 9 Mar 2002 17:27:37 -0000 1.37
+++ vosub_vidix.c 10 Mar 2002 17:51:52 -0000 1.38
@@ -414,13 +414,14 @@
return vdlPlaybackSetDeint(vidix_handler, info);
}
+static int is_422_planes_eq=0;
int vidix_init(unsigned src_width,unsigned src_height,
unsigned x_org,unsigned y_org,unsigned dst_width,
unsigned dst_height,unsigned format,unsigned dest_bpp,
unsigned vid_w,unsigned vid_h,const void *info)
{
size_t i,awidth;
- int err,is_422_planes_eq;
+ int err;
uint32_t sstride,apitch;
if(verbose > 1)
printf("vosub_vidix: vidix_init() was called\n"
@@ -603,16 +604,19 @@
{
if(mpi->type==MP_IMGTYPE_STATIC && vidix_play.num_frames>1) return VO_FALSE;
if(mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; /* slow video ram */
- mpi->planes[0]=vidix_mem+vidix_play.offsets[next_frame]+vidix_play.offset.y;
- mpi->stride[0]=dstrides.y;
- if(mpi->flags&MP_IMGFLAG_PLANAR)
+ if(is_422_planes_eq || (mpi->flags&(MP_IMGFLAG_ACCEPT_STRIDE|MP_IMGFLAG_ACCEPT_WIDTH)))
{
- mpi->planes[1]=vidix_mem+vidix_play.offsets[next_frame]+vidix_play.offset.v;
- mpi->stride[1]=dstrides.v;
- mpi->planes[2]=vidix_mem+vidix_play.offsets[next_frame]+vidix_play.offset.u;
- mpi->stride[2]=dstrides.u;
+ mpi->planes[0]=vidix_mem+vidix_play.offsets[next_frame]+vidix_play.offset.y;
+ mpi->stride[0]=dstrides.y;
+ if(mpi->flags&MP_IMGFLAG_PLANAR)
+ {
+ mpi->planes[2]=vidix_mem+vidix_play.offsets[next_frame]+vidix_play.offset.v;
+ mpi->stride[2]=dstrides.v;
+ mpi->planes[1]=vidix_mem+vidix_play.offsets[next_frame]+vidix_play.offset.u;
+ mpi->stride[1]=dstrides.u;
+ }
+ mpi->flags|=MP_IMGFLAG_DIRECT;
}
- mpi->flags|=MP_IMGFLAG_DIRECT;
return VO_TRUE;
}
- Previous message: [Mplayer-cvslog] CVS: main/libvo vo_aa.c,1.23,1.24
- Next message: [Mplayer-cvslog] CVS: main Makefile,1.161,1.162 codec-cfg.c,1.70,1.71 codec-cfg.h,1.43,1.44 configure,1.398,1.399
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list