Lines Matching defs:ref

239 void LumaMotionComp(uint8 *ref, int picwidth, int picheight,
259 ref += y_pos * picwidth + x_pos;
260 FullPelMC(ref, picwidth, pred, pred_pitch, blkwidth, blkheight);
264 CreatePad(ref, picwidth, picheight, x_pos, y_pos, &temp[0][0], blkwidth, blkheight);
274 ref += y_pos * picwidth + x_pos;
276 HorzInterp1MC(ref, picwidth, pred, pred_pitch, blkwidth, blkheight, dx);
280 CreatePad(ref, picwidth, picheight, x_pos - 2, y_pos, &temp[0][0], blkwidth + 5, blkheight);
290 ref += y_pos * picwidth + x_pos;
292 VertInterp1MC(ref, picwidth, pred, pred_pitch, blkwidth, blkheight, dy);
296 CreatePad(ref, picwidth, picheight, x_pos, y_pos - 2, &temp[0][0], blkwidth, blkheight + 5);
306 ref += y_pos * picwidth + x_pos - 2; /* move to the left 2 pixels */
308 VertInterp2MC(ref, picwidth, &temp2[0][0], 21, blkwidth + 5, blkheight);
314 CreatePad(ref, picwidth, picheight, x_pos - 2, y_pos - 2, &temp[0][0], blkwidth + 5, blkheight + 5);
326 ref += (y_pos - 2) * picwidth + x_pos; /* move to up 2 lines */
328 HorzInterp3MC(ref, picwidth, &temp2[0][0], 21, blkwidth, blkheight + 5);
333 CreatePad(ref, picwidth, picheight, x_pos - 2, y_pos - 2, &temp[0][0], blkwidth + 5, blkheight + 5);
344 ref2 = ref + (y_pos + (dy / 2)) * picwidth + x_pos;
346 ref += (y_pos * picwidth) + x_pos + (dx / 2);
348 DiagonalInterpMC(ref2, ref, picwidth, pred, pred_pitch, blkwidth, blkheight);
352 CreatePad(ref, picwidth, picheight, x_pos - 2, y_pos - 2, &temp[0][0], blkwidth + 5 + (dx / 2), blkheight + 5 + (dy / 2));
356 ref = &temp[2][2 + (dx/2)];
358 DiagonalInterpMC(ref2, ref, 24, pred, pred_pitch, blkwidth, blkheight);
365 void CreateAlign(uint8 *ref, int picwidth, int y_pos,
375 switch (((uint32)ref)&0x3)
378 ref += y_pos * picwidth;
382 pix1 = *ref++;
383 pix2 = *((uint16*)ref);
384 ref += 2;
389 pix4 = *((uint32*)ref);
390 ref += 4;
397 ref += offset;
402 ref += y_pos * picwidth;
406 result = *((uint16*)ref);
407 ref += 2;
410 pix4 = *((uint32*)ref);
411 ref += 4;
418 ref += offset;
423 ref += y_pos * picwidth;
427 result = *ref++;
430 pix4 = *((uint32*)ref);
431 ref += 4;
438 ref += offset;
445 void CreatePad(uint8 *ref, int picwidth, int picheight, int x_pos, int y_pos,
496 ref += y_pos * picwidth + x_pos;
513 *out++ = *ref;
517 *out++ = *ref++;
520 ref += y_inc;
533 *out++ = *ref++;
537 *out++ = *ref;
540 ref += y_inc;
1101 r1 = *((uint32*)(p_ref + (inpitch << 1))); /* r1, r7, ref[3] */
1108 r2 = *((uint32*)p_ref); /* r2, r8, ref[1] */
1112 r1 = *((uint32*)(p_ref - inpitch)); /* r1, r7, ref[0] */
1124 r2 = *((uint32*)(p_ref - (inpitch << 1))); /* r2, r8, ref[-1] */
1128 r1 = *((uint32*)(p_ref + inpitch)); /* r1, r7, ref[2] */
1249 r1 = *((uint32*)(p_ref + (inpitch << 1))); /* r1, r7, ref[3] */
1256 r2 = *((uint32*)p_ref); /* r2, r8, ref[1] */
1260 r1 = *((uint32*)(p_ref - inpitch)); /* r1, r7, ref[0] */
1272 r2 = *((uint32*)(p_ref - (inpitch << 1))); /* r2, r8, ref[-1] */
1276 r1 = *((uint32*)(p_ref + inpitch)); /* r1, r7, ref[2] */
1782 r1 = *((uint32*)(p_ref + (inpitch << 1))); /* r1, r7, ref[3] */
1791 r2 = *((uint32*)p_ref); /* r2, r8, ref[1] */
1798 r1 = *((uint32*)(p_ref - inpitch)); /* r1, r7, ref[0] */
1812 r2 = *((uint32*)(p_ref - (inpitch << 1))); /* r2, r8, ref[-1] */
1819 r1 = *((uint32*)(p_ref + inpitch)); /* r1, r7, ref[2] */
1980 void ChromaMotionComp(uint8 *ref, int picwidth, int picheight,
1999 ref += y_pos * picwidth + x_pos;
2003 CreatePad(ref, picwidth, picheight, x_pos, y_pos, &temp[0][0], blkwidth + offset_dx, blkheight + offset_dy);
2004 ref = &temp[0][0];
2010 (*(ChromaMC_SIMD[index]))(ref, picwidth , dx, dy, pred, pred_pitch, blkwidth, blkheight);
2021 uint8 *ref, *out;
2030 ref = pRef;
2031 r0 = ref[0];
2034 r0 |= (ref[2] << 16);
2037 r1 = ref[1] | (ref[3] << 16);
2043 r2 = ref[4];
2049 ref += 4;
2058 ref = temp;
2062 r0 = *(int32 *)ref;
2063 r1 = *(int32 *)(ref + 16);
2064 ref += 32;
2069 r2 = *(int32 *)ref;
2076 r3 = *(int32 *)(ref + 16);
2083 ref += 32;
2086 r2 = *(int32 *)ref;
2093 r3 = *(int32 *)(ref + 16);
2100 ref += 32;
2103 ref = temp + 4; /* since it can only iterate twice max */
2113 uint8 *ref, *out;
2120 ref = pRef;
2123 r0 = ref[0];
2126 r0 |= (ref[2] << 16);
2129 r1 = ref[1] | (ref[3] << 16);
2136 r2 = ref[4];
2145 ref += 4;
2162 uint8 *ref, *out;
2167 ref = pRef;
2170 r0 = ref[0] | (ref[2] << 16);
2171 r1 = ref[1] | (ref[3] << 16);
2172 ref += srcPitch;
2176 r2 = ref[0] | (ref[2] << 16);
2183 r3 = ref[1] | (ref[3] << 16);
2189 ref += srcPitch;