--- reduced.h 2002/12/09 10:47:05 1.1.2.3 +++ reduced.h 2003/06/09 13:54:19 1.2.2.1 @@ -1,3 +1,28 @@ +/***************************************************************************** + * + * XVID MPEG-4 VIDEO CODEC + * - Reduced VOP header - + * + * Copyright(C) 2002 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: reduced.h,v 1.2.2.1 2003/06/09 13:54:19 edgomez Exp $ + * + ****************************************************************************/ + #ifndef _REDUCED_H_ #define _REDUCED_H_ @@ -43,4 +68,8 @@ extern FILTER_DIFF_18X18_TO_8X8 xvid_Filter_Diff_18x18_To_8x8_C; extern FILTER_DIFF_18X18_TO_8X8 xvid_Filter_Diff_18x18_To_8x8_mmx; + +/* rrv motion vector scale-up */ +#define RRV_MV_SCALEUP(a) ( (a)>0 ? 2*(a)-1 : (a)<0 ? 2*(a)+1 : (a) ) + #endif /* _REDUCED_H_ */