comparison libvo/vo_svga.c @ 26755:46f0b4d34fa1

cosmetics: Remove useless parentheses from from return statements.
author diego
date Fri, 16 May 2008 08:33:27 +0000
parents 3f5039b63e4b
children 7681eab10aea
comparison
equal deleted inserted replaced
26754:63630c09e237 26755:46f0b4d34fa1
572 } 572 }
573 } 573 }
574 #endif 574 #endif
575 575
576 vga_setdisplaystart(0); 576 vga_setdisplaystart(0);
577 return (0); 577 return 0;
578 } 578 }
579 579
580 static int draw_slice(uint8_t *image[],int stride[], 580 static int draw_slice(uint8_t *image[],int stride[],
581 int w, int h, int x, int y) { 581 int w, int h, int x, int y) {
582 assert(0); 582 assert(0);
721 static uint32_t get_image(mp_image_t *mpi){ 721 static uint32_t get_image(mp_image_t *mpi){
722 int page; 722 int page;
723 723
724 if(!IMGFMT_IS_BGR(mpi->imgfmt) && !IMGFMT_IS_RGB(mpi->imgfmt) ){ 724 if(!IMGFMT_IS_BGR(mpi->imgfmt) && !IMGFMT_IS_RGB(mpi->imgfmt) ){
725 assert(0);//should never happen 725 assert(0);//should never happen
726 return(VO_FALSE); 726 return VO_FALSE;
727 } 727 }
728 728
729 if ( 729 if (
730 ( (mpi->type != MP_IMGTYPE_STATIC) && (mpi->type != MP_IMGTYPE_TEMP)) || 730 ( (mpi->type != MP_IMGTYPE_STATIC) && (mpi->type != MP_IMGTYPE_TEMP)) ||
731 (mpi->flags & MP_IMGFLAG_PLANAR) || 731 (mpi->flags & MP_IMGFLAG_PLANAR) ||
732 (mpi->flags & MP_IMGFLAG_YUV) 732 (mpi->flags & MP_IMGFLAG_YUV)
733 ) 733 )
734 return(VO_FALSE); 734 return VO_FALSE;
735 735
736 //reading from video memory is horribly slow 736 //reading from video memory is horribly slow
737 if( !(mpi->flags & MP_IMGFLAG_READABLE) && vo_directrendering && 737 if( !(mpi->flags & MP_IMGFLAG_READABLE) && vo_directrendering &&
738 (mode_capabilities & CAP_LINEAR) ){ 738 (mode_capabilities & CAP_LINEAR) ){
739 739
747 mpi->planes[0] = PageStore[page].vbase + 747 mpi->planes[0] = PageStore[page].vbase +
748 y_pos*mode_stride + (x_pos*mpi->bpp)/8; 748 y_pos*mode_stride + (x_pos*mpi->bpp)/8;
749 mpi->priv=(void *)page; 749 mpi->priv=(void *)page;
750 if( mp_msg_test(MSGT_VO,MSGL_DBG3) ) 750 if( mp_msg_test(MSGT_VO,MSGL_DBG3) )
751 mp_msg(MSGT_VO,MSGL_DBG3, "vo_svga: direct render allocated! page=%d\n",page); 751 mp_msg(MSGT_VO,MSGL_DBG3, "vo_svga: direct render allocated! page=%d\n",page);
752 return(VO_TRUE); 752 return VO_TRUE;
753 } 753 }
754 } 754 }
755 755
756 return(VO_FALSE); 756 return VO_FALSE;
757 } 757 }