[cvs] / xvidcore / src / motion / motion.h Repository: Repository Listing cvs

# Diff of /xvidcore/src/motion/motion.h

revision 1.13.2.3, Thu Oct 3 08:26:19 2002 UTC revision 1.13.2.4, Wed Oct 30 18:01:34 2002 UTC
# 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.1.13.2.3 changed lines Added in v.1.13.2.4