96 |
INTERPOLATE8X8 interpolate8x8_halfpel_v_c; |
INTERPOLATE8X8 interpolate8x8_halfpel_v_c; |
97 |
INTERPOLATE8X8 interpolate8x8_halfpel_hv_c; |
INTERPOLATE8X8 interpolate8x8_halfpel_hv_c; |
98 |
|
|
99 |
|
#ifdef ARCH_IS_IA32 |
100 |
INTERPOLATE8X8 interpolate8x8_halfpel_h_mmx; |
INTERPOLATE8X8 interpolate8x8_halfpel_h_mmx; |
101 |
INTERPOLATE8X8 interpolate8x8_halfpel_v_mmx; |
INTERPOLATE8X8 interpolate8x8_halfpel_v_mmx; |
102 |
INTERPOLATE8X8 interpolate8x8_halfpel_hv_mmx; |
INTERPOLATE8X8 interpolate8x8_halfpel_hv_mmx; |
112 |
INTERPOLATE8X8 interpolate8x8_halfpel_h_3dne; |
INTERPOLATE8X8 interpolate8x8_halfpel_h_3dne; |
113 |
INTERPOLATE8X8 interpolate8x8_halfpel_v_3dne; |
INTERPOLATE8X8 interpolate8x8_halfpel_v_3dne; |
114 |
INTERPOLATE8X8 interpolate8x8_halfpel_hv_3dne; |
INTERPOLATE8X8 interpolate8x8_halfpel_hv_3dne; |
115 |
|
#endif |
116 |
|
|
117 |
|
#ifdef ARCH_IS_IA64 |
118 |
INTERPOLATE8X8 interpolate8x8_halfpel_h_ia64; |
INTERPOLATE8X8 interpolate8x8_halfpel_h_ia64; |
119 |
INTERPOLATE8X8 interpolate8x8_halfpel_v_ia64; |
INTERPOLATE8X8 interpolate8x8_halfpel_v_ia64; |
120 |
INTERPOLATE8X8 interpolate8x8_halfpel_hv_ia64; |
INTERPOLATE8X8 interpolate8x8_halfpel_hv_ia64; |
121 |
|
#endif |
122 |
|
|
123 |
INTERPOLATE8X8_AVG2 interpolate8x8_avg2_c; |
INTERPOLATE8X8_AVG2 interpolate8x8_avg2_c; |
124 |
INTERPOLATE8X8_AVG4 interpolate8x8_avg4_c; |
INTERPOLATE8X8_AVG4 interpolate8x8_avg4_c; |
125 |
|
|
126 |
|
#ifdef ARCH_IS_IA32 |
127 |
INTERPOLATE8X8_AVG2 interpolate8x8_avg2_mmx; |
INTERPOLATE8X8_AVG2 interpolate8x8_avg2_mmx; |
128 |
INTERPOLATE8X8_AVG4 interpolate8x8_avg4_mmx; |
INTERPOLATE8X8_AVG4 interpolate8x8_avg4_mmx; |
129 |
|
#endif |
130 |
|
|
131 |
INTERPOLATE_LOWPASS interpolate8x8_lowpass_h_c; |
INTERPOLATE_LOWPASS interpolate8x8_lowpass_h_c; |
132 |
INTERPOLATE_LOWPASS interpolate8x8_lowpass_v_c; |
INTERPOLATE_LOWPASS interpolate8x8_lowpass_v_c; |
140 |
INTERPOLATE8X8_6TAP_LOWPASS interpolate8x8_6tap_lowpass_h_c; |
INTERPOLATE8X8_6TAP_LOWPASS interpolate8x8_6tap_lowpass_h_c; |
141 |
INTERPOLATE8X8_6TAP_LOWPASS interpolate8x8_6tap_lowpass_v_c; |
INTERPOLATE8X8_6TAP_LOWPASS interpolate8x8_6tap_lowpass_v_c; |
142 |
|
|
143 |
|
#ifdef ARCH_IS_IA32 |
144 |
INTERPOLATE8X8_6TAP_LOWPASS interpolate8x8_6tap_lowpass_h_mmx; |
INTERPOLATE8X8_6TAP_LOWPASS interpolate8x8_6tap_lowpass_h_mmx; |
145 |
INTERPOLATE8X8_6TAP_LOWPASS interpolate8x8_6tap_lowpass_v_mmx; |
INTERPOLATE8X8_6TAP_LOWPASS interpolate8x8_6tap_lowpass_v_mmx; |
146 |
|
#endif |
147 |
|
|
148 |
static __inline void |
static __inline void |
149 |
interpolate8x8_switch(uint8_t * const cur, |
interpolate8x8_switch(uint8_t * const cur, |
156 |
const uint32_t rounding) |
const uint32_t rounding) |
157 |
{ |
{ |
158 |
|
|
159 |
const uint8_t * const src = refn + (y + (dy>>1)) * stride + x + (dx>>1); |
const uint8_t * const src = refn + (int)((y + (dy>>1)) * stride + x + (dx>>1)); |
160 |
uint8_t * const dst = cur + y * stride + x; |
uint8_t * const dst = cur + (int)(y * stride + x); |
161 |
|
|
162 |
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) */ |
163 |
case 0: |
case 0: |
221 |
const uint32_t rounding) |
const uint32_t rounding) |
222 |
{ |
{ |
223 |
|
|
224 |
const uint8_t * const src = refn + (y + (dy>>1)) * stride + x + (dx>>1); |
const uint8_t * const src = refn + (int)((y + (dy>>1)) * stride + x + (dx>>1)); |
225 |
|
|
226 |
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) */ |
227 |
case 0: |
case 0: |