[cvs] / xvidcore / src / image / interpolate8x8.h Repository:
ViewVC logotype

Diff of /xvidcore/src/image/interpolate8x8.h

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

revision 1.2, Fri May 3 00:45:10 2002 UTC revision 1.3, Wed Jun 12 20:38:40 2002 UTC
# Line 26  Line 26 
26  INTERPOLATE8X8 interpolate8x8_halfpel_v_3dn;  INTERPOLATE8X8 interpolate8x8_halfpel_v_3dn;
27  INTERPOLATE8X8 interpolate8x8_halfpel_hv_3dn;  INTERPOLATE8X8 interpolate8x8_halfpel_hv_3dn;
28    
29  static __inline void interpolate8x8_switch(uint8_t * const cur,  static __inline void
30    interpolate8x8_switch(uint8_t * const cur,
31                                       const uint8_t * const refn,                                       const uint8_t * const refn,
32                                       const uint32_t x, const uint32_t y,                                            const uint32_t x,
33                                           const int32_t dx,  const int dy,                                            const uint32_t y,
34                                              const int32_t dx,
35                                              const int dy,
36                                           const uint32_t stride,                                           const uint32_t stride,
37                                           const uint32_t rounding)                                           const uint32_t rounding)
38  {  {
# Line 40  Line 43 
43      case 0 :      case 0 :
44                  ddx = dx/2;                  ddx = dx/2;
45                  ddy = dy/2;                  ddy = dy/2;
46                  transfer8x8_copy(cur + y*stride + x, refn + (y+ddy)*stride + x + ddx, stride);                  transfer8x8_copy(cur + y * stride + x,
47                                                     refn + (y + ddy) * stride + x + ddx, stride);
48                  break;                  break;
49    
50      case 1 :      case 1 :
51                  ddx = dx/2;                  ddx = dx/2;
52                  ddy = (dy-1)/2;                  ddy = (dy-1)/2;
53                  interpolate8x8_halfpel_v(cur + y*stride + x,                  interpolate8x8_halfpel_v(cur + y*stride + x,
54                                                          refn + (y+ddy)*stride + x + ddx, stride, rounding);                                                                   refn + (y + ddy) * stride + x + ddx, stride,
55                                                                     rounding);
56                  break;                  break;
57    
58      case 2 :      case 2 :
59                  ddx = (dx-1)/2;                  ddx = (dx-1)/2;
60                  ddy = dy/2;                  ddy = dy/2;
61                  interpolate8x8_halfpel_h(cur + y*stride + x,                  interpolate8x8_halfpel_h(cur + y*stride + x,
62                                                          refn + (y+ddy)*stride + x + ddx, stride, rounding);                                                                   refn + (y + ddy) * stride + x + ddx, stride,
63                                                                     rounding);
64                  break;                  break;
65    
66      default :      default :
67                  ddx = (dx-1)/2;                  ddx = (dx-1)/2;
68                  ddy = (dy-1)/2;                  ddy = (dy-1)/2;
69                  interpolate8x8_halfpel_hv(cur + y*stride + x,                  interpolate8x8_halfpel_hv(cur + y*stride + x,
70                                                          refn + (y+ddy)*stride + x + ddx, stride, rounding);                                                                    refn + (y + ddy) * stride + x + ddx, stride,
71                                                                      rounding);
72                  break;                  break;
73      }      }
74  }  }
# Line 69  Line 76 
76    
77  void interpolate8x8_c(uint8_t * const dst,  void interpolate8x8_c(uint8_t * const dst,
78                                          const uint8_t * const src,                                          const uint8_t * const src,
79                                          const uint32_t x, const uint32_t y,                                            const uint32_t x,
80                                              const uint32_t y,
81                                          const uint32_t stride);                                          const uint32_t stride);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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