diff common.h @ 327:d359db02fc90 libavcodec

much better ME for b frames (a bit slow though) fixed MC rounding for b frames fixed hq mode with b-frames
author michaelni
date Fri, 19 Apr 2002 03:25:20 +0000
parents 9c6f056f0e41
children 9f6071a87e17
line wrap: on
line diff
--- a/common.h	Wed Apr 17 18:19:50 2002 +0000
+++ b/common.h	Fri Apr 19 03:25:20 2002 +0000
@@ -881,6 +881,16 @@
     return a + b + c - vmin - vmax;
 }
 
+static inline int clip(int a, int amin, int amax)
+{
+    if (a < amin)
+        return amin;
+    else if (a > amax)
+        return amax;
+    else
+        return a;
+}
+
 /* memory */
 void *av_mallocz(int size);