Mercurial > libavcodec.hg
diff dsputil.c @ 296:c1a8a1b4a24b libavcodec
sizeof(s->block) isnt 64*6*2 anymore bugfix
mpeg12 decoding optimization
author | michaelni |
---|---|
date | Thu, 28 Mar 2002 13:41:04 +0000 |
parents | 944632089814 |
children | 8cf5507e6ca5 |
line wrap: on
line diff
--- a/dsputil.c Thu Mar 28 04:25:35 2002 +0000 +++ b/dsputil.c Thu Mar 28 13:41:04 2002 +0000 @@ -30,6 +30,7 @@ void (*put_pixels_clamped)(const DCTELEM *block, UINT8 *pixels, int line_size); void (*add_pixels_clamped)(const DCTELEM *block, UINT8 *pixels, int line_size); void (*gmc1)(UINT8 *dst, UINT8 *src, int srcStride, int h, int x16, int y16, int rounder); +void (*clear_blocks)(DCTELEM *blocks); op_pixels_abs_func pix_abs16x16; op_pixels_abs_func pix_abs16x16_x2; @@ -866,6 +867,11 @@ } #endif +void clear_blocks_c(DCTELEM *blocks) +{ + memset(blocks, 0, sizeof(DCTELEM)*6*64); +} + void dsputil_init(void) { int i, j; @@ -890,6 +896,7 @@ put_pixels_clamped = put_pixels_clamped_c; add_pixels_clamped = add_pixels_clamped_c; gmc1= gmc1_c; + clear_blocks= clear_blocks_c; pix_abs16x16 = pix_abs16x16_c; pix_abs16x16_x2 = pix_abs16x16_x2_c;