[svn] / branches / dev-api-3 / xvidcore / src / motion / motion.h Repository:
ViewVC logotype

Diff of /branches/dev-api-3/xvidcore/src/motion/motion.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 615, Mon Oct 28 11:32:50 2002 UTC revision 616, Wed Oct 30 18:06:41 2002 UTC
# Line 26  Line 26 
26   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
27   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
28   *   *
29   *  $Id: motion.h,v 1.13.2.3 2002-10-03 08:26:19 syskin Exp $   *  $Id: motion.h,v 1.13.2.4 2002-10-30 18:01:34 Isibaar Exp $
30   *   *
31   ***************************************************************************/   ***************************************************************************/
32    
# Line 42  Line 42 
42  #define MVzero(A) ( ((A).x)==(0) && ((A).y)==(0) )  #define MVzero(A) ( ((A).x)==(0) && ((A).y)==(0) )
43  #define MVequal(A,B) ( ((A).x)==((B).x) && ((A).y)==((B).y) )  #define MVequal(A,B) ( ((A).x)==((B).x) && ((A).y)==((B).y) )
44    
45    static const uint32_t roundtab[16] =
46                    { 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2 };
47    
48    /*
49     * modified rounding tables
50     * original tables see ISO spec tables 7-6 -> 7-9
51     */
52    
53    /* K = 4 */
54    static const uint32_t roundtab_76[16] = { 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1 };
55    /* K = 2 */
56    static const uint32_t roundtab_78[8] = { 0, 0, 1, 1, 0, 0, 0, 1  };
57    /* K = 1 */
58    static const uint32_t roundtab_79[4] = { 0, 1, 0, 0 };
59    
60    
61  /*  /*
62   * getref: calculate reference image pointer   * getref: calculate reference image pointer
63   * the decision to use interpolation h/v/hv or the normal image is   * the decision to use interpolation h/v/hv or the normal image is
64   * based on dx & dy.   * based on dx & dy.
65   */   */
66    
 static const uint32_t roundtab[16] =  
                 { 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2 };  
   
   
67  static __inline const uint8_t *  static __inline const uint8_t *
68  get_ref(const uint8_t * const refn,  get_ref(const uint8_t * const refn,
69                  const uint8_t * const refh,                  const uint8_t * const refh,

Legend:
Removed from v.615  
changed lines
  Added in v.616

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4