Mercurial > libavcodec.hg
comparison ppc/idct_altivec.c @ 3973:b28edd190fc0 libavcodec
removing ALTIVEC_USE_REFERENCE_C_CODE, since has no use anymore
author | lu_zero |
---|---|
date | Mon, 09 Oct 2006 18:29:46 +0000 |
parents | c8c591fe26f8 |
children | 891590781d9e |
comparison
equal
deleted
inserted
replaced
3972:f5f1c9af095d | 3973:b28edd190fc0 |
---|---|
167 }; | 167 }; |
168 | 168 |
169 void idct_put_altivec(uint8_t* dest, int stride, vector_s16_t* block) | 169 void idct_put_altivec(uint8_t* dest, int stride, vector_s16_t* block) |
170 { | 170 { |
171 POWERPC_PERF_DECLARE(altivec_idct_put_num, 1); | 171 POWERPC_PERF_DECLARE(altivec_idct_put_num, 1); |
172 #ifdef ALTIVEC_USE_REFERENCE_C_CODE | |
173 POWERPC_PERF_START_COUNT(altivec_idct_put_num, 1); | |
174 void simple_idct_put(uint8_t *dest, int line_size, int16_t *block); | |
175 simple_idct_put(dest, stride, (int16_t*)block); | |
176 POWERPC_PERF_STOP_COUNT(altivec_idct_put_num, 1); | |
177 #else /* ALTIVEC_USE_REFERENCE_C_CODE */ | |
178 vector_u8_t tmp; | 172 vector_u8_t tmp; |
179 | 173 |
180 #ifdef POWERPC_PERFORMANCE_REPORT | 174 #ifdef POWERPC_PERFORMANCE_REPORT |
181 POWERPC_PERF_START_COUNT(altivec_idct_put_num, 1); | 175 POWERPC_PERF_START_COUNT(altivec_idct_put_num, 1); |
182 #endif | 176 #endif |
195 COPY (dest, vx5) dest += stride; | 189 COPY (dest, vx5) dest += stride; |
196 COPY (dest, vx6) dest += stride; | 190 COPY (dest, vx6) dest += stride; |
197 COPY (dest, vx7) | 191 COPY (dest, vx7) |
198 | 192 |
199 POWERPC_PERF_STOP_COUNT(altivec_idct_put_num, 1); | 193 POWERPC_PERF_STOP_COUNT(altivec_idct_put_num, 1); |
200 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ | |
201 } | 194 } |
202 | 195 |
203 void idct_add_altivec(uint8_t* dest, int stride, vector_s16_t* block) | 196 void idct_add_altivec(uint8_t* dest, int stride, vector_s16_t* block) |
204 { | 197 { |
205 POWERPC_PERF_DECLARE(altivec_idct_add_num, 1); | 198 POWERPC_PERF_DECLARE(altivec_idct_add_num, 1); |
206 #ifdef ALTIVEC_USE_REFERENCE_C_CODE | |
207 POWERPC_PERF_START_COUNT(altivec_idct_add_num, 1); | |
208 void simple_idct_add(uint8_t *dest, int line_size, int16_t *block); | |
209 simple_idct_add(dest, stride, (int16_t*)block); | |
210 POWERPC_PERF_STOP_COUNT(altivec_idct_add_num, 1); | |
211 #else /* ALTIVEC_USE_REFERENCE_C_CODE */ | |
212 vector_u8_t tmp; | 199 vector_u8_t tmp; |
213 vector_s16_t tmp2, tmp3; | 200 vector_s16_t tmp2, tmp3; |
214 vector_u8_t perm0; | 201 vector_u8_t perm0; |
215 vector_u8_t perm1; | 202 vector_u8_t perm1; |
216 vector_u8_t p0, p1, p; | 203 vector_u8_t p0, p1, p; |
244 ADD (dest, vx5, perm1) dest += stride; | 231 ADD (dest, vx5, perm1) dest += stride; |
245 ADD (dest, vx6, perm0) dest += stride; | 232 ADD (dest, vx6, perm0) dest += stride; |
246 ADD (dest, vx7, perm1) | 233 ADD (dest, vx7, perm1) |
247 | 234 |
248 POWERPC_PERF_STOP_COUNT(altivec_idct_add_num, 1); | 235 POWERPC_PERF_STOP_COUNT(altivec_idct_add_num, 1); |
249 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ | |
250 } | 236 } |
251 | 237 |