comparison libmpcodecs/vd.c @ 4976:0780634e64b5

direct rendering can be disabled -vaa_nodr
author arpi
date Thu, 07 Mar 2002 13:09:10 +0000
parents fa002f25631e
children f412b0110524
comparison
equal deleted inserted replaced
4975:877f0f643fef 4976:0780634e64b5
61 #endif 61 #endif
62 NULL 62 NULL
63 }; 63 };
64 64
65 #include "libvo/video_out.h" 65 #include "libvo/video_out.h"
66 extern int vaa_use_dr;
66 67
67 int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt){ 68 int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt){
68 69
69 return 1; 70 return 1;
70 } 71 }
125 if(!mpi->bpp) mp_image_setfmt(mpi,sh->codec->outfmt[sh->outfmtidx]); 126 if(!mpi->bpp) mp_image_setfmt(mpi,sh->codec->outfmt[sh->outfmtidx]);
126 if(!(mpi->flags&MP_IMGFLAG_ALLOCATED) && mpi->type>MP_IMGTYPE_EXPORT){ 127 if(!(mpi->flags&MP_IMGFLAG_ALLOCATED) && mpi->type>MP_IMGTYPE_EXPORT){
127 128
128 // check libvo first! 129 // check libvo first!
129 vo_functions_t* vo=sh->video_out; 130 vo_functions_t* vo=sh->video_out;
130 if(vo) vo->control(VOCTRL_GET_IMAGE,mpi); 131 if(vo && vaa_use_dr) vo->control(VOCTRL_GET_IMAGE,mpi);
131 132
132 if(!(mpi->flags&MP_IMGFLAG_DIRECT)){ 133 if(!(mpi->flags&MP_IMGFLAG_DIRECT)){
133 // non-direct and not yet allocaed image. allocate it! 134 // non-direct and not yet allocaed image. allocate it!
134 mpi->planes[0]=memalign(64, mpi->bpp*mpi->width*mpi->height/8); 135 mpi->planes[0]=memalign(64, mpi->bpp*mpi->width*mpi->height/8);
135 if(mpi->flags&MP_IMGFLAG_PLANAR){ 136 if(mpi->flags&MP_IMGFLAG_PLANAR){