Mercurial > libavcodec.hg
comparison ppc/dsputil_altivec.c @ 1064:b32afefe7d33 libavcodec
* UINTX -> uintx_t INTX -> intx_t
author | kabi |
---|---|
date | Tue, 11 Feb 2003 16:35:48 +0000 |
parents | b4172ff70d27 |
children | f3152eb76f1a |
comparison
equal
deleted
inserted
replaced
1063:fdeac9642346 | 1064:b32afefe7d33 |
---|---|
478 vec_ste(sumsqr, 0, &s); | 478 vec_ste(sumsqr, 0, &s); |
479 | 479 |
480 return s; | 480 return s; |
481 } | 481 } |
482 | 482 |
483 int pix_sum_altivec(UINT8 * pix, int line_size) | 483 int pix_sum_altivec(uint8_t * pix, int line_size) |
484 { | 484 { |
485 const vector unsigned int zero = (const vector unsigned int)vec_splat_u32(0); | 485 const vector unsigned int zero = (const vector unsigned int)vec_splat_u32(0); |
486 vector unsigned char perm, *pixv; | 486 vector unsigned char perm, *pixv; |
487 vector unsigned char t1; | 487 vector unsigned char t1; |
488 vector unsigned int sad; | 488 vector unsigned int sad; |
511 vec_ste(sumdiffs, 0, &s); | 511 vec_ste(sumdiffs, 0, &s); |
512 | 512 |
513 return s; | 513 return s; |
514 } | 514 } |
515 | 515 |
516 void get_pixels_altivec(DCTELEM *restrict block, const UINT8 *pixels, int line_size) | 516 void get_pixels_altivec(DCTELEM *restrict block, const uint8_t *pixels, int line_size) |
517 { | 517 { |
518 int i; | 518 int i; |
519 vector unsigned char perm, bytes, *pixv; | 519 vector unsigned char perm, bytes, *pixv; |
520 const vector unsigned char zero = (const vector unsigned char)vec_splat_u8(0); | 520 const vector unsigned char zero = (const vector unsigned char)vec_splat_u8(0); |
521 vector signed short shorts; | 521 vector signed short shorts; |
537 | 537 |
538 pixels += line_size; | 538 pixels += line_size; |
539 } | 539 } |
540 } | 540 } |
541 | 541 |
542 void diff_pixels_altivec(DCTELEM *restrict block, const UINT8 *s1, | 542 void diff_pixels_altivec(DCTELEM *restrict block, const uint8_t *s1, |
543 const UINT8 *s2, int stride) | 543 const uint8_t *s2, int stride) |
544 { | 544 { |
545 int i; | 545 int i; |
546 vector unsigned char perm, bytes, *pixv; | 546 vector unsigned char perm, bytes, *pixv; |
547 const vector unsigned char zero = (const vector unsigned char)vec_splat_u8(0); | 547 const vector unsigned char zero = (const vector unsigned char)vec_splat_u8(0); |
548 vector signed short shorts1, shorts2; | 548 vector signed short shorts1, shorts2; |