--- branches/dev-api-4/xvidcore/src/motion/gmc.h 2003/09/10 19:28:40 1141 +++ branches/dev-api-4/xvidcore/src/motion/gmc.h 2003/09/10 22:19:00 1142 @@ -1,33 +1,38 @@ -/************************************************************************** +/***************************************************************************** * - * XVID MPEG-4 VIDEO CODEC - * GMC interpolation module + * XVID MPEG-4 VIDEO CODEC + * - GMC interpolation module header - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Copyright(C) 2002-2003 Pascal Massimino * - *************************************************************************/ + * This program is free software ; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation ; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY ; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program ; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * $Id: gmc.h,v 1.1.2.3 2003-09-10 22:18:59 edgomez Exp $ + * + ****************************************************************************/ #include "../portab.h" #include "../global.h" /* This is borrowed from decoder.c */ -static __inline int gmc_sanitize(int value, int quarterpel, int fcode) +static __inline int +gmc_sanitize(int value, int quarterpel, int fcode) { int length = 1 << (fcode+4); -// if (quarterpel) value *= 2; + if (quarterpel) value *= 2; if (value < -length) return -length;