Home | History | Annotate | Download | only in src

Lines Matching refs:x_pos

48     uint32 x_pos, y_pos;
93 x_pos = (offset_x << 2) + *mv++; /*quarter pel */
99 eLumaMotionComp(ref_l, picPitch, picHeight, x_pos, y_pos,
104 eChromaMotionComp(ref_Cb, picWidth >> 1, picHeight >> 1, x_pos, y_pos,
107 eChromaMotionComp(ref_Cr, picWidth >> 1, picHeight >> 1, x_pos, y_pos,
122 int x_pos, int y_pos,
132 dx = x_pos & 3;
134 x_pos = x_pos >> 2; /* round it to full-pel resolution */
141 ref += y_pos * picpitch + x_pos;
149 ref += y_pos * picpitch + x_pos;
156 ref += y_pos * picpitch + x_pos;
163 ref += y_pos * picpitch + x_pos - 2; /* move to the left 2 pixels */
172 ref += (y_pos - 2) * picpitch + x_pos; /* move to up 2 lines */
180 ref2 = ref + (y_pos + (dy / 2)) * picpitch + x_pos;
182 ref += (y_pos * picpitch) + x_pos + (dx / 2);
197 ref += y_pos * picpitch;// + x_pos;
200 //switch(x_pos&0x3){
1697 void ePadChroma(uint8 *ref, int picwidth, int picheight, int picpitch, int x_pos, int y_pos)
1707 pad_width = 8 + ((x_pos & 7) ? 1 : 0);
1710 x_pos >>= 3;
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;
1764 if (x_pos < 0) // pad left
1782 else if (x_pos + pad_width >= picwidth) /* pad right */
1806 int x_pos, int y_pos,
1814 ePadChroma(ref, picwidth, picheight, picpitch, x_pos, y_pos);
1816 dx = x_pos & 7;
1820 x_pos = x_pos >> 3; /* round it to full-pel resolution */
1823 ref += y_pos * picpitch + x_pos;