Mercurial > libavcodec.hg
comparison dsputil.c @ 3248:7aa9f80e7954 libavcodec
mmx implementation of 3-point GMC. (5x faster than C)
author | lorenm |
---|---|
date | Tue, 04 Apr 2006 09:23:45 +0000 |
parents | c2c29be6282e |
children | 87c54a3f8d19 |
comparison
equal
deleted
inserted
replaced
3247:ac7bfc9bf1a4 | 3248:7aa9f80e7954 |
---|---|
1142 dst+= stride; | 1142 dst+= stride; |
1143 src+= stride; | 1143 src+= stride; |
1144 } | 1144 } |
1145 } | 1145 } |
1146 | 1146 |
1147 static void gmc_c(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, | 1147 void ff_gmc_c(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, |
1148 int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) | 1148 int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) |
1149 { | 1149 { |
1150 int y, vx, vy; | 1150 int y, vx, vy; |
1151 const int s= 1<<shift; | 1151 const int s= 1<<shift; |
1152 | 1152 |
3863 c->put_signed_pixels_clamped = put_signed_pixels_clamped_c; | 3863 c->put_signed_pixels_clamped = put_signed_pixels_clamped_c; |
3864 c->add_pixels_clamped = add_pixels_clamped_c; | 3864 c->add_pixels_clamped = add_pixels_clamped_c; |
3865 c->add_pixels8 = add_pixels8_c; | 3865 c->add_pixels8 = add_pixels8_c; |
3866 c->add_pixels4 = add_pixels4_c; | 3866 c->add_pixels4 = add_pixels4_c; |
3867 c->gmc1 = gmc1_c; | 3867 c->gmc1 = gmc1_c; |
3868 c->gmc = gmc_c; | 3868 c->gmc = ff_gmc_c; |
3869 c->clear_blocks = clear_blocks_c; | 3869 c->clear_blocks = clear_blocks_c; |
3870 c->pix_sum = pix_sum_c; | 3870 c->pix_sum = pix_sum_c; |
3871 c->pix_norm1 = pix_norm1_c; | 3871 c->pix_norm1 = pix_norm1_c; |
3872 | 3872 |
3873 /* TODO [0] 16 [1] 8 */ | 3873 /* TODO [0] 16 [1] 8 */ |