[svn] / trunk / xvidcore / src / motion / motion_comp.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/motion/motion_comp.c

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

revision 676, Mon Nov 25 13:38:56 2002 UTC revision 677, Tue Nov 26 23:44:11 2002 UTC
# Line 50  Line 50 
50   *  exception also makes it possible to release a modified version which   *  exception also makes it possible to release a modified version which
51   *  carries forward this exception.   *  carries forward this exception.
52   *   *
53   * $Id: motion_comp.c,v 1.15 2002-11-17 00:32:06 edgomez Exp $   * $Id: motion_comp.c,v 1.16 2002-11-26 23:44:10 edgomez Exp $
54   *   *
55   *************************************************************************/   *************************************************************************/
56    
# Line 78  Line 78 
78  {  {
79          int32_t ddx, ddy;          int32_t ddx, ddy;
80    
81          switch (((dx & 1) << 1) + (dy & 1))     // ((dx%2)?2:0)+((dy%2)?1:0)          switch (((dx & 1) << 1) + (dy & 1))     /* ((dx%2)?2:0)+((dy%2)?1:0) */
82          {          {
83          case 0:          case 0:
84                  ddx = dx / 2;                  ddx = dx / 2;
# Line 101  Line 101 
101                                                    refh + (int) ((y + ddy) * stride + x + ddx), stride);                                                    refh + (int) ((y + ddy) * stride + x + ddx), stride);
102                  break;                  break;
103    
104          default:                                        // case 3:          default:                                        /* case 3: */
105                  ddx = (dx - 1) / 2;                  ddx = (dx - 1) / 2;
106                  ddy = (dy - 1) / 2;                  ddy = (dy - 1) / 2;
107                  transfer_8to16sub(dct_codes, cur + y * stride + x,                  transfer_8to16sub(dct_codes, cur + y * stride + x,
# Line 167  Line 167 
167                                                    refv->v + 8 * j * edged_width / 2 + 8 * i,                                                    refv->v + 8 * j * edged_width / 2 + 8 * i,
168                                                    edged_width / 2);                                                    edged_width / 2);
169    
170          } else                                          // mode == MODE_INTER4V          } else                                          /* mode == MODE_INTER4V */
171          {          {
172                  int32_t sum, dx, dy;                  int32_t sum, dx, dy;
173    

Legend:
Removed from v.676  
changed lines
  Added in v.677

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