Lines Matching full:top

239                                      const uint8_t* top, int size) {  in VerticalPred()  argument
241 if (top != NULL) { in VerticalPred()
242 for (j = 0; j < size; ++j) memcpy(dst + j * BPS, top, size); in VerticalPred()
261 const uint8_t* top, int size) { in TrueMotion() argument
264 if (top != NULL) { in TrueMotion()
270 dst[x] = clip_table[top[x]]; in TrueMotion()
279 // is equivalent to VE prediction where you just copy the top samples. in TrueMotion()
280 // Note that if top samples are not available, the default value is in TrueMotion()
282 if (top != NULL) { in TrueMotion()
283 VerticalPred(dst, top, size); in TrueMotion()
291 const uint8_t* top, in DCMode() argument
295 if (top != NULL) { in DCMode()
296 for (j = 0; j < size; ++j) DC += top[j]; in DCMode()
297 if (left != NULL) { // top and left present in DCMode()
299 } else { // top, but no left in DCMode()
303 } else if (left != NULL) { // left but no top in DCMode()
307 } else { // no top, no left, nothing. in DCMode()
317 const uint8_t* top) { in IntraChromaPreds_C() argument
319 DCMode(C8DC8 + dst, left, top, 8, 8, 4); in IntraChromaPreds_C()
320 VerticalPred(C8VE8 + dst, top, 8); in IntraChromaPreds_C()
322 TrueMotion(C8TM8 + dst, left, top, 8); in IntraChromaPreds_C()
325 if (top != NULL) top += 8; in IntraChromaPreds_C()
327 DCMode(C8DC8 + dst, left, top, 8, 8, 4); in IntraChromaPreds_C()
328 VerticalPred(C8VE8 + dst, top, 8); in IntraChromaPreds_C()
330 TrueMotion(C8TM8 + dst, left, top, 8); in IntraChromaPreds_C()
337 const uint8_t* left, const uint8_t* top) { in Intra16Preds_C() argument
338 DCMode(I16DC16 + dst, left, top, 16, 16, 5); in Intra16Preds_C()
339 VerticalPred(I16VE16 + dst, top, 16); in Intra16Preds_C()
341 TrueMotion(I16TM16 + dst, left, top, 16); in Intra16Preds_C()
351 static void VE4(uint8_t* dst, const uint8_t* top) { // vertical in VE4() argument
353 AVG3(top[-1], top[0], top[1]), in VE4()
354 AVG3(top[ 0], top[1], top[2]), in VE4()
355 AVG3(top[ 1], top[2], top[3]), in VE4()
356 AVG3(top[ 2], top[3], top[4]) in VE4()
364 static void HE4(uint8_t* dst, const uint8_t* top) { // horizontal in HE4() argument
365 const int X = top[-1]; in HE4()
366 const int I = top[-2]; in HE4()
367 const int J = top[-3]; in HE4()
368 const int K = top[-4]; in HE4()
369 const int L = top[-5]; in HE4()
376 static void DC4(uint8_t* dst, const uint8_t* top) { in DC4() argument
379 for (i = 0; i < 4; ++i) dc += top[i] + top[-5 + i]; in DC4()
383 static void RD4(uint8_t* dst, const uint8_t* top) { in RD4() argument
384 const int X = top[-1]; in RD4()
385 const int I = top[-2]; in RD4()
386 const int J = top[-3]; in RD4()
387 const int K = top[-4]; in RD4()
388 const int L = top[-5]; in RD4()
389 const int A = top[0]; in RD4()
390 const int B = top[1]; in RD4()
391 const int C = top[2]; in RD4()
392 const int D = top[3]; in RD4()
402 static void LD4(uint8_t* dst, const uint8_t* top) { in LD4() argument
403 const int A = top[0]; in LD4()
404 const int B = top[1]; in LD4()
405 const int C = top[2]; in LD4()
406 const int D = top[3]; in LD4()
407 const int E = top[4]; in LD4()
408 const int F = top[5]; in LD4()
409 const int G = top[6]; in LD4()
410 const int H = top[7]; in LD4()
420 static void VR4(uint8_t* dst, const uint8_t* top) { in VR4() argument
421 const int X = top[-1]; in VR4()
422 const int I = top[-2]; in VR4()
423 const int J = top[-3]; in VR4()
424 const int K = top[-4]; in VR4()
425 const int A = top[0]; in VR4()
426 const int B = top[1]; in VR4()
427 const int C = top[2]; in VR4()
428 const int D = top[3]; in VR4()
442 static void VL4(uint8_t* dst, const uint8_t* top) { in VL4() argument
443 const int A = top[0]; in VL4()
444 const int B = top[1]; in VL4()
445 const int C = top[2]; in VL4()
446 const int D = top[3]; in VL4()
447 const int E = top[4]; in VL4()
448 const int F = top[5]; in VL4()
449 const int G = top[6]; in VL4()
450 const int H = top[7]; in VL4()
464 static void HU4(uint8_t* dst, const uint8_t* top) { in HU4() argument
465 const int I = top[-2]; in HU4()
466 const int J = top[-3]; in HU4()
467 const int K = top[-4]; in HU4()
468 const int L = top[-5]; in HU4()
479 static void HD4(uint8_t* dst, const uint8_t* top) { in HD4() argument
480 const int X = top[-1]; in HD4()
481 const int I = top[-2]; in HD4()
482 const int J = top[-3]; in HD4()
483 const int K = top[-4]; in HD4()
484 const int L = top[-5]; in HD4()
485 const int A = top[0]; in HD4()
486 const int B = top[1]; in HD4()
487 const int C = top[2]; in HD4()
502 static void TM4(uint8_t* dst, const uint8_t* top) { in TM4() argument
504 const uint8_t* const clip = clip1 + 255 - top[-1]; in TM4()
506 const uint8_t* const clip_table = clip + top[-2 - y]; in TM4()
508 dst[x] = clip_table[top[x]]; in TM4()
518 // Left samples are top[-5 .. -2], top_left is top[-1], top are
519 // located at top[0..3], and top right is top[4..7]
520 static void Intra4Preds_C(uint8_t* dst, const uint8_t* top) { in Intra4Preds_C() argument
521 DC4(I4DC4 + dst, top); in Intra4Preds_C()
522 TM4(I4TM4 + dst, top); in Intra4Preds_C()
523 VE4(I4VE4 + dst, top); in Intra4Preds_C()
524 HE4(I4HE4 + dst, top); in Intra4Preds_C()
525 RD4(I4RD4 + dst, top); in Intra4Preds_C()
526 VR4(I4VR4 + dst, top); in Intra4Preds_C()
527 LD4(I4LD4 + dst, top); in Intra4Preds_C()
528 VL4(I4VL4 + dst, top); in Intra4Preds_C()
529 HD4(I4HD4 + dst, top); in Intra4Preds_C()
530 HU4(I4HU4 + dst, top); in Intra4Preds_C()