Mercurial > mplayer.hg
comparison libvo/vo_xv.c @ 5466:ea1ae0e3ea19
IMGTYPE_IPB fix
author | arpi |
---|---|
date | Wed, 03 Apr 2002 02:40:09 +0000 |
parents | ce6f625f6682 |
children | 1e90dd889c34 |
comparison
equal
deleted
inserted
replaced
5465:1f9c8301a7f2 | 5466:ea1ae0e3ea19 |
---|---|
712 return 0; | 712 return 0; |
713 } | 713 } |
714 | 714 |
715 static uint32_t get_image(mp_image_t *mpi){ | 715 static uint32_t get_image(mp_image_t *mpi){ |
716 if(mpi->type==MP_IMGTYPE_STATIC && num_buffers>1) return VO_FALSE; // it is not static | 716 if(mpi->type==MP_IMGTYPE_STATIC && num_buffers>1) return VO_FALSE; // it is not static |
717 if(mpi->type==MP_IMGTYPE_IPB && num_buffers<3 && mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // not enough | |
717 if(mpi->imgfmt!=image_format || mpi->imgfmt==IMGFMT_BGR24) return VO_FALSE; // needs conversion :( | 718 if(mpi->imgfmt!=image_format || mpi->imgfmt==IMGFMT_BGR24) return VO_FALSE; // needs conversion :( |
718 // if(mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // slow video ram | 719 // if(mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // slow video ram |
719 if(mpi->width==image_width){ | 720 if(mpi->width==image_width){ |
720 if(mpi->flags&MP_IMGFLAG_PLANAR){ | 721 if(mpi->flags&MP_IMGFLAG_PLANAR){ |
721 mpi->planes[0]=xvimage[current_buf]->data; | 722 mpi->planes[0]=xvimage[current_buf]->data; |