Mercurial > mplayer.hg
comparison libmpcodecs/vd.c @ 5224:f992a01ecc0d
using -dr instead -vaa_dr
author | alex |
---|---|
date | Wed, 20 Mar 2002 15:39:08 +0000 |
parents | abea2deab4d6 |
children | 3e04fd1074d3 |
comparison
equal
deleted
inserted
replaced
5223:8c7b6ba2b5e9 | 5224:f992a01ecc0d |
---|---|
86 &mpcodecs_vd_libmpeg2, | 86 &mpcodecs_vd_libmpeg2, |
87 NULL | 87 NULL |
88 }; | 88 }; |
89 | 89 |
90 #include "libvo/video_out.h" | 90 #include "libvo/video_out.h" |
91 extern int vaa_use_dr; | 91 extern int vo_directrendering; |
92 | 92 |
93 // libvo opts: | 93 // libvo opts: |
94 int fullscreen=0; | 94 int fullscreen=0; |
95 int vidmode=0; | 95 int vidmode=0; |
96 int softzoom=0; | 96 int softzoom=0; |
284 if(!mpi->bpp) mp_image_setfmt(mpi,sh->codec->outfmt[sh->outfmtidx]); | 284 if(!mpi->bpp) mp_image_setfmt(mpi,sh->codec->outfmt[sh->outfmtidx]); |
285 if(!(mpi->flags&MP_IMGFLAG_ALLOCATED) && mpi->type>MP_IMGTYPE_EXPORT){ | 285 if(!(mpi->flags&MP_IMGFLAG_ALLOCATED) && mpi->type>MP_IMGTYPE_EXPORT){ |
286 | 286 |
287 // check libvo first! | 287 // check libvo first! |
288 vo_functions_t* vo=sh->video_out; | 288 vo_functions_t* vo=sh->video_out; |
289 if(vo && vaa_use_dr) vo->control(VOCTRL_GET_IMAGE,mpi); | 289 if(vo && vo_directrendering) vo->control(VOCTRL_GET_IMAGE,mpi); |
290 | 290 |
291 if(!(mpi->flags&MP_IMGFLAG_DIRECT)){ | 291 if(!(mpi->flags&MP_IMGFLAG_DIRECT)){ |
292 // non-direct and not yet allocaed image. allocate it! | 292 // non-direct and not yet allocaed image. allocate it! |
293 mpi->planes[0]=memalign(64, mpi->bpp*mpi->width*mpi->height/8); | 293 mpi->planes[0]=memalign(64, mpi->bpp*mpi->width*mpi->height/8); |
294 if(mpi->flags&MP_IMGFLAG_PLANAR){ | 294 if(mpi->flags&MP_IMGFLAG_PLANAR){ |