Home
last modified time | relevance | path

Searched refs:vec_s16 (Results 1 – 14 of 14) sorted by relevance

/third_party/ffmpeg/libavcodec/ppc/
Dh264qpel_template.c112 const vec_s16 v5ss = vec_splat_s16(5); in PREFIX_h264_qpel16_h_lowpass_altivec()
114 const vec_s16 v20ss = vec_sl(vec_splat_s16(5),vec_splat_u16(2)); in PREFIX_h264_qpel16_h_lowpass_altivec()
115 const vec_s16 v16ss = vec_sl(vec_splat_s16(1),vec_splat_u16(4)); in PREFIX_h264_qpel16_h_lowpass_altivec()
121 vec_s16 srcP0A, srcP0B, srcP1A, srcP1B, in PREFIX_h264_qpel16_h_lowpass_altivec()
142 srcP0A = (vec_s16) VEC_MERGEH(zero_u8v, srcP0); in PREFIX_h264_qpel16_h_lowpass_altivec()
143 srcP0B = (vec_s16) VEC_MERGEL(zero_u8v, srcP0); in PREFIX_h264_qpel16_h_lowpass_altivec()
144 srcP1A = (vec_s16) VEC_MERGEH(zero_u8v, srcP1); in PREFIX_h264_qpel16_h_lowpass_altivec()
145 srcP1B = (vec_s16) VEC_MERGEL(zero_u8v, srcP1); in PREFIX_h264_qpel16_h_lowpass_altivec()
147 srcP2A = (vec_s16) VEC_MERGEH(zero_u8v, srcP2); in PREFIX_h264_qpel16_h_lowpass_altivec()
148 srcP2B = (vec_s16) VEC_MERGEL(zero_u8v, srcP2); in PREFIX_h264_qpel16_h_lowpass_altivec()
[all …]
Dvp3dsp_altivec.c34 static const vec_s16 constants =
45 vec_s16 A, B, C, D, Ad, Bd, Cd, Dd, E, F, G, H;\
46 vec_s16 Ed, Gd, Add, Bdd, Fd, Hd;\
47 vec_s16 eight = vec_splat_s16(8);\
50 vec_s16 C1 = vec_splat(constants, 1);\
51 vec_s16 C2 = vec_splat(constants, 2);\
52 vec_s16 C3 = vec_splat(constants, 3);\
53 vec_s16 C4 = vec_splat(constants, 4);\
54 vec_s16 C5 = vec_splat(constants, 5);\
55 vec_s16 C6 = vec_splat(constants, 6);\
[all …]
Didctdsp.c83 vec_s16 vy0, vy1, vy2, vy3, vy4, vy5, vy6, vy7; \
84 vec_s16 t0, t1, t2, t3, t4, t5, t6, t7, t8; \
86 vec_s16 c4 = vec_splat(constants[0], 0); \
87 vec_s16 a0 = vec_splat(constants[0], 1); \
88 vec_s16 a1 = vec_splat(constants[0], 2); \
89 vec_s16 a2 = vec_splat(constants[0], 3); \
90 vec_s16 mc4 = vec_splat(constants[0], 4); \
91 vec_s16 ma2 = vec_splat(constants[0], 5); \
92 vec_s16 bias = (vec_s16) vec_splat((vec_s32) constants[0], 3); \
94 vec_s16 zero = vec_splat_s16(0); \
[all …]
Dh264chroma_template.c27 vsrc2ssH = (vec_s16)VEC_MERGEH(zero_u8v,(vec_u8)vsrc2uc);\
28 vsrc3ssH = (vec_s16)VEC_MERGEH(zero_u8v,(vec_u8)vsrc3uc);\
53 vsrc0ssH = (vec_s16)VEC_MERGEH(zero_u8v,(vec_u8)vsrc0uc);\
54 vsrc1ssH = (vec_s16)VEC_MERGEH(zero_u8v,(vec_u8)vsrc1uc);\
125 const vec_s16 vA = VEC_SPLAT16(vABCD, 1); in PREFIX_h264_chroma_mc8_altivec()
126 const vec_s16 vB = VEC_SPLAT16(vABCD, 3); in PREFIX_h264_chroma_mc8_altivec()
127 const vec_s16 vC = VEC_SPLAT16(vABCD, 5); in PREFIX_h264_chroma_mc8_altivec()
128 const vec_s16 vD = VEC_SPLAT16(vABCD, 7); in PREFIX_h264_chroma_mc8_altivec()
129 const vec_s16 v32ss = vec_sl(vec_splat_s16(1),vec_splat_u16(5)); in PREFIX_h264_chroma_mc8_altivec()
134 vec_s16 vsrc0ssH, vsrc1ssH; in PREFIX_h264_chroma_mc8_altivec()
[all …]
Dpixblockdsp.c79 vec_s16 shorts = (vec_s16)vec_mergeh(zero, bytes); in get_pixels_altivec()
82 vec_st(shorts, i * 16, (vec_s16 *)block); in get_pixels_altivec()
159 vec_s16 shorts1, shorts2; in diff_pixels_altivec()
171 shorts1 = (vec_s16)vec_mergeh(zero, bytes); in diff_pixels_altivec()
180 shorts2 = (vec_s16)vec_mergeh(zero, bytes); in diff_pixels_altivec()
186 vec_st(shorts1, 0, (vec_s16 *)block); in diff_pixels_altivec()
204 shorts1 = (vec_s16)vec_mergeh(zero, bytes); in diff_pixels_altivec()
213 shorts2 = (vec_s16)vec_mergeh(zero, bytes); in diff_pixels_altivec()
219 vec_st(shorts1, 0, (vec_s16 *)block); in diff_pixels_altivec()
237 vec_s16 shorts = vsx_ld_u8_s16(0, pixels); in get_pixels_vsx()
[all …]
Dh264dsp.c80 vdst_ss = (vec_s16) VEC_MERGEH(zero_u8v, vdst); \
88 vec_s16 va0, va1, va2, va3; in h264_idct_add_altivec()
89 vec_s16 vz0, vz1, vz2, vz3; in h264_idct_add_altivec()
90 vec_s16 vtmp0, vtmp1, vtmp2, vtmp3; in h264_idct_add_altivec()
93 vec_s16 vdst_ss; in h264_idct_add_altivec()
128 vec_s16 a0v = vec_add(s0, s4); \
130 vec_s16 a2v = vec_sub(s0, s4); \
132 vec_s16 a4v = vec_sub(vec_sra(s2, onev), s6); \
134 vec_s16 a6v = vec_add(vec_sra(s6, onev), s2); \
136 vec_s16 b0v = vec_add(a0v, a6v); \
[all …]
Dhevcdsp.c32 static const vec_s16 trans4[4] = {
44 static av_always_inline void transform4x4(vec_s16 src_01, vec_s16 src_23, in transform4x4()
48 vec_s16 src_02, src_13; in transform4x4()
77 static av_always_inline void scale(vec_s32 res[4], vec_s16 res_packed[2], in scale()
Dlossless_audiodsp_altivec.c51 vec_s16 *pv1 = (vec_s16 *) v1; in scalarproduct_and_madd_int16_altivec()
52 register vec_s16 muls = { mul, mul, mul, mul, mul, mul, mul, mul }; in scalarproduct_and_madd_int16_altivec()
53 register vec_s16 t0, t1, i0, i1, i4, i2, i3; in scalarproduct_and_madd_int16_altivec()
Dvp8dsp_altivec.c108 vec_s16 f16h, f16l; in put_vp8_epel_h_altivec_core()
171 s1f = (vec_s16)vec_mul(s1, f1); \
172 s2f = (vec_s16)vec_mul(s2, f2); \
173 s3f = (vec_s16)vec_mul(s3, f3); \
174 s4f = (vec_s16)vec_mul(s4, f4); \
178 s0f = (vec_s16)vec_mul(s0, f0); \
179 s5f = (vec_s16)vec_mul(s5, f5); \
200 vec_s16 s0f, s1f, s2f, s3f, s4f, s5f, f16h, f16l; in put_vp8_epel_v_altivec_core()
201 vec_s16 c64 = vec_sl(vec_splat_s16(1), vec_splat_u16(6)); in put_vp8_epel_v_altivec_core()
Dhevcdsp_template.c25 vec_s16 src_01, src_23; in FUNC()
27 vec_s16 res_packed[2]; in FUNC()
Daudiodsp.c42 register vec_s16 vec1; in scalarproduct_int16_altivec()
67 register vec_s16 vec1; in scalarproduct_int16_vsx()
Dmpegvideo_altivec.c75 qmulv = vec_splat((vec_s16)vec_lde(0, &qmul8), 0); in dct_unquantize_h263_altivec()
76 qaddv = vec_splat((vec_s16)vec_lde(0, &qadd8), 0); in dct_unquantize_h263_altivec()
/third_party/ffmpeg/libavutil/ppc/
Dutil_altivec.h37 #define vec_s16 vector signed short macro
50 #define zero_s16v (vec_s16) zerov
86 vec_s16 A1, B1, C1, D1, E1, F1, G1, H1; \
87 vec_s16 A2, B2, C2, D2, E2, F2, G2, H2; \
170 #define VEC_SPLAT16(a,b) vec_splat((vec_s16)(a), b)
172 #define VEC_SPLAT16(a,b) vec_splat((vec_s16)(vec_perm(a, a, vcswapi2s(0,1,2,3))), b)
186 ((vec_s16)vec_mergeh((vec_u8)vec_splat_u8(0), \
190 ((vec_s16)vec_mergeh((vec_u8)vec_vsx_ld((off), (p)), \
/third_party/ffmpeg/libswscale/ppc/
Dswscale_vsx.c108 vec_s16 vi, vileft, ditherleft, ditherright; in yuv2plane1_8_vsx()
219 const vec_s16 vzero = vec_splat_s16(0); in yuv2planeX_nbps_vsx()
221 vec_s16 vfilter[MAX_FILTER_SIZE], vin; in yuv2planeX_nbps_vsx()
227 vfilter[i] = (vec_s16) {filter[i], filter[i], filter[i], filter[i], in yuv2planeX_nbps_vsx()
247 v = (vec_u16) vec_max((vec_s16) v, vzero); in yuv2planeX_nbps_vsx()
536 vec_s16 vv; in yuv2rgb_full_X_vsx_template()
542 vec_s16 vlumFilter[MAX_FILTER_SIZE], vchrFilter[MAX_FILTER_SIZE]; in yuv2rgb_full_X_vsx_template()
693 vec_s16 vy, vu, vv, A = vec_splat_s16(0); in yuv2rgb_full_2_vsx_template()
699 const vec_s16 vyalpha1 = vec_splats(yalpha1); in yuv2rgb_full_2_vsx_template()
700 const vec_s16 vuvalpha1 = vec_splats(uvalpha1); in yuv2rgb_full_2_vsx_template()
[all …]