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

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

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

revision 1398, Fri Apr 2 21:29:21 2004 UTC revision 1708, Wed Jun 7 21:00:55 2006 UTC
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: gmc.c,v 1.3 2004-04-02 21:29:21 edgomez Exp $   * $Id: gmc.c,v 1.4 2006-06-07 21:00:55 Skal Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 223  Line 223 
223          int i, j;          int i, j;
224    
225          int32_t Offset;          int32_t Offset;
226          if (vo>=(-16*4) && vo<=H) Offset = (vo>>4)*srcstride;          if (vo>=(-16<<4) && vo<=H) Offset = (vo>>4)*srcstride;
227          else {          else {
228                  if (vo>H) Offset = ( H>>4)*srcstride;                  if (vo>H) Offset = ( H>>4)*srcstride;
229                  else Offset =-16*srcstride;                  else Offset =-16*srcstride;
230                  rj = MTab[0];                  rj = MTab[0];
231          }          }
232          if (uo>=(-16*4) && uo<=W) Offset += (uo>>4);          if (uo>=(-16<<4) && uo<=W) Offset += (uo>>4);
233          else {          else {
234                  if (uo>W) Offset += (W>>4);                  if (uo>W) Offset += (W>>4);
235                  else Offset -= 16;                  else Offset -= 16;
# Line 274  Line 274 
274          int i, j;          int i, j;
275    
276          int32_t Offset;          int32_t Offset;
277          if (vo>=(-8*4) && vo<=H) Offset = (vo>>4)*srcstride;          if (vo>=(-8<<4) && vo<=H) Offset = (vo>>4)*srcstride;
278          else {          else {
279                  if (vo>H) Offset = ( H>>4)*srcstride;                  if (vo>H) Offset = ( H>>4)*srcstride;
280                  else Offset =-8*srcstride;                  else Offset =-8*srcstride;
281                  rrj = MTab[0];                  rrj = MTab[0];
282          }          }
283          if (uo>=(-8*4) && uo<=W) Offset += (uo>>4);          if (uo>=(-8<<4) && uo<=W) Offset += (uo>>4);
284          else {          else {
285                  if (uo>W) Offset += ( W>>4);                  if (uo>W) Offset += ( W>>4);
286                  else Offset -= 8;                  else Offset -= 8;

Legend:
Removed from v.1398  
changed lines
  Added in v.1708

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