From 6f79aca2eb29c601fec68d0c04755ec000275c4b Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 1 Jun 2003 22:09:20 +0000 Subject: [PATCH] final scaler removal step git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10235 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_dga.c | 74 ++++---------------------------------------------- 1 file changed, 5 insertions(+), 69 deletions(-) diff --git a/libvo/vo_dga.c b/libvo/vo_dga.c index ac3cdccaaf..fbaf617e25 100644 --- a/libvo/vo_dga.c +++ b/libvo/vo_dga.c @@ -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 @@ struct vd_modes { 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 @@ static struct vd_modes vo_dga_modes[] = { // 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 @@ static int vd_EnableMode( int depth, int bitspp, 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 @@ static int vd_ValidateMode( int mplayer_depth){ 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 @@ static int vd_ModeValid( int mplayer_depth){ 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 @@ static uint32_t query_format( uint32_t format ) 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 @@ static uint32_t config( uint32_t width, uint32_t height, 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 */