Index: vo_dga.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/vo_dga.c,v retrieving revision 1.63 diff -u -r1.63 vo_dga.c --- vo_dga.c 30 May 2003 18:05:48 -0000 1.63 +++ vo_dga.c 1 Jun 2003 21:46:20 -0000 @@ -10,10 +10,6 @@ * */ -//#define VO_DGA_DBG 1 -//#undef HAVE_DGA2 -//#undef HAVE_XF86VM - #include #include #include @@ -22,7 +18,6 @@ #include "config.h" #include "video_out.h" #include "video_out_internal.h" -#include "../postproc/swscale.h" #include "aspect.h" #include "x11_common.h" #include "fastmemcpy.h" @@ -75,15 +70,10 @@ int vdm_gmask; int vdm_bmask; int vdm_hw_mode; - int vdm_conversion_func; }; //------------------------------------------------------------------ -#define VDM_CONV_NATIVE 0 -#define VDM_CONV_15TO16 1 -#define VDM_CONV_24TO32 2 - static struct vd_modes vo_dga_modes[] = { // these entries describe HW modes // however, we use the same entries to tell mplayer what we support @@ -91,10 +81,10 @@ // function to use for a mode that is not supported by HW { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, - { 15, 0, 15, 16, 2, 0x7c00, 0x03e0, 0x001f, 2, VDM_CONV_15TO16 }, - { 16, 0, 16, 16, 2, 0xf800, 0x07e0, 0x001f, 2, VDM_CONV_NATIVE }, - { 24, 0, 24, 24, 3, 0xff0000, 0x00ff00, 0x0000ff, 4, VDM_CONV_24TO32}, - { 32, 0, 24, 32, 4, 0x00ff0000, 0x0000ff00, 0x000000ff, 4, VDM_CONV_NATIVE} + { 15, 0, 15, 16, 2, 0x7c00, 0x03e0, 0x001f, 2, }, + { 16, 0, 16, 16, 2, 0xf800, 0x07e0, 0x001f, 2, }, + { 24, 0, 24, 24, 3, 0xff0000, 0x00ff00, 0x0000ff, 4}, + { 32, 0, 24, 32, 4, 0x00ff0000, 0x0000ff00, 0x000000ff, 4} }; static int vo_dga_mode_num = sizeof(vo_dga_modes)/sizeof(struct vd_modes); @@ -111,7 +101,6 @@ vo_dga_modes[i].vdm_bmask == bmask){ vo_dga_modes[i].vdm_supported = 1; vo_dga_modes[i].vdm_hw_mode = i; - vo_dga_modes[i].vdm_conversion_func = VDM_CONV_NATIVE; return i; } } @@ -138,7 +127,6 @@ if(vo_dga_modes[i].vdm_mplayer_depth == mplayer_depth ){ vo_dga_modes[i].vdm_supported = 1; vo_dga_modes[i].vdm_hw_mode = i; - vo_dga_modes[i].vdm_conversion_func = VDM_CONV_NATIVE; return i; } } @@ -158,18 +146,6 @@ return 0; } -static int vd_ModeSupportedMethod( int mplayer_depth){ - int i; - if(mplayer_depth == 0)return 0; - for(i=1; i> 24 ; - *(((uint32_t *)d)++) = (l & 0x00ffffff); // | 0x80000000; - m |= *(((uint16_t *)s)++) << 8; - *(((uint32_t *)d)++) = m; // | 0x80000000 ; - } - d+= vp_skip; - } - } - //printf("vo_dga: 24 to 32 not implemented yet!!!\n"); - break; - } return 0; } @@ -407,10 +347,7 @@ if( (format&IMGFMT_BGR_MASK) == IMGFMT_BGR && vd_ModeValid(format&0xff)) { - if (vd_ModeSupportedMethod(format&0xff) == VDM_CONV_NATIVE) return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD; - else - return VFCAP_CSP_SUPPORTED|VFCAP_OSD; } return 0; @@ -684,7 +621,6 @@ aspect_save_screenres(mX,mY); aspect_save_orig(scale_srcW,scale_srcH); aspect_save_prescale(scale_dstW,scale_dstH); - SwScale_Init(); if(flags&0x01) /* -fs */ aspect(&scale_dstW,&scale_dstH,A_ZOOM); else if(flags&0x04) /* -fs */