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: qpel.h,v 1.3 2004-08-10 21:58:55 edgomez Exp $ |
* $Id: qpel.h,v 1.4 2004-10-12 21:08:41 edgomez Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
120 |
|
|
121 |
int32_t x_int, y_int; |
int32_t x_int, y_int; |
122 |
|
|
123 |
const int32_t xRef = x*4 + dx; |
const int32_t xRef = (int)x*4 + dx; |
124 |
const int32_t yRef = y*4 + dy; |
const int32_t yRef = (int)y*4 + dy; |
125 |
|
|
126 |
Ops = xvid_QP_Funcs; |
Ops = xvid_QP_Funcs; |
127 |
quads = (dx&3) | ((dy&3)<<2); |
quads = (dx&3) | ((dy&3)<<2); |
135 |
y_int--; |
y_int--; |
136 |
|
|
137 |
dst = cur + y * stride + x; |
dst = cur + y * stride + x; |
138 |
src = refn + y_int * stride + x_int; |
src = refn + y_int * (int)stride + x_int; |
139 |
|
|
140 |
tmp = refh; /* we need at least a 16 x stride scratch block */ |
tmp = refh; /* we need at least a 16 x stride scratch block */ |
141 |
|
|
223 |
|
|
224 |
int32_t x_int, y_int; |
int32_t x_int, y_int; |
225 |
|
|
226 |
const int32_t xRef = x*4 + dx; |
const int32_t xRef = (int)x*4 + dx; |
227 |
const int32_t yRef = y*4 + dy; |
const int32_t yRef = (int)y*4 + dy; |
228 |
|
|
229 |
Ops = xvid_QP_Add_Funcs; |
Ops = xvid_QP_Add_Funcs; |
230 |
Ops_Copy = xvid_QP_Funcs; |
Ops_Copy = xvid_QP_Funcs; |
239 |
y_int--; |
y_int--; |
240 |
|
|
241 |
dst = cur + y * stride + x; |
dst = cur + y * stride + x; |
242 |
src = refn + y_int * stride + x_int; |
src = refn + y_int * (int)stride + x_int; |
243 |
|
|
244 |
tmp = refh; /* we need at least a 16 x stride scratch block */ |
tmp = refh; /* we need at least a 16 x stride scratch block */ |
245 |
|
|
328 |
|
|
329 |
int32_t x_int, y_int; |
int32_t x_int, y_int; |
330 |
|
|
331 |
const int32_t xRef = x*4 + dx; |
const int32_t xRef = (int)x*4 + dx; |
332 |
const int32_t yRef = y*4 + dy; |
const int32_t yRef = (int)y*4 + dy; |
333 |
|
|
334 |
Ops = xvid_QP_Funcs; |
Ops = xvid_QP_Funcs; |
335 |
quads = (dx&3) | ((dy&3)<<2); |
quads = (dx&3) | ((dy&3)<<2); |
343 |
y_int--; |
y_int--; |
344 |
|
|
345 |
dst = cur + y * stride + x; |
dst = cur + y * stride + x; |
346 |
src = refn + y_int * stride + x_int; |
src = refn + y_int * (int)stride + x_int; |
347 |
|
|
348 |
tmp = refh; /* we need at least a 16 x stride scratch block */ |
tmp = refh; /* we need at least a 16 x stride scratch block */ |
349 |
|
|
428 |
|
|
429 |
int32_t x_int, y_int; |
int32_t x_int, y_int; |
430 |
|
|
431 |
const int32_t xRef = x*4 + dx; |
const int32_t xRef = (int)x*4 + dx; |
432 |
const int32_t yRef = y*4 + dy; |
const int32_t yRef = (int)y*4 + dy; |
433 |
|
|
434 |
Ops = xvid_QP_Funcs; |
Ops = xvid_QP_Funcs; |
435 |
quads = (dx&3) | ((dy&3)<<2); |
quads = (dx&3) | ((dy&3)<<2); |
443 |
y_int--; |
y_int--; |
444 |
|
|
445 |
dst = cur + y * stride + x; |
dst = cur + y * stride + x; |
446 |
src = refn + y_int * stride + x_int; |
src = refn + y_int * (int)stride + x_int; |
447 |
|
|
448 |
tmp = refh; /* we need at least a 16 x stride scratch block */ |
tmp = refh; /* we need at least a 16 x stride scratch block */ |
449 |
|
|
528 |
|
|
529 |
int32_t x_int, y_int; |
int32_t x_int, y_int; |
530 |
|
|
531 |
const int32_t xRef = x*4 + dx; |
const int32_t xRef = (int)x*4 + dx; |
532 |
const int32_t yRef = y*4 + dy; |
const int32_t yRef = (int)y*4 + dy; |
533 |
|
|
534 |
Ops = xvid_QP_Add_Funcs; |
Ops = xvid_QP_Add_Funcs; |
535 |
Ops_Copy = xvid_QP_Funcs; |
Ops_Copy = xvid_QP_Funcs; |
544 |
y_int--; |
y_int--; |
545 |
|
|
546 |
dst = cur + y * stride + x; |
dst = cur + y * stride + x; |
547 |
src = refn + y_int * stride + x_int; |
src = refn + y_int * (int)stride + x_int; |
548 |
|
|
549 |
tmp = refh; /* we need at least a 16 x stride scratch block */ |
tmp = refh; /* we need at least a 16 x stride scratch block */ |
550 |
|
|