Mercurial > libavcodec.hg
comparison libpostproc/postprocess_template.c @ 109:dfa9fde4b72d libavcodec
quick fix for movies with a height which is not a multiple of 8
| author | michael |
|---|---|
| date | Wed, 17 Oct 2001 02:04:16 +0000 |
| parents | bd163e13a0fb |
| children | 8e4c5a16c9fc |
comparison
equal
deleted
inserted
replaced
| 108:1e4a4af694d1 | 109:dfa9fde4b72d |
|---|---|
| 2605 } | 2605 } |
| 2606 | 2606 |
| 2607 for(x=0; x<width; x+=BLOCK_SIZE) | 2607 for(x=0; x<width; x+=BLOCK_SIZE) |
| 2608 blockCopy(dst + x, dstStride, src + x, srcStride, 8, mode & LEVEL_FIX); | 2608 blockCopy(dst + x, dstStride, src + x, srcStride, 8, mode & LEVEL_FIX); |
| 2609 | 2609 |
| 2610 for(y=0; y<height; y+=BLOCK_SIZE) | 2610 for(y=0; y<height-7; y+=BLOCK_SIZE) |
| 2611 { | 2611 { |
| 2612 //1% speedup if these are here instead of the inner loop | 2612 //1% speedup if these are here instead of the inner loop |
| 2613 uint8_t *srcBlock= &(src[y*srcStride]); | 2613 uint8_t *srcBlock= &(src[y*srcStride]); |
| 2614 uint8_t *dstBlock= &(dst[y*dstStride]); | 2614 uint8_t *dstBlock= &(dst[y*dstStride]); |
| 2615 uint8_t *vertSrcBlock= &(srcBlock[srcStride*3]); // Blocks are 10x8 -> *3 to start | 2615 uint8_t *vertSrcBlock= &(srcBlock[srcStride*3]); // Blocks are 10x8 -> *3 to start |
