comparison 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
comparison
equal deleted inserted replaced
326:6ebb8680885d 327:d359db02fc90
879 vmax = c; 879 vmax = c;
880 880
881 return a + b + c - vmin - vmax; 881 return a + b + c - vmin - vmax;
882 } 882 }
883 883
884 static inline int clip(int a, int amin, int amax)
885 {
886 if (a < amin)
887 return amin;
888 else if (a > amax)
889 return amax;
890 else
891 return a;
892 }
893
884 /* memory */ 894 /* memory */
885 void *av_mallocz(int size); 895 void *av_mallocz(int size);
886 896
887 /* math */ 897 /* math */
888 int ff_gcd(int a, int b); 898 int ff_gcd(int a, int b);