Lines Matching refs:top

208                                      const uint8_t* top, int size) {
210 if (top) {
211 for (j = 0; j < size; ++j) memcpy(dst + j * BPS, top, size);
230 const uint8_t* top, int size) {
233 if (top) {
239 dst[x] = clip_table[top[x]];
248 // is equivalent to VE prediction where you just copy the top samples.
249 // Note that if top samples are not available, the default value is
251 if (top) {
252 VerticalPred(dst, top, size);
260 const uint8_t* top,
264 if (top) {
265 for (j = 0; j < size; ++j) DC += top[j];
266 if (left) { // top and left present
268 } else { // top, but no left
272 } else if (left) { // left but no top
276 } else { // no top, no left, nothing.
286 const uint8_t* top) {
288 DCMode(C8DC8 + dst, left, top, 8, 8, 4);
289 VerticalPred(C8VE8 + dst, top, 8);
291 TrueMotion(C8TM8 + dst, left, top, 8);
294 if (top) top += 8;
296 DCMode(C8DC8 + dst, left, top, 8, 8, 4);
297 VerticalPred(C8VE8 + dst, top, 8);
299 TrueMotion(C8TM8 + dst, left, top, 8);
306 const uint8_t* left, const uint8_t* top) {
307 DCMode(I16DC16 + dst, left, top, 16, 16, 5);
308 VerticalPred(I16VE16 + dst, top, 16);
310 TrueMotion(I16TM16 + dst, left, top, 16);
319 static void VE4(uint8_t* dst, const uint8_t* top) { // vertical
321 AVG3(top[-1], top[0], top[1]),
322 AVG3(top[ 0], top[1], top[2]),
323 AVG3(top[ 1], top[2], top[3]),
324 AVG3(top[ 2], top[3], top[4])
332 static void HE4(uint8_t* dst, const uint8_t* top) { // horizontal
333 const int X = top[-1];
334 const int I = top[-2];
335 const int J = top[-3];
336 const int K = top[-4];
337 const int L = top[-5];
344 static void DC4(uint8_t* dst, const uint8_t* top) {
347 for (i = 0; i < 4; ++i) dc += top[i] + top[-5 + i];
351 static void RD4(uint8_t* dst, const uint8_t* top) {
352 const int X = top[-1];
353 const int I = top[-2];
354 const int J = top[-3];
355 const int K = top[-4];
356 const int L = top[-5];
357 const int A = top[0];
358 const int B = top[1];
359 const int C = top[2];
360 const int D = top[3];
370 static void LD4(uint8_t* dst, const uint8_t* top) {
371 const int A = top[0];
372 const int B = top[1];
373 const int C = top[2];
374 const int D = top[3];
375 const int E = top[4];
376 const int F = top[5];
377 const int G = top[6];
378 const int H = top[7];
388 static void VR4(uint8_t* dst, const uint8_t* top) {
389 const int X = top[-1];
390 const int I = top[-2];
391 const int J = top[-3];
392 const int K = top[-4];
393 const int A = top[0];
394 const int B = top[1];
395 const int C = top[2];
396 const int D = top[3];
410 static void VL4(uint8_t* dst, const uint8_t* top) {
411 const int A = top[0];
412 const int B = top[1];
413 const int C = top[2];
414 const int D = top[3];
415 const int E = top[4];
416 const int F = top[5];
417 const int G = top[6];
418 const int H = top[7];
432 static void HU4(uint8_t* dst, const uint8_t* top) {
433 const int I = top[-2];
434 const int J = top[-3];
435 const int K = top[-4];
436 const int L = top[-5];
447 static void HD4(uint8_t* dst, const uint8_t* top) {
448 const int X = top[-1];
449 const int I = top[-2];
450 const int J = top[-3];
451 const int K = top[-4];
452 const int L = top[-5];
453 const int A = top[0];
454 const int B = top[1];
455 const int C = top[2];
470 static void TM4(uint8_t* dst, const uint8_t* top) {
472 const uint8_t* const clip = clip1 + 255 - top[-1];
474 const uint8_t* const clip_table = clip + top[-2 - y];
476 dst[x] = clip_table[top[x]];
486 // Left samples are top[-5 .. -2], top_left is top[-1], top are
487 // located at top[0..3], and top right is top[4..7]
488 static void Intra4Preds(uint8_t* dst, const uint8_t* top) {
489 DC4(I4DC4 + dst, top);
490 TM4(I4TM4 + dst, top);
491 VE4(I4VE4 + dst, top);
492 HE4(I4HE4 + dst, top);
493 RD4(I4RD4 + dst, top);
494 VR4(I4VR4 + dst, top);
495 LD4(I4LD4 + dst, top);
496 VL4(I4VL4 + dst, top);
497 HD4(I4HD4 + dst, top);
498 HU4(I4HU4 + dst, top);