--- interpolate8x8.c 2003/06/09 13:54:02 1.10.2.3 +++ interpolate8x8.c 2003/03/04 16:33:41 1.11 @@ -1,33 +1,40 @@ -/***************************************************************************** +/************************************************************************** * * XVID MPEG-4 VIDEO CODEC - * - 8x8 block-based halfpel interpolation - + * 8x8 block-based halfpel interpolation * - * Copyright(C) 2001-2003 Peter Ross + * 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 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. * - * 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. * - * 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 + *************************************************************************/ + +/************************************************************************** + * + * History: * - * $Id: interpolate8x8.c,v 1.10.2.3 2003/06/09 13:54:02 edgomez Exp $ + * 05.10.2002 new bilinear and qpel interpolation code - Isibaar + * 27.12.2001 modified "compensate_halfpel" + * 05.11.2001 initial version; (c)2001 peter ross * - ****************************************************************************/ + *************************************************************************/ + #include "../portab.h" #include "../global.h" #include "interpolate8x8.h" -/* function pointers */ +// function pointers INTERPOLATE8X8_PTR interpolate8x8_halfpel_h; INTERPOLATE8X8_PTR interpolate8x8_halfpel_v; INTERPOLATE8X8_PTR interpolate8x8_halfpel_hv; @@ -93,7 +100,7 @@ } } -/* dst = interpolate(src) */ +// dst = interpolate(src) void interpolate8x8_halfpel_h_c(uint8_t * const dst, @@ -138,7 +145,7 @@ const uint32_t rounding) { intptr_t j; - +// const uint8_t * const src2 = src+stride; /* using a second pointer is _not_ faster here */ if (rounding) for (j = 0; j < 8*stride; j+=stride) /* forward is better. Some automatic prefetch perhaps. */ @@ -201,6 +208,9 @@ } } + + + /************************************************************* * QPEL STUFF STARTS HERE * *************************************************************/