Revision b420448e libavcodec/ppc/idct_altivec.c

View differences:

libavcodec/ppc/idct_altivec.c
169 169
void idct_put_altivec(uint8_t* dest, int stride, vector_s16_t* block)
170 170
{
171 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 172
    vector_u8_t tmp;
179 173

  
180 174
#ifdef POWERPC_PERFORMANCE_REPORT
......
197 191
    COPY (dest, vx7)
198 192

  
199 193
POWERPC_PERF_STOP_COUNT(altivec_idct_put_num, 1);
200
#endif /* ALTIVEC_USE_REFERENCE_C_CODE */
201 194
}
202 195

  
203 196
void idct_add_altivec(uint8_t* dest, int stride, vector_s16_t* block)
204 197
{
205 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 199
    vector_u8_t tmp;
213 200
    vector_s16_t tmp2, tmp3;
214 201
    vector_u8_t perm0;
......
246 233
    ADD (dest, vx7, perm1)
247 234

  
248 235
POWERPC_PERF_STOP_COUNT(altivec_idct_add_num, 1);
249
#endif /* ALTIVEC_USE_REFERENCE_C_CODE */
250 236
}
251 237

  

Also available in: Unified diff