Lines Matching full:top
238 const uint8_t* top, int size) { in VerticalPred() argument
240 if (top != NULL) { in VerticalPred()
241 for (j = 0; j < size; ++j) memcpy(dst + j * BPS, top, size); in VerticalPred()
260 const uint8_t* top, int size) { in TrueMotion() argument
263 if (top != NULL) { in TrueMotion()
269 dst[x] = clip_table[top[x]]; in TrueMotion()
278 // is equivalent to VE prediction where you just copy the top samples. in TrueMotion()
279 // Note that if top samples are not available, the default value is in TrueMotion()
281 if (top != NULL) { in TrueMotion()
282 VerticalPred(dst, top, size); in TrueMotion()
290 const uint8_t* top, in DCMode() argument
294 if (top != NULL) { in DCMode()
295 for (j = 0; j < size; ++j) DC += top[j]; in DCMode()
296 if (left != NULL) { // top and left present in DCMode()
298 } else { // top, but no left in DCMode()
302 } else if (left != NULL) { // left but no top in DCMode()
306 } else { // no top, no left, nothing. in DCMode()
316 const uint8_t* top) { in IntraChromaPreds_C() argument
318 DCMode(C8DC8 + dst, left, top, 8, 8, 4); in IntraChromaPreds_C()
319 VerticalPred(C8VE8 + dst, top, 8); in IntraChromaPreds_C()
321 TrueMotion(C8TM8 + dst, left, top, 8); in IntraChromaPreds_C()
324 if (top != NULL) top += 8; in IntraChromaPreds_C()
326 DCMode(C8DC8 + dst, left, top, 8, 8, 4); in IntraChromaPreds_C()
327 VerticalPred(C8VE8 + dst, top, 8); in IntraChromaPreds_C()
329 TrueMotion(C8TM8 + dst, left, top, 8); in IntraChromaPreds_C()
336 const uint8_t* left, const uint8_t* top) { in Intra16Preds_C() argument
337 DCMode(I16DC16 + dst, left, top, 16, 16, 5); in Intra16Preds_C()
338 VerticalPred(I16VE16 + dst, top, 16); in Intra16Preds_C()
340 TrueMotion(I16TM16 + dst, left, top, 16); in Intra16Preds_C()
350 static void VE4(uint8_t* dst, const uint8_t* top) { // vertical in VE4() argument
352 AVG3(top[-1], top[0], top[1]), in VE4()
353 AVG3(top[ 0], top[1], top[2]), in VE4()
354 AVG3(top[ 1], top[2], top[3]), in VE4()
355 AVG3(top[ 2], top[3], top[4]) in VE4()
363 static void HE4(uint8_t* dst, const uint8_t* top) { // horizontal in HE4() argument
364 const int X = top[-1]; in HE4()
365 const int I = top[-2]; in HE4()
366 const int J = top[-3]; in HE4()
367 const int K = top[-4]; in HE4()
368 const int L = top[-5]; in HE4()
375 static void DC4(uint8_t* dst, const uint8_t* top) { in DC4() argument
378 for (i = 0; i < 4; ++i) dc += top[i] + top[-5 + i]; in DC4()
382 static void RD4(uint8_t* dst, const uint8_t* top) { in RD4() argument
383 const int X = top[-1]; in RD4()
384 const int I = top[-2]; in RD4()
385 const int J = top[-3]; in RD4()
386 const int K = top[-4]; in RD4()
387 const int L = top[-5]; in RD4()
388 const int A = top[0]; in RD4()
389 const int B = top[1]; in RD4()
390 const int C = top[2]; in RD4()
391 const int D = top[3]; in RD4()
401 static void LD4(uint8_t* dst, const uint8_t* top) { in LD4() argument
402 const int A = top[0]; in LD4()
403 const int B = top[1]; in LD4()
404 const int C = top[2]; in LD4()
405 const int D = top[3]; in LD4()
406 const int E = top[4]; in LD4()
407 const int F = top[5]; in LD4()
408 const int G = top[6]; in LD4()
409 const int H = top[7]; in LD4()
419 static void VR4(uint8_t* dst, const uint8_t* top) { in VR4() argument
420 const int X = top[-1]; in VR4()
421 const int I = top[-2]; in VR4()
422 const int J = top[-3]; in VR4()
423 const int K = top[-4]; in VR4()
424 const int A = top[0]; in VR4()
425 const int B = top[1]; in VR4()
426 const int C = top[2]; in VR4()
427 const int D = top[3]; in VR4()
441 static void VL4(uint8_t* dst, const uint8_t* top) { in VL4() argument
442 const int A = top[0]; in VL4()
443 const int B = top[1]; in VL4()
444 const int C = top[2]; in VL4()
445 const int D = top[3]; in VL4()
446 const int E = top[4]; in VL4()
447 const int F = top[5]; in VL4()
448 const int G = top[6]; in VL4()
449 const int H = top[7]; in VL4()
463 static void HU4(uint8_t* dst, const uint8_t* top) { in HU4() argument
464 const int I = top[-2]; in HU4()
465 const int J = top[-3]; in HU4()
466 const int K = top[-4]; in HU4()
467 const int L = top[-5]; in HU4()
478 static void HD4(uint8_t* dst, const uint8_t* top) { in HD4() argument
479 const int X = top[-1]; in HD4()
480 const int I = top[-2]; in HD4()
481 const int J = top[-3]; in HD4()
482 const int K = top[-4]; in HD4()
483 const int L = top[-5]; in HD4()
484 const int A = top[0]; in HD4()
485 const int B = top[1]; in HD4()
486 const int C = top[2]; in HD4()
501 static void TM4(uint8_t* dst, const uint8_t* top) { in TM4() argument
503 const uint8_t* const clip = clip1 + 255 - top[-1]; in TM4()
505 const uint8_t* const clip_table = clip + top[-2 - y]; in TM4()
507 dst[x] = clip_table[top[x]]; in TM4()
517 // Left samples are top[-5 .. -2], top_left is top[-1], top are
518 // located at top[0..3], and top right is top[4..7]
519 static void Intra4Preds_C(uint8_t* dst, const uint8_t* top) { in Intra4Preds_C() argument
520 DC4(I4DC4 + dst, top); in Intra4Preds_C()
521 TM4(I4TM4 + dst, top); in Intra4Preds_C()
522 VE4(I4VE4 + dst, top); in Intra4Preds_C()
523 HE4(I4HE4 + dst, top); in Intra4Preds_C()
524 RD4(I4RD4 + dst, top); in Intra4Preds_C()
525 VR4(I4VR4 + dst, top); in Intra4Preds_C()
526 LD4(I4LD4 + dst, top); in Intra4Preds_C()
527 VL4(I4VL4 + dst, top); in Intra4Preds_C()
528 HD4(I4HD4 + dst, top); in Intra4Preds_C()
529 HU4(I4HU4 + dst, top); in Intra4Preds_C()