[Mplayer-cvslog] CVS: main mplayer.c,1.50,1.51

Andreas Ackermann acki2 at users.sourceforge.net
Fri Apr 13 13:14:14 CEST 2001


Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv760

Modified Files:
	mplayer.c 
Log Message:
- added -bpp switch (only takes effect if IMGFMT_BGR) to select the desired depth
  (15,16,24,32) by querying libvo for just this depth (if supported by codec)


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -r1.50 -r1.51
*** mplayer.c	2001/04/12 22:16:58	1.50
--- mplayer.c	2001/04/13 11:14:12	1.51
***************
*** 434,437 ****
--- 434,438 ----
  float sub_delay=0;
  float sub_fps=0;
+ int user_bpp=0;
  #include "cfg-mplayer.h"
  
***************
*** 858,864 ****
  printf("Found video codec: [%s] drv:%d (%s)\n",sh_video->codec->name,sh_video->codec->driver,sh_video->codec->info);
  
  for(i=0;i<CODECS_MAX_OUTFMT;i++){
      out_fmt=sh_video->codec->outfmt[i];
!     if(video_out->query_format(out_fmt)) break;
  }
  if(i>=CODECS_MAX_OUTFMT){
--- 859,873 ----
  printf("Found video codec: [%s] drv:%d (%s)\n",sh_video->codec->name,sh_video->codec->driver,sh_video->codec->info);
  
+ if(user_bpp)printf("Trying user defined depth of %dbpp\n", user_bpp);
+ 
  for(i=0;i<CODECS_MAX_OUTFMT;i++){
      out_fmt=sh_video->codec->outfmt[i];
!     if(user_bpp){
!         if( ((out_fmt & IMGFMT_BGR_MASK) == IMGFMT_BGR) && ((out_fmt & 0xff) == user_bpp) || (out_fmt & IMGFMT_BGR_MASK) != IMGFMT_BGR){
! 	     if(video_out->query_format(out_fmt)) break;
! 	}
!     }else{
!   	  if(video_out->query_format(out_fmt)) break;
!     }
  }
  if(i>=CODECS_MAX_OUTFMT){


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list