Lines Matching refs:top

183 void ff_cavs_load_intra_pred_luma(AVSContext *h, uint8_t *top,
193 memcpy(&top[1], &h->top_border_y[h->mbx * 16], 16);
194 top[17] = top[16];
195 top[0] = top[1];
197 h->left_border_y[0] = top[0] = h->topleft_border_y;
205 memcpy(&top[1], &h->top_border_y[h->mbx * 16 + 8], 8);
207 memcpy(&top[9], &h->top_border_y[(h->mbx + 1) * 16], 8);
209 memset(&top[9], top[8], 9);
210 top[17] = top[16];
211 top[0] = top[1];
213 h->intern_border_y[0] = top[0] = h->top_border_y[h->mbx * 16 + 7];
217 memcpy(&top[1], h->cy + 7 * h->l_stride, 16);
218 top[17] = top[16];
219 top[0] = top[1];
221 top[0] = h->left_border_y[8];
228 memcpy(&top[0], h->cy + 7 + 7 * h->l_stride, 9);
229 memset(&top[9], top[8], 9);
257 static void intra_pred_vert(uint8_t *d, uint8_t *top, uint8_t *left, ptrdiff_t stride)
260 uint64_t a = AV_RN64(&top[1]);
265 static void intra_pred_horiz(uint8_t *d, uint8_t *top, uint8_t *left, ptrdiff_t stride)
275 static void intra_pred_dc_128(uint8_t *d, uint8_t *top, uint8_t *left, ptrdiff_t stride)
283 static void intra_pred_plane(uint8_t *d, uint8_t *top, uint8_t *left, ptrdiff_t stride)
291 ih += (x + 1) * (top[5 + x] - top[3 - x]);
294 ia = (top[8] + left[8]) << 4;
305 static void intra_pred_lp(uint8_t *d, uint8_t *top, uint8_t *left, ptrdiff_t stride)
310 d[y * stride + x] = (LOWPASS(top, x + 1) + LOWPASS(left, y + 1)) >> 1;
313 static void intra_pred_down_left(uint8_t *d, uint8_t *top, uint8_t *left, ptrdiff_t stride)
318 d[y * stride + x] = (LOWPASS(top, x + y + 2) + LOWPASS(left, x + y + 2)) >> 1;
321 static void intra_pred_down_right(uint8_t *d, uint8_t *top, uint8_t *left, ptrdiff_t stride)
327 d[y * stride + x] = (left[1] + 2 * top[0] + top[1] + 2) >> 2;
329 d[y * stride + x] = LOWPASS(top, x - y);
334 static void intra_pred_lp_left(uint8_t *d, uint8_t *top, uint8_t *left, ptrdiff_t stride)
342 static void intra_pred_lp_top(uint8_t *d, uint8_t *top, uint8_t *left, ptrdiff_t stride)
347 d[y * stride + x] = LOWPASS(top, x + 1);
585 mvC = &h->mv[nP - 5]; // set to top-left (mvD)
639 /* copy predictors from top line (MB B and C) into cache */
646 /* clear top predictors if MB B is not available */
659 /* clear top-right predictors if MB C is not available */
664 /* clear top-left predictors if MB D is not available */
687 /* copy bottom mvs from cache to top line */
753 * some predictions require data from the top-neighbouring macroblock.
759 /* alloc top line of predictors */