[Mplayer-cvslog] CVS: main/postproc postprocess.c,1.46,1.47
Michael Niedermayer
michael at mplayer.dev.hu
Sat Nov 24 03:05:08 CET 2001
- Previous message: [Mplayer-cvslog] CVS: main/postproc postprocess.c,1.45,1.46
- Next message: [Mplayer-cvslog] CVS: main/libao2 Makefile,1.11,1.12 ao_alsa5.c,1.7,1.8 ao_alsa9.c,1.10,1.11 ao_mpegpes.c,1.1,1.2 ao_null.c,1.4,1.5 ao_oss.c,1.11,1.12 ao_pcm.c,1.3,1.4 ao_sdl.c,1.13,1.14 ao_sgi.c,1.1,1.2 ao_sun.c,1.9,1.10 audio_out.c,1.18,1.19 audio_out.h,1.6,1.7 audio_out_internal.h,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv2754
Modified Files:
postprocess.c
Log Message:
use fastmemcpy for chrominance if no chrominance filtering is done
Index: postprocess.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/postprocess.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- postprocess.c 24 Nov 2001 01:38:30 -0000 1.46
+++ postprocess.c 24 Nov 2001 02:05:06 -0000 1.47
@@ -62,7 +62,6 @@
try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks
smart blur
commandline option for the deblock / dering thresholds
-memcpy chrominance if no chroma filtering is done
...
*/
@@ -80,6 +79,7 @@
//#define HAVE_3DNOW
//#undef HAVE_MMX
//#define DEBUG_BRIGHTNESS
+#include "../libvo/fastmemcpy.h"
#include "postprocess.h"
#define MIN(a,b) ((a) > (b) ? (b) : (a))
@@ -3037,20 +3037,32 @@
src_stride >>= 1;
dst_stride >>= 1;
- if(1)
+ if(ppMode.chromMode)
{
postProcess(src[1], src_stride, dst[1], dst_stride,
horizontal_size, vertical_size, QP_store, QP_stride, 1, &ppMode);
postProcess(src[2], src_stride, dst[2], dst_stride,
horizontal_size, vertical_size, QP_store, QP_stride, 2, &ppMode);
}
+ else if(src_stride == dst_stride)
+ {
+ memcpy(dst[1], src[1], src_stride*vertical_size);
+ memcpy(dst[2], src[2], src_stride*vertical_size);
+ }
else
{
+ int y;
+ for(y=0; y<vertical_size; y++)
+ {
+ memcpy(&(dst[1][y*dst_stride]), &(src[1][y*src_stride]), horizontal_size);
+ memcpy(&(dst[2][y*dst_stride]), &(src[2][y*src_stride]), horizontal_size);
+ }
+ }
+
+#if 0
memset(dst[1], 128, dst_stride*vertical_size);
memset(dst[2], 128, dst_stride*vertical_size);
-// memcpy(dst[1], src[1], src_stride*horizontal_size);
-// memcpy(dst[2], src[2], src_stride*horizontal_size);
- }
+#endif
}
void postprocess2(unsigned char * src[], int src_stride,
@@ -3085,10 +3097,27 @@
src_stride >>= 1;
dst_stride >>= 1;
- postProcess(src[1], src_stride, dst[1], dst_stride,
- horizontal_size, vertical_size, QP_store, QP_stride, 1, mode);
- postProcess(src[2], src_stride, dst[2], dst_stride,
- horizontal_size, vertical_size, QP_store, QP_stride, 2, mode);
+ if(mode->chromMode)
+ {
+ postProcess(src[1], src_stride, dst[1], dst_stride,
+ horizontal_size, vertical_size, QP_store, QP_stride, 1, mode);
+ postProcess(src[2], src_stride, dst[2], dst_stride,
+ horizontal_size, vertical_size, QP_store, QP_stride, 2, mode);
+ }
+ else if(src_stride == dst_stride)
+ {
+ memcpy(dst[1], src[1], src_stride*vertical_size);
+ memcpy(dst[2], src[2], src_stride*vertical_size);
+ }
+ else
+ {
+ int y;
+ for(y=0; y<vertical_size; y++)
+ {
+ memcpy(&(dst[1][y*dst_stride]), &(src[1][y*src_stride]), horizontal_size);
+ memcpy(&(dst[2][y*dst_stride]), &(src[2][y*src_stride]), horizontal_size);
+ }
+ }
}
- Previous message: [Mplayer-cvslog] CVS: main/postproc postprocess.c,1.45,1.46
- Next message: [Mplayer-cvslog] CVS: main/libao2 Makefile,1.11,1.12 ao_alsa5.c,1.7,1.8 ao_alsa9.c,1.10,1.11 ao_mpegpes.c,1.1,1.2 ao_null.c,1.4,1.5 ao_oss.c,1.11,1.12 ao_pcm.c,1.3,1.4 ao_sdl.c,1.13,1.14 ao_sgi.c,1.1,1.2 ao_sun.c,1.9,1.10 audio_out.c,1.18,1.19 audio_out.h,1.6,1.7 audio_out_internal.h,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list