Mercurial > mplayer.hg
changeset 10233:35f52ad860a0
vf_scale.h & related cleanup & some small warning fix by dominik
author | michael |
---|---|
date | Sun, 01 Jun 2003 21:59:29 +0000 |
parents | 939ff11825de |
children | 746a311ae3e3 |
files | Gui/wm/ws.c libmpcodecs/vf_sab.c libmpcodecs/vf_scale.c libmpcodecs/vf_scale.h libmpcodecs/vf_smartblur.c libvo/mga_common.c libvo/vo_aa.c libvo/vo_vesa.c libvo/vo_x11.c postproc/rgb2rgb.h |
diffstat | 10 files changed, 15 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/wm/ws.c Sun Jun 01 20:27:32 2003 +0000 +++ b/Gui/wm/ws.c Sun Jun 01 21:59:29 2003 +0000 @@ -25,6 +25,7 @@ #include "../../cpudetect.h" #include "../../postproc/swscale.h" #include "../../postproc/rgb2rgb.h" +#include "../../libmpcodecs/vf_scale.h" #include "../../mp_msg.h" #include "../../mplayer.h" @@ -93,13 +94,6 @@ // --- -static int get_sws_cpuflags() -{ - return (gCpuCaps.hasMMX ? SWS_CPU_CAPS_MMX : 0) | - (gCpuCaps.hasMMX2 ? SWS_CPU_CAPS_MMX2 : 0) | - (gCpuCaps.has3DNow ? SWS_CPU_CAPS_3DNOW : 0); -} - #define PACK_RGB16(r,g,b,pixel) pixel=(b>>3);\ pixel<<=6;\ pixel|=(g>>2);\
--- a/libmpcodecs/vf_sab.c Sun Jun 01 20:27:32 2003 +0000 +++ b/libmpcodecs/vf_sab.c Sun Jun 01 21:59:29 2003 +0000 @@ -34,6 +34,7 @@ #include "vf.h" #include "../libvo/fastmemcpy.h" #include "../postproc/swscale.h" +#include "vf_scale.h" //===========================================================================//
--- a/libmpcodecs/vf_scale.c Sun Jun 01 20:27:32 2003 +0000 +++ b/libmpcodecs/vf_scale.c Sun Jun 01 21:59:29 2003 +0000 @@ -13,6 +13,7 @@ #include "../libvo/fastmemcpy.h" #include "../postproc/swscale.h" +#include "vf_scale.h" #include "m_option.h" #include "m_struct.h" @@ -30,7 +31,6 @@ 0, 0, NULL, - NULL, NULL }; @@ -40,7 +40,6 @@ //===========================================================================// void sws_getFlagsAndFilterFromCmdLine(int *flags, SwsFilter **srcFilterParam, SwsFilter **dstFilterParam); -struct SwsContext *sws_getContextFromCmdLine(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat); static unsigned int outfmt_list[]={ // RGB: @@ -319,6 +318,7 @@ return CONTROL_TRUE; default: + break; } return vf_next_control(vf,request,data);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libmpcodecs/vf_scale.h Sun Jun 01 21:59:29 2003 +0000 @@ -0,0 +1,4 @@ +//GPL + +int get_sws_cpuflags(); +struct SwsContext *sws_getContextFromCmdLine(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat);
--- a/libmpcodecs/vf_smartblur.c Sun Jun 01 20:27:32 2003 +0000 +++ b/libmpcodecs/vf_smartblur.c Sun Jun 01 21:59:29 2003 +0000 @@ -38,6 +38,7 @@ #include "vf.h" #include "../libvo/fastmemcpy.h" #include "../postproc/swscale.h" +#include "vf_scale.h" //===========================================================================//
--- a/libvo/mga_common.c Sun Jun 01 20:27:32 2003 +0000 +++ b/libvo/mga_common.c Sun Jun 01 21:59:29 2003 +0000 @@ -4,6 +4,7 @@ #include "../cpudetect.h" #include "../postproc/swscale.h" #include "../postproc/rgb2rgb.h" +#include "../libmpcodecs/vf_scale.h" #include "mp_msg.h" // mga_vid drawing functions @@ -415,13 +416,6 @@ return 0; } -static int get_sws_cpuflags(){ - return - (gCpuCaps.hasMMX ? SWS_CPU_CAPS_MMX : 0) - | (gCpuCaps.hasMMX2 ? SWS_CPU_CAPS_MMX2 : 0) - | (gCpuCaps.has3DNow ? SWS_CPU_CAPS_3DNOW : 0); -} - static uint32_t preinit(const char *vo_subdevice) { const char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid";
--- a/libvo/vo_aa.c Sun Jun 01 20:27:32 2003 +0000 +++ b/libvo/vo_aa.c Sun Jun 01 21:59:29 2003 +0000 @@ -28,6 +28,7 @@ #include "video_out_internal.h" #include "aspect.h" #include "../postproc/swscale.h" +#include "../libmpcodecs/vf_scale.h" #include "font_load.h" #include "sub.h"
--- a/libvo/vo_vesa.c Sun Jun 01 20:27:32 2003 +0000 +++ b/libvo/vo_vesa.c Sun Jun 01 21:59:29 2003 +0000 @@ -45,6 +45,7 @@ #endif #include "../postproc/swscale.h" +#include "../libmpcodecs/vf_scale.h" #ifdef HAVE_PNG