Mercurial > libpostproc.hg
comparison postprocess_template.c @ 49:cdfe8fc50090 libpostproc
misc typo fixes
| author | diego |
|---|---|
| date | Tue, 12 Jun 2007 18:50:50 +0000 |
| parents | 72675332ed82 |
| children | 95d9409452f2 |
comparison
equal
deleted
inserted
replaced
| 48:72675332ed82 | 49:cdfe8fc50090 |
|---|---|
| 371 #if 0 | 371 #if 0 |
| 372 /** | 372 /** |
| 373 * Experimental implementation of the filter (Algorithm 1) described in a paper from Ramkishor & Karandikar | 373 * Experimental implementation of the filter (Algorithm 1) described in a paper from Ramkishor & Karandikar |
| 374 * values are correctly clipped (MMX2) | 374 * values are correctly clipped (MMX2) |
| 375 * values are wraparound (C) | 375 * values are wraparound (C) |
| 376 * conclusion: its fast, but introduces ugly horizontal patterns if there is a continious gradient | 376 * Conclusion: It is fast, but introduces ugly horizontal patterns |
| 377 * if there is a continuous gradient. | |
| 377 0 8 16 24 | 378 0 8 16 24 |
| 378 x = 8 | 379 x = 8 |
| 379 x/2 = 4 | 380 x/2 = 4 |
| 380 x/8 = 1 | 381 x/8 = 1 |
| 381 1 12 12 23 | 382 1 12 12 23 |
| 3496 "g" ((long)x), "g" ((long)copyAhead) | 3497 "g" ((long)x), "g" ((long)copyAhead) |
| 3497 : "%"REG_a, "%"REG_d | 3498 : "%"REG_a, "%"REG_d |
| 3498 ); | 3499 ); |
| 3499 | 3500 |
| 3500 #elif defined(HAVE_3DNOW) | 3501 #elif defined(HAVE_3DNOW) |
| 3501 //FIXME check if this is faster on an 3dnow chip or if its faster without the prefetch or ... | 3502 //FIXME check if this is faster on an 3dnow chip or if it is faster without the prefetch or ... |
| 3502 /* prefetch(srcBlock + (((x>>3)&3) + 5)*srcStride + 32); | 3503 /* prefetch(srcBlock + (((x>>3)&3) + 5)*srcStride + 32); |
| 3503 prefetch(srcBlock + (((x>>3)&3) + 9)*srcStride + 32); | 3504 prefetch(srcBlock + (((x>>3)&3) + 9)*srcStride + 32); |
| 3504 prefetchw(dstBlock + (((x>>3)&3) + 5)*dstStride + 32); | 3505 prefetchw(dstBlock + (((x>>3)&3) + 5)*dstStride + 32); |
| 3505 prefetchw(dstBlock + (((x>>3)&3) + 9)*dstStride + 32); | 3506 prefetchw(dstBlock + (((x>>3)&3) + 9)*dstStride + 32); |
| 3506 */ | 3507 */ |
| 3640 "g" ((long)x), "g" ((long)copyAhead) | 3641 "g" ((long)x), "g" ((long)copyAhead) |
| 3641 : "%"REG_a, "%"REG_d | 3642 : "%"REG_a, "%"REG_d |
| 3642 ); | 3643 ); |
| 3643 | 3644 |
| 3644 #elif defined(HAVE_3DNOW) | 3645 #elif defined(HAVE_3DNOW) |
| 3645 //FIXME check if this is faster on an 3dnow chip or if its faster without the prefetch or ... | 3646 //FIXME check if this is faster on an 3dnow chip or if it is faster without the prefetch or ... |
| 3646 /* prefetch(srcBlock + (((x>>3)&3) + 5)*srcStride + 32); | 3647 /* prefetch(srcBlock + (((x>>3)&3) + 5)*srcStride + 32); |
| 3647 prefetch(srcBlock + (((x>>3)&3) + 9)*srcStride + 32); | 3648 prefetch(srcBlock + (((x>>3)&3) + 9)*srcStride + 32); |
| 3648 prefetchw(dstBlock + (((x>>3)&3) + 5)*dstStride + 32); | 3649 prefetchw(dstBlock + (((x>>3)&3) + 5)*dstStride + 32); |
| 3649 prefetchw(dstBlock + (((x>>3)&3) + 9)*dstStride + 32); | 3650 prefetchw(dstBlock + (((x>>3)&3) + 9)*dstStride + 32); |
| 3650 */ | 3651 */ |
