[MPlayer-cvslog] CVS: main/libmpcodecs vd.c, 1.82, 1.83 vd_zrmjpeg.c, 1.2, 1.3 ve_divx4.c, 1.17, 1.18 ve_libdv.c, 1.12, 1.13 ve_nuv.c, 1.6, 1.7 ve_qtvideo.c, 1.13, 1.14 ve_vfw.c, 1.18, 1.19 vf_flip.c, 1.12, 1.13 vf_vo.c, 1.24, 1.25
Jindrich Makovicka CVS
syncmail at mplayerhq.hu
Mon Apr 18 17:52:40 CEST 2005
- Previous message: [MPlayer-cvslog] CVS: main/libvo vo_xvmc.c,1.18,1.19
- Next message: [MPlayer-cvslog] CVS: main/libvo mga_common.c, 1.60, 1.61 vesa_lvo.c, 1.18, 1.19 vo_aa.c, 1.45, 1.46 vo_bl.c, 1.9, 1.10 vo_caca.c, 1.1, 1.2 vo_cvidix.c, 1.13, 1.14 vo_dfbmga.c, 1.26, 1.27 vo_dga.c, 1.71, 1.72 vo_directfb2.c, 1.17, 1.18 vo_dxr3.c, 1.123, 1.124 vo_fbdev.c, 1.90, 1.91 vo_fbdev2.c, 1.5, 1.6 vo_gif89a.c, 1.12, 1.13 vo_gl.c, 1.67, 1.68 vo_jpeg.c, 1.27, 1.28 vo_md5sum.c, 1.4, 1.5 vo_mga.c, 1.38, 1.39 vo_mpegpes.c, 1.40, 1.41 vo_null.c, 1.12, 1.13 vo_png.c, 1.25, 1.26 vo_pnm.c, 1.7, 1.8 vo_sdl.c, 1.120, 1.121 vo_svga.c, 1.77, 1.78 vo_syncfb.c, 1.14, 1.15 vo_tdfx_vid.c, 1.4, 1.5 vo_tga.c, 1.2, 1.3 vo_vesa.c, 1.104, 1.105 vo_winvidix.c, 1.5, 1.6 vo_x11.c, 1.141, 1.142 vo_xmga.c, 1.91, 1.92 vo_xover.c, 1.11, 1.12 vo_xv.c, 1.164, 1.165 vo_xvidix.c, 1.71, 1.72 vo_xvmc.c, 1.19, 1.20 vo_yuv4mpeg.c, 1.21, 1.22 vo_zr.c, 1.30, 1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Jindrich Makovicka CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv29755/libmpcodecs
Modified Files:
vd.c vd_zrmjpeg.c ve_divx4.c ve_libdv.c ve_nuv.c ve_qtvideo.c
ve_vfw.c vf_flip.c vf_vo.c
Log Message:
replace VO and VF numeric flags with #defined identifiers
Index: vd.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- vd.c 1 Mar 2005 20:21:58 -0000 1.82
+++ vd.c 18 Apr 2005 15:52:37 -0000 1.83
@@ -148,6 +148,7 @@
// vo_functions_t* video_out=sh->video_out;
vf_instance_t* vf=sh->vfilter,*sc=NULL;
int palette=0;
+ int vocfg_flags=0;
if(!sh->disp_w || !sh->disp_h)
mp_msg(MSGT_DECVIDEO,MSGL_WARN, MSGTR_CodecDidNotSet);
@@ -188,16 +189,16 @@
if(out_fmt==(unsigned int)0xFFFFFFFF) continue;
flags=vf->query_format(vf,out_fmt);
mp_msg(MSGT_CPLAYER,MSGL_DBG2,"vo_debug: query(%s) returned 0x%X (i=%d) \n",vo_format_name(out_fmt),flags,i);
- if((flags&2) || (flags && j<0)){
+ if((flags&VFCAP_CSP_SUPPORTED_BY_HW) || (flags&VFCAP_CSP_SUPPORTED && j<0)){
// check (query) if codec really support this outfmt...
sh->outfmtidx=j; // pass index to the control() function this way
if(mpvdec->control(sh,VDCTRL_QUERY_FORMAT,&out_fmt)==CONTROL_FALSE){
mp_msg(MSGT_CPLAYER,MSGL_DBG2,"vo_debug: codec query_format(%s) returned FALSE\n",vo_format_name(out_fmt));
continue;
}
- j=i; vo_flags=flags; if(flags&2) break;
+ j=i; vo_flags=flags; if(flags&VFCAP_CSP_SUPPORTED_BY_HW) break;
} else
- if(!palette && !(flags&3) && (out_fmt==IMGFMT_RGB8||out_fmt==IMGFMT_BGR8)){
+ if(!palette && !(flags&(VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_CSP_SUPPORTED)) && (out_fmt==IMGFMT_RGB8||out_fmt==IMGFMT_BGR8)){
sh->outfmtidx=j; // pass index to the control() function this way
if(mpvdec->control(sh,VDCTRL_QUERY_FORMAT,&out_fmt)!=CONTROL_FALSE)
palette=1;
@@ -300,18 +301,23 @@
}
}
+ vocfg_flags = (fullscreen ? VOFLAG_FULLSCREEN:0)
+ | (vidmode ? VOFLAG_MODESWITCHING:0)
+ | (softzoom ? VOFLAG_SWSCALE:0)
+ | (flip ? VOFLAG_FLIPPING:0);
+
// Time to config libvo!
mp_msg(MSGT_CPLAYER,MSGL_V,"VO Config (%dx%d->%dx%d,flags=%d,'%s',0x%X)\n",
sh->disp_w,sh->disp_h,
screen_size_x,screen_size_y,
- fullscreen|(vidmode<<1)|(softzoom<<2)|(flip<<3),
+ vocfg_flags,
"MPlayer",out_fmt);
vf->w = sh->disp_w;
vf->h = sh->disp_h;
if(vf_config_wrapper(vf,sh->disp_w,sh->disp_h,
screen_size_x,screen_size_y,
- fullscreen|(vidmode<<1)|(softzoom<<2)|(flip<<3),
+ vocfg_flags,
out_fmt)==0){
// "MPlayer",out_fmt)){
mp_msg(MSGT_CPLAYER,MSGL_WARN,MSGTR_CannotInitVO);
Index: vd_zrmjpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_zrmjpeg.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vd_zrmjpeg.c 8 Jan 2005 14:32:26 -0000 1.2
+++ vd_zrmjpeg.c 18 Apr 2005 15:52:37 -0000 1.3
@@ -9,6 +9,7 @@
#include "config.h"
#include "mp_msg.h"
+#include "vfcap.h"
/* some convenient #define's, is this portable enough? */
#define VERBOSE(...) mp_msg(MSGT_DECVIDEO, MSGL_V, "vd_zrmjpeg: " __VA_ARGS__)
@@ -38,7 +39,7 @@
static int query_format(sh_video_t *sh, unsigned int format) {
vd_zrmjpeg_ctx_t *ctx = sh->context;
- if (format == ctx->preferred_csp) return CONTROL_TRUE;
+ if (format == ctx->preferred_csp) return VFCAP_CSP_SUPPORTED;
return CONTROL_FALSE;
}
Index: ve_divx4.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_divx4.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ve_divx4.c 1 Mar 2005 20:21:58 -0000 1.17
+++ ve_divx4.c 18 Apr 2005 15:52:37 -0000 1.18
@@ -376,13 +376,13 @@
case IMGFMT_YV12:
case IMGFMT_IYUV:
case IMGFMT_I420:
- return 3; // no conversion
+ return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW; // no conversion
case IMGFMT_YUY2:
case IMGFMT_UYVY:
- return 1; // conversion
+ return VFCAP_CSP_SUPPORTED; // conversion
case IMGFMT_RGB24:
case IMGFMT_BGR24:
- return 1 | VFCAP_FLIPPED; // conversion+flipped
+ return VFCAP_CSP_SUPPORTED | VFCAP_FLIPPED; // conversion+flipped
}
return 0;
}
Index: ve_libdv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_libdv.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ve_libdv.c 1 Mar 2005 20:21:58 -0000 1.12
+++ ve_libdv.c 18 Apr 2005 15:52:37 -0000 1.13
@@ -66,8 +66,8 @@
}
static int query_format(struct vf_instance_s* vf, unsigned int fmt){
- if(fmt==IMGFMT_YUY2) return 3;
- if(fmt==IMGFMT_RGB24) return 1;
+ if(fmt==IMGFMT_YUY2) return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW;
+ if(fmt==IMGFMT_RGB24) return VFCAP_CSP_SUPPORTED;
return 0;
}
Index: ve_nuv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_nuv.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ve_nuv.c 3 Mar 2005 10:19:56 -0000 1.6
+++ ve_nuv.c 18 Apr 2005 15:52:37 -0000 1.7
@@ -93,7 +93,7 @@
}
static int query_format(struct vf_instance_s* vf, unsigned int fmt){
- if(fmt==IMGFMT_I420) return 3;
+ if(fmt==IMGFMT_I420) return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW;
return 0;
}
Index: ve_qtvideo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_qtvideo.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ve_qtvideo.c 1 Mar 2005 20:21:58 -0000 1.13
+++ ve_qtvideo.c 18 Apr 2005 15:52:37 -0000 1.14
@@ -166,7 +166,7 @@
}
static int query_format(struct vf_instance_s* vf, unsigned int fmt){
- if(fmt==IMGFMT_YUY2) return 3;
+ if(fmt==IMGFMT_YUY2) return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW;
return 0;
}
Index: ve_vfw.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_vfw.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- ve_vfw.c 1 Mar 2005 20:21:58 -0000 1.18
+++ ve_vfw.c 18 Apr 2005 15:52:37 -0000 1.19
@@ -234,7 +234,7 @@
}
static int query_format(struct vf_instance_s* vf, unsigned int fmt){
- if(fmt==IMGFMT_BGR24) return 3 | VFCAP_FLIPPED;
+ if(fmt==IMGFMT_BGR24) return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_FLIPPED;
return 0;
}
Index: vf_flip.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_flip.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- vf_flip.c 20 May 2003 18:36:55 -0000 1.12
+++ vf_flip.c 18 Apr 2005 15:52:37 -0000 1.13
@@ -8,13 +8,14 @@
#include "mp_image.h"
#include "vf.h"
+#include "../libvo/video_out.h"
//===========================================================================//
static int config(struct vf_instance_s* vf,
int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt){
- flags&=~8; // remove the FLIP flag
+ flags&=~VOFLAG_FLIPPING; // remove the FLIP flag
return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);
}
Index: vf_vo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_vo.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- vf_vo.c 3 May 2003 05:59:29 -0000 1.24
+++ vf_vo.c 18 Apr 2005 15:52:37 -0000 1.25
@@ -32,10 +32,10 @@
width, height,
d_width, d_height,
vo_format_name(outfmt),
- (flags&1)?" [fs]":"",
- (flags&2)?" [vm]":"",
- (flags&4)?" [zoom]":"",
- (flags&8)?" [flip]":"");
+ (flags&VOFLAG_FULLSCREEN)?" [fs]":"",
+ (flags&VOFLAG_MODESWITCHING)?" [vm]":"",
+ (flags&VOFLAG_SWSCALE)?" [zoom]":"",
+ (flags&VOFLAG_FLIPPING)?" [flip]":"");
mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Description: %s\n",info->name);
mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Author: %s\n", info->author);
if(info->comment && strlen(info->comment) > 0)
- Previous message: [MPlayer-cvslog] CVS: main/libvo vo_xvmc.c,1.18,1.19
- Next message: [MPlayer-cvslog] CVS: main/libvo mga_common.c, 1.60, 1.61 vesa_lvo.c, 1.18, 1.19 vo_aa.c, 1.45, 1.46 vo_bl.c, 1.9, 1.10 vo_caca.c, 1.1, 1.2 vo_cvidix.c, 1.13, 1.14 vo_dfbmga.c, 1.26, 1.27 vo_dga.c, 1.71, 1.72 vo_directfb2.c, 1.17, 1.18 vo_dxr3.c, 1.123, 1.124 vo_fbdev.c, 1.90, 1.91 vo_fbdev2.c, 1.5, 1.6 vo_gif89a.c, 1.12, 1.13 vo_gl.c, 1.67, 1.68 vo_jpeg.c, 1.27, 1.28 vo_md5sum.c, 1.4, 1.5 vo_mga.c, 1.38, 1.39 vo_mpegpes.c, 1.40, 1.41 vo_null.c, 1.12, 1.13 vo_png.c, 1.25, 1.26 vo_pnm.c, 1.7, 1.8 vo_sdl.c, 1.120, 1.121 vo_svga.c, 1.77, 1.78 vo_syncfb.c, 1.14, 1.15 vo_tdfx_vid.c, 1.4, 1.5 vo_tga.c, 1.2, 1.3 vo_vesa.c, 1.104, 1.105 vo_winvidix.c, 1.5, 1.6 vo_x11.c, 1.141, 1.142 vo_xmga.c, 1.91, 1.92 vo_xover.c, 1.11, 1.12 vo_xv.c, 1.164, 1.165 vo_xvidix.c, 1.71, 1.72 vo_xvmc.c, 1.19, 1.20 vo_yuv4mpeg.c, 1.21, 1.22 vo_zr.c, 1.30, 1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list