comparison libvo/vo_xv.c @ 5006:2b9b34b7cdf8

DR fixed for BGR24
author arpi
date Sat, 09 Mar 2002 21:50:03 +0000
parents 53c569d36b2c
children 2f5ff1968d1c
comparison
equal deleted inserted replaced
5005:24d5713afe2f 5006:2b9b34b7cdf8
709 return 0; 709 return 0;
710 } 710 }
711 711
712 static uint32_t get_image(mp_image_t *mpi){ 712 static uint32_t get_image(mp_image_t *mpi){
713 if(mpi->type==MP_IMGTYPE_STATIC && num_buffers>1) return VO_FALSE; // it is not static 713 if(mpi->type==MP_IMGTYPE_STATIC && num_buffers>1) return VO_FALSE; // it is not static
714 if(mpi->imgfmt!=image_format || mpi->imgfmt==IMGFMT_BGR24) return VO_FALSE; // needs conversion :(
714 // if(mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // slow video ram 715 // if(mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // slow video ram
715 if(mpi->width==image_width){ 716 if(mpi->width==image_width){
716 if(mpi->flags&MP_IMGFLAG_PLANAR){ 717 if(mpi->flags&MP_IMGFLAG_PLANAR){
717 mpi->planes[0]=xvimage[current_buf]->data; 718 mpi->planes[0]=xvimage[current_buf]->data;
718 mpi->planes[1]=xvimage[current_buf]->data+image_width*image_height; 719 mpi->planes[1]=xvimage[current_buf]->data+image_width*image_height;