Lines Matching defs: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 (((uint32)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;
822 r1 = *((uint32*)(p_ref + (inpitch << 1))); /* r1, r7, ref[3] */
829 r2 = *((uint32*)p_ref); /* r2, r8, ref[1] */
833 r1 = *((uint32*)(p_ref - inpitch)); /* r1, r7, ref[0] */
845 r2 = *((uint32*)(p_ref - (inpitch << 1))); /* r2, r8, ref[-1] */
849 r1 = *((uint32*)(p_ref + inpitch)); /* r1, r7, ref[2] */
970 r1 = *((uint32*)(p_ref + (inpitch << 1))); /* r1, r7, ref[3] */
977 r2 = *((uint32*)p_ref); /* r2, r8, ref[1] */
981 r1 = *((uint32*)(p_ref - inpitch)); /* r1, r7, ref[0] */
993 r2 = *((uint32*)(p_ref - (inpitch << 1))); /* r2, r8, ref[-1] */
997 r1 = *((uint32*)(p_ref + inpitch)); /* r1, r7, ref[2] */
1503 r1 = *((uint32*)(p_ref + (inpitch << 1))); /* r1, r7, ref[3] */
1512 r2 = *((uint32*)p_ref); /* r2, r8, ref[1] */
1519 r1 = *((uint32*)(p_ref - inpitch)); /* r1, r7, ref[0] */
1533 r2 = *((uint32*)(p_ref - (inpitch << 1))); /* r2, r8, ref[-1] */
1540 r1 = *((uint32*)(p_ref + inpitch)); /* r1, r7, ref[2] */
1701 void ePadChroma(uint8 *ref, int picwidth, int picheight, int picpitch, int x_pos, int y_pos)
1718 if (x_pos < -8) start = ref - 8;
1719 else if (x_pos + pad_width > picwidth + 7) start = ref + picwidth + 7 - pad_width;
1720 else start = ref + x_pos;
1743 if (x_pos < -8) start = ref + picpitch * (picheight - 1) - 8;
1744 else if (x_pos + pad_width > picwidth + 7) start = ref + picpitch * (picheight - 1) +
1746 else start = ref + picpitch * (picheight - 1) + x_pos;
1770 if (y_pos < -8) start = ref - (picpitch << 3);
1771 else if (y_pos + pad_height > picheight + 7) start = ref + (picheight + 7 - pad_height) * picpitch;
1772 else start = ref + y_pos * picpitch;
1788 if (y_pos < -8) start = ref - (picpitch << 3) + picwidth - 1;
1789 else if (y_pos + pad_height > picheight + 7) start = ref + (picheight + 7 - pad_height) * picpitch + picwidth - 1;
1790 else start = ref + y_pos * picpitch + picwidth - 1;
1809 void eChromaMotionComp(uint8 *ref, int picwidth, int picheight,
1818 ePadChroma(ref, picwidth, picheight, picpitch, x_pos, y_pos);
1827 ref += y_pos * picpitch + x_pos;
1831 (*(eChromaMC_SIMD[index]))(ref, picpitch , dx, dy, pred, picpitch, blkwidth, blkheight);
1842 uint8 *ref, *out;
1851 ref = pRef;
1852 r0 = ref[0];
1855 r0 |= (ref[2] << 16);
1858 r1 = ref[1] | (ref[3] << 16);
1864 r2 = ref[4];
1870 ref += 4;
1879 ref = temp;
1883 r0 = *(int32 *)ref;
1884 r1 = *(int32 *)(ref + 16);
1885 ref += 32;
1890 r2 = *(int32 *)ref;
1897 r3 = *(int32 *)(ref + 16);
1904 ref += 32;
1907 r2 = *(int32 *)ref;
1914 r3 = *(int32 *)(ref + 16);
1921 ref += 32;
1924 ref = temp + 4; /* since it can only iterate twice max */
1935 uint8 *ref, *out;
1942 ref = pRef;
1945 r0 = ref[0];
1948 r0 |= (ref[2] << 16);
1951 r1 = ref[1] | (ref[3] << 16);
1958 r2 = ref[4];
1967 ref += 4;
1985 uint8 *ref, *out;
1990 ref = pRef;
1993 r0 = ref[0] | (ref[2] << 16);
1994 r1 = ref[1] | (ref[3] << 16);
1995 ref += srcPitch;
1999 r2 = ref[0] | (ref[2] << 16);
2006 r3 = ref[1] | (ref[3] << 16);
2012 ref += srcPitch;