[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec vp3.c,1.49,1.50
Michael Niedermayer CVS
michael
Tue May 17 22:30:25 CEST 2005
- Previous message: [Ffmpeg-cvslog] CVS: ffmpeg/libavcodec vorbis.c, NONE, 1.1 vorbis.h, NONE, 1.1 Makefile, 1.186, 1.187 avcodec.h, 1.396, 1.397 allcodecs.c, 1.103, 1.104
- Next message: [Ffmpeg-cvslog] CVS: ffmpeg/libavcodec vp3.c,1.50,1.51
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv18356
Modified Files:
vp3.c
Log Message:
SATURATE_U8 -> clip_uint8 (10% faster loop filter)
Index: vp3.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/vp3.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- vp3.c 17 May 2005 11:36:07 -0000 1.49
+++ vp3.c 17 May 2005 20:30:22 -0000 1.50
@@ -2245,8 +2245,6 @@
emms_c();
}
-#define SATURATE_U8(x) ((x) < 0) ? 0 : ((x) > 255) ? 255 : x
-
static void horizontal_filter(unsigned char *first_pixel, int stride,
int *bounding_values)
{
@@ -2260,8 +2258,8 @@
(first_pixel[ 0] * 3) -
(first_pixel[ 1] * 1);
filter_value = bounding_values[(filter_value + 4) >> 3];
- first_pixel[-1] = SATURATE_U8(first_pixel[-1] + filter_value);
- first_pixel[ 0] = SATURATE_U8(first_pixel[ 0] - filter_value);
+ first_pixel[-1] = clip_uint8(first_pixel[-1] + filter_value);
+ first_pixel[ 0] = clip_uint8(first_pixel[ 0] - filter_value);
}
}
@@ -2278,8 +2276,8 @@
(first_pixel[ (0 )] * 3) -
(first_pixel[ (1 * stride)] * 1);
filter_value = bounding_values[(filter_value + 4) >> 3];
- first_pixel[-(1 * stride)] = SATURATE_U8(first_pixel[-(1 * stride)] + filter_value);
- first_pixel[0] = SATURATE_U8(first_pixel[0] - filter_value);
+ first_pixel[-(1 * stride)] = clip_uint8(first_pixel[-(1 * stride)] + filter_value);
+ first_pixel[0] = clip_uint8(first_pixel[0] - filter_value);
}
}
- Previous message: [Ffmpeg-cvslog] CVS: ffmpeg/libavcodec vorbis.c, NONE, 1.1 vorbis.h, NONE, 1.1 Makefile, 1.186, 1.187 avcodec.h, 1.396, 1.397 allcodecs.c, 1.103, 1.104
- Next message: [Ffmpeg-cvslog] CVS: ffmpeg/libavcodec vp3.c,1.50,1.51
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the ffmpeg-cvslog
mailing list