Mercurial > mplayer.hg
comparison libvo/mga_common.c @ 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 | be14ff86b4e5 |
children | 85e503ddf65f |
comparison
equal
deleted
inserted
replaced
10232:939ff11825de | 10233:35f52ad860a0 |
---|---|
2 #include "fastmemcpy.h" | 2 #include "fastmemcpy.h" |
3 #include "../mmx_defs.h" | 3 #include "../mmx_defs.h" |
4 #include "../cpudetect.h" | 4 #include "../cpudetect.h" |
5 #include "../postproc/swscale.h" | 5 #include "../postproc/swscale.h" |
6 #include "../postproc/rgb2rgb.h" | 6 #include "../postproc/rgb2rgb.h" |
7 #include "../libmpcodecs/vf_scale.h" | |
7 #include "mp_msg.h" | 8 #include "mp_msg.h" |
8 | 9 |
9 // mga_vid drawing functions | 10 // mga_vid drawing functions |
10 static void set_window( void ); /* forward declaration to kill warnings */ | 11 static void set_window( void ); /* forward declaration to kill warnings */ |
11 #ifdef VO_XMGA | 12 #ifdef VO_XMGA |
413 f = -1; | 414 f = -1; |
414 } | 415 } |
415 return 0; | 416 return 0; |
416 } | 417 } |
417 | 418 |
418 static int get_sws_cpuflags(){ | |
419 return | |
420 (gCpuCaps.hasMMX ? SWS_CPU_CAPS_MMX : 0) | |
421 | (gCpuCaps.hasMMX2 ? SWS_CPU_CAPS_MMX2 : 0) | |
422 | (gCpuCaps.has3DNow ? SWS_CPU_CAPS_3DNOW : 0); | |
423 } | |
424 | |
425 static uint32_t preinit(const char *vo_subdevice) | 419 static uint32_t preinit(const char *vo_subdevice) |
426 { | 420 { |
427 const char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid"; | 421 const char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid"; |
428 sws_rgb2rgb_init(get_sws_cpuflags()); | 422 sws_rgb2rgb_init(get_sws_cpuflags()); |
429 | 423 |