[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
- Previous message: [Mplayer-cvslog] CVS: main/libvo x11_common.c,1.4,1.5 x11_common.h,1.2,1.3 vo_x11.c,1.13,1.14 vo_xv.c,1.10,1.11 vo_xmga.c,1.11,1.12 vo_gl.c,1.2,1.3
- Next message: [Mplayer-cvslog] CVS: main cfg-mplayer.h,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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
- Previous message: [Mplayer-cvslog] CVS: main/libvo x11_common.c,1.4,1.5 x11_common.h,1.2,1.3 vo_x11.c,1.13,1.14 vo_xv.c,1.10,1.11 vo_xmga.c,1.11,1.12 vo_gl.c,1.2,1.3
- Next message: [Mplayer-cvslog] CVS: main cfg-mplayer.h,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list