Lines Matching refs:vec_u8
91 vec_u8 va_u8; in h264_idct_add_altivec()
95 vec_u8 vdst, vdst_orig; in h264_idct_add_altivec()
96 vec_u8 vdst_mask = vec_lvsl(0, dst); in h264_idct_add_altivec()
185 vec_u8 hv = vec_ld( 0, d ); \
186 vec_u8 lv = vec_ld( 7, d); \
187 vec_u8 dstv = vec_perm( hv, lv, (vec_u8)perm_ldv );
189 vec_u8 edgehv; \
190 vec_u8 bodyv = vec_perm( idstsum8, idstsum8, perm_stv ); \
191 vec_u8 edgelv = vec_perm( sel, zero_u8v, perm_stv ); \
201 #define dstv_load(d) vec_u8 dstv = vec_vsx_ld(0, d)
203 vec_u8 dst8 = vec_perm((vec_u8)idstsum8, dstv, vcprm(2,3,s2,s3));\
213 vec_u8 idstsum8 = vec_packsu(zero_s16v, idstsum); \
224 vec_u8 perm_ldv, perm_stv; in h264_idct8_add_altivec()
231 const vec_u8 sel = (vec_u8) {0,0,0,0,0,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1}; in h264_idct8_add_altivec()
272 vec_u8 dcplus, dcminus, v0, v1, v2, v3, aligner; in h264_idct_dc_add_internal()
384 register vec_u8 r4; \
385 register vec_u8 r5; \
386 register vec_u8 r6; \
387 register vec_u8 r7; \
401 register vec_u8 r0, register vec_u8 r1, in write16x4()
402 register vec_u8 r2, register vec_u8 r3) { in write16x4()
434 register vec_u8 r0 = unaligned_load(0, src); \
435 register vec_u8 r1 = unaligned_load( src_stride, src); \
436 register vec_u8 r2 = unaligned_load(2* src_stride, src); \
437 register vec_u8 r3 = unaligned_load(3* src_stride, src); \
438 register vec_u8 r4 = unaligned_load(4* src_stride, src); \
439 register vec_u8 r5 = unaligned_load(5* src_stride, src); \
440 register vec_u8 r6 = unaligned_load(6* src_stride, src); \
441 register vec_u8 r7 = unaligned_load(7* src_stride, src); \
442 register vec_u8 r14 = unaligned_load(14*src_stride, src); \
443 register vec_u8 r15 = unaligned_load(15*src_stride, src); \
493 static inline vec_u8 diff_lt_altivec ( register vec_u8 x, in diff_lt_altivec()
494 register vec_u8 y, in diff_lt_altivec()
495 register vec_u8 a) { in diff_lt_altivec()
497 register vec_u8 diff = vec_subs(x, y); in diff_lt_altivec()
498 register vec_u8 diffneg = vec_subs(y, x); in diff_lt_altivec()
499 register vec_u8 o = vec_or(diff, diffneg); /* |x-y| */ in diff_lt_altivec()
500 o = (vec_u8)vec_cmplt(o, a); in diff_lt_altivec()
504 static inline vec_u8 h264_deblock_mask ( register vec_u8 p0, in h264_deblock_mask()
505 register vec_u8 p1, in h264_deblock_mask()
506 register vec_u8 q0, in h264_deblock_mask()
507 register vec_u8 q1, in h264_deblock_mask()
508 register vec_u8 alpha, in h264_deblock_mask()
509 register vec_u8 beta) { in h264_deblock_mask()
511 register vec_u8 mask; in h264_deblock_mask()
512 register vec_u8 tempmask; in h264_deblock_mask()
524 static inline vec_u8 h264_deblock_q1(register vec_u8 p0, in h264_deblock_q1()
525 register vec_u8 p1, in h264_deblock_q1()
526 register vec_u8 p2, in h264_deblock_q1()
527 register vec_u8 q0, in h264_deblock_q1()
528 register vec_u8 tc0) { in h264_deblock_q1()
530 register vec_u8 average = vec_avg(p0, q0); in h264_deblock_q1()
531 register vec_u8 temp; in h264_deblock_q1()
532 register vec_u8 unclipped; in h264_deblock_q1()
533 register vec_u8 ones; in h264_deblock_q1()
534 register vec_u8 max; in h264_deblock_q1()
535 register vec_u8 min; in h264_deblock_q1()
536 register vec_u8 newp1; in h264_deblock_q1()
552 const vec_u8 A0v = vec_sl(vec_splat_u8(10), vec_splat_u8(4)); \
554 register vec_u8 pq0bit = vec_xor(p0,q0); \
555 register vec_u8 q1minus; \
556 register vec_u8 p0minus; \
557 register vec_u8 stage1; \
558 register vec_u8 stage2; \
559 register vec_u8 vec160; \
560 register vec_u8 delta; \
561 register vec_u8 deltaneg; \
584 register vec_u8 alphavec; \
585 register vec_u8 betavec; \
586 register vec_u8 mask; \
587 register vec_u8 p1mask; \
588 register vec_u8 q1mask; \
590 register vec_u8 finaltc0; \
591 register vec_u8 tc0masked; \
592 register vec_u8 newp1; \
593 register vec_u8 newq1; \
607 finaltc0 = vec_and((vec_u8)tc0vec, mask); /* tc = tc0 */ \
611 tc0masked = vec_and(p1mask, (vec_u8)tc0vec); \
618 tc0masked = vec_and(q1mask, (vec_u8)tc0vec); \
631 register vec_u8 p2 = vec_ld(-3*stride, pix); in h264_v_loop_filter_luma_altivec()
632 register vec_u8 p1 = vec_ld(-2*stride, pix); in h264_v_loop_filter_luma_altivec()
633 register vec_u8 p0 = vec_ld(-1*stride, pix); in h264_v_loop_filter_luma_altivec()
634 register vec_u8 q0 = vec_ld(0, pix); in h264_v_loop_filter_luma_altivec()
635 register vec_u8 q1 = vec_ld(stride, pix); in h264_v_loop_filter_luma_altivec()
636 register vec_u8 q2 = vec_ld(2*stride, pix); in h264_v_loop_filter_luma_altivec()
647 register vec_u8 line0, line1, line2, line3, line4, line5; in h264_h_loop_filter_luma_altivec()
661 vec_u8 vblock; in weight_h264_W_altivec()
710 vec_u8 vsrc, vdst; in biweight_h264_W_altivec()