Lines Matching refs:ref

121 void eLumaMotionComp(uint8 *ref, int picpitch, int picheight,
141 ref += y_pos * picpitch + x_pos;
143 eFullPelMC(ref, picpitch, pred, pred_pitch, blkwidth, blkheight);
149 ref += y_pos * picpitch + x_pos;
151 eHorzInterp1MC(ref, picpitch, pred, pred_pitch, blkwidth, blkheight, dx);
156 ref += y_pos * picpitch + x_pos;
158 eVertInterp1MC(ref, picpitch, pred, pred_pitch, blkwidth, blkheight, dy);
163 ref += y_pos * picpitch + x_pos - 2; /* move to the left 2 pixels */
165 eVertInterp2MC(ref, picpitch, &temp2[0][0], 21, blkwidth + 5, blkheight);
172 ref += (y_pos - 2) * picpitch + x_pos; /* move to up 2 lines */
174 eHorzInterp3MC(ref, picpitch, &temp2[0][0], 21, blkwidth, blkheight + 5);
180 ref2 = ref + (y_pos + (dy / 2)) * picpitch + x_pos;
182 ref += (y_pos * picpitch) + x_pos + (dx / 2);
184 eDiagonalInterpMC(ref2, ref, picpitch, pred, pred_pitch, blkwidth, blkheight);
190 void eCreateAlign(uint8 *ref, int picpitch, int y_pos,
197 ref += y_pos * picpitch;// + x_pos;
201 switch (((intptr_t)ref)&0x3)
207 pix1 = *ref++;
208 pix2 = *((uint16*)ref);
209 ref += 2;
214 pix4 = *((uint32*)ref);
215 ref += 4;
222 ref += offset;
230 result = *((uint16*)ref);
231 ref += 2;
234 pix4 = *((uint32*)ref);
235 ref += 4;
242 ref += offset;
250 result = *ref++;
253 pix4 = *((uint32*)ref);
254 ref += 4;
261 ref += offset;
820 r1 = *((uint32*)(p_ref + (inpitch << 1))); /* r1, r7, ref[3] */
827 r2 = *((uint32*)p_ref); /* r2, r8, ref[1] */
831 r1 = *((uint32*)(p_ref - inpitch)); /* r1, r7, ref[0] */
843 r2 = *((uint32*)(p_ref - (inpitch << 1))); /* r2, r8, ref[-1] */
847 r1 = *((uint32*)(p_ref + inpitch)); /* r1, r7, ref[2] */
968 r1 = *((uint32*)(p_ref + (inpitch << 1))); /* r1, r7, ref[3] */
975 r2 = *((uint32*)p_ref); /* r2, r8, ref[1] */
979 r1 = *((uint32*)(p_ref - inpitch)); /* r1, r7, ref[0] */
991 r2 = *((uint32*)(p_ref - (inpitch << 1))); /* r2, r8, ref[-1] */
995 r1 = *((uint32*)(p_ref + inpitch)); /* r1, r7, ref[2] */
1499 r1 = *((uint32*)(p_ref + (inpitch << 1))); /* r1, r7, ref[3] */
1508 r2 = *((uint32*)p_ref); /* r2, r8, ref[1] */
1515 r1 = *((uint32*)(p_ref - inpitch)); /* r1, r7, ref[0] */
1529 r2 = *((uint32*)(p_ref - (inpitch << 1))); /* r2, r8, ref[-1] */
1536 r1 = *((uint32*)(p_ref + inpitch)); /* r1, r7, ref[2] */
1697 void ePadChroma(uint8 *ref, int picwidth, int picheight, int picpitch, int x_pos, int y_pos)
1714 if (x_pos < -8) start = ref - 8;
1715 else if (x_pos + pad_width > picwidth + 7) start = ref + picwidth + 7 - pad_width;
1716 else start = ref + x_pos;
1739 if (x_pos < -8) start = ref + picpitch * (picheight - 1) - 8;
1740 else if (x_pos + pad_width > picwidth + 7) start = ref + picpitch * (picheight - 1) +
1742 else start = ref + picpitch * (picheight - 1) + x_pos;
1766 if (y_pos < -8) start = ref - (picpitch << 3);
1767 else if (y_pos + pad_height > picheight + 7) start = ref + (picheight + 7 - pad_height) * picpitch;
1768 else start = ref + y_pos * picpitch;
1784 if (y_pos < -8) start = ref - (picpitch << 3) + picwidth - 1;
1785 else if (y_pos + pad_height > picheight + 7) start = ref + (picheight + 7 - pad_height) * picpitch + picwidth - 1;
1786 else start = ref + y_pos * picpitch + picwidth - 1;
1805 void eChromaMotionComp(uint8 *ref, int picwidth, int picheight,
1814 ePadChroma(ref, picwidth, picheight, picpitch, x_pos, y_pos);
1823 ref += y_pos * picpitch + x_pos;
1827 (*(eChromaMC_SIMD[index]))(ref, picpitch , dx, dy, pred, picpitch, blkwidth, blkheight);
1838 uint8 *ref, *out;
1847 ref = pRef;
1848 r0 = ref[0];
1851 r0 |= (ref[2] << 16);
1854 r1 = ref[1] | (ref[3] << 16);
1860 r2 = ref[4];
1866 ref += 4;
1875 ref = temp;
1879 r0 = *(int32 *)ref;
1880 r1 = *(int32 *)(ref + 16);
1881 ref += 32;
1886 r2 = *(int32 *)ref;
1893 r3 = *(int32 *)(ref + 16);
1900 ref += 32;
1903 r2 = *(int32 *)ref;
1910 r3 = *(int32 *)(ref + 16);
1917 ref += 32;
1920 ref = temp + 4; /* since it can only iterate twice max */
1931 uint8 *ref, *out;
1938 ref = pRef;
1941 r0 = ref[0];
1944 r0 |= (ref[2] << 16);
1947 r1 = ref[1] | (ref[3] << 16);
1954 r2 = ref[4];
1963 ref += 4;
1981 uint8 *ref, *out;
1986 ref = pRef;
1989 r0 = ref[0] | (ref[2] << 16);
1990 r1 = ref[1] | (ref[3] << 16);
1991 ref += srcPitch;
1995 r2 = ref[0] | (ref[2] << 16);
2002 r3 = ref[1] | (ref[3] << 16);
2008 ref += srcPitch;