From f030f9e939d8949d43a6a4c11fc1e7c16617ca8d Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sat, 16 Feb 2002 22:43:24 +0000 Subject: beginning of video_out_driver changes - driver will ask gui for output size on every frame - shm driver has a seperate yuv2rgb converter instance for every frame - all drivers disabled except xshm, until they're fixed I'm planning to introduce a queue of video_out_events in video_out.c, so events are delivered by video_out_loop which means that all driver functions are called from the same thread (no locking necessary, should help the opengl driver) CVS patchset: 1499 CVS date: 2002/02/16 22:43:24 --- src/video_out/yuv2rgb_mmx.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/video_out/yuv2rgb_mmx.c') diff --git a/src/video_out/yuv2rgb_mmx.c b/src/video_out/yuv2rgb_mmx.c index 8c94e5cb5..853b3a82a 100644 --- a/src/video_out/yuv2rgb_mmx.c +++ b/src/video_out/yuv2rgb_mmx.c @@ -982,11 +982,12 @@ static void mmx_abgr32 (yuv2rgb_t *this, uint8_t * image, emms(); /* re-initialize x86 FPU after MMX use */ } -void yuv2rgb_init_mmxext (yuv2rgb_t *this, int mode, int swapped) -{ - if (swapped) return; /*no swapped pixel output upto now*/ +void yuv2rgb_init_mmxext (yuv2rgb_factory_t *this) { + + if (this->swapped) + return; /*no swapped pixel output upto now*/ - switch (mode) { + switch (this->mode) { case MODE_15_RGB: this->yuv2rgb_fun = mmxext_rgb15; break; @@ -1005,11 +1006,12 @@ void yuv2rgb_init_mmxext (yuv2rgb_t *this, int mode, int swapped) } } -void yuv2rgb_init_mmx (yuv2rgb_t *this, int mode, int swapped) -{ - if (swapped) return; /*no swapped pixel output upto now*/ +void yuv2rgb_init_mmx (yuv2rgb_factory_t *this) { + + if (this->swapped) + return; /*no swapped pixel output upto now*/ - switch (mode) { + switch (this->mode) { case MODE_15_RGB: this->yuv2rgb_fun = mmx_rgb15; break; -- cgit v1.2.3