comparison dsputil.h @ 10430:12c8175d6db5 libavcodec

simd add_hfyu_left_prediction 2.2x faster than C on conroe, 3.6x on penryn. 4-6% faster huffyuv decoding if using left or plane mode and yuv
author lorenm
date Sun, 18 Oct 2009 20:10:10 +0000
parents 94595d0e617c
children 546b7ebeaf07
comparison
equal deleted inserted replaced
10429:289dd8daf4ee 10430:12c8175d6db5
347 * subtract huffyuv's variant of median prediction 347 * subtract huffyuv's variant of median prediction
348 * note, this might read from src1[-1], src2[-1] 348 * note, this might read from src1[-1], src2[-1]
349 */ 349 */
350 void (*sub_hfyu_median_prediction)(uint8_t *dst, const uint8_t *src1, uint8_t *src2, int w, int *left, int *left_top); 350 void (*sub_hfyu_median_prediction)(uint8_t *dst, const uint8_t *src1, uint8_t *src2, int w, int *left, int *left_top);
351 void (*add_hfyu_median_prediction)(uint8_t *dst, const uint8_t *top, uint8_t *diff, int w, int *left, int *left_top); 351 void (*add_hfyu_median_prediction)(uint8_t *dst, const uint8_t *top, uint8_t *diff, int w, int *left, int *left_top);
352 int (*add_hfyu_left_prediction)(uint8_t *dst, const uint8_t *src, int w, int acc); 352 int (*add_hfyu_left_prediction)(uint8_t *dst, const uint8_t *src, int w, int left);
353 void (*add_hfyu_left_prediction_bgr32)(uint8_t *dst, const uint8_t *src, int w, int *red, int *green, int *blue); 353 void (*add_hfyu_left_prediction_bgr32)(uint8_t *dst, const uint8_t *src, int w, int *red, int *green, int *blue);
354 /* this might write to dst[w] */ 354 /* this might write to dst[w] */
355 void (*add_png_paeth_prediction)(uint8_t *dst, uint8_t *src, uint8_t *top, int w, int bpp); 355 void (*add_png_paeth_prediction)(uint8_t *dst, uint8_t *src, uint8_t *top, int w, int bpp);
356 void (*bswap_buf)(uint32_t *dst, const uint32_t *src, int w); 356 void (*bswap_buf)(uint32_t *dst, const uint32_t *src, int w);
357 357