comparison postproc/postprocess.c @ 2286:58b3f908201d

added compiletime option to turn width%8==0 on
author michael
date Fri, 19 Oct 2001 13:56:12 +0000
parents 4840e356d0d3
children e10f7dc4938f
comparison
equal deleted inserted replaced
2285:4840e356d0d3 2286:58b3f908201d
2559 */ 2559 */
2560 #endif 2560 #endif
2561 2561
2562 if(!isColor) yHistogram[ srcBlock[srcStride*5] ]++; 2562 if(!isColor) yHistogram[ srcBlock[srcStride*5] ]++;
2563 2563
2564 #ifdef PP_FUNNY_STRIDE
2564 //can we mess with a 8x16 block, if not use a temp buffer, yes again 2565 //can we mess with a 8x16 block, if not use a temp buffer, yes again
2565 if(x+7 >= width) 2566 if(x+7 >= width)
2566 { 2567 {
2567 int i; 2568 int i;
2568 dstBlockPtrBackup= dstBlock; 2569 dstBlockPtrBackup= dstBlock;
2575 } 2576 }
2576 2577
2577 dstBlock= tempDstBlock; 2578 dstBlock= tempDstBlock;
2578 srcBlock= tempSrcBlock; 2579 srcBlock= tempSrcBlock;
2579 } 2580 }
2581 #endif
2580 2582
2581 blockCopy(dstBlock + dstStride*5, dstStride, 2583 blockCopy(dstBlock + dstStride*5, dstStride,
2582 srcBlock + srcStride*5, srcStride, 8, mode & LEVEL_FIX); 2584 srcBlock + srcStride*5, srcStride, 8, mode & LEVEL_FIX);
2583 2585
2584 if(mode & LINEAR_IPOL_DEINT_FILTER) 2586 if(mode & LINEAR_IPOL_DEINT_FILTER)
2655 } 2657 }
2656 else if(y!=0) 2658 else if(y!=0)
2657 dering(dstBlock - stride*9 + width-9, stride, QP); 2659 dering(dstBlock - stride*9 + width-9, stride, QP);
2658 //FIXME dering filter will not be applied to last block (bottom right) 2660 //FIXME dering filter will not be applied to last block (bottom right)
2659 2661
2662 #ifdef PP_FUNNY_STRIDE
2660 /* did we use a tmp-block buffer */ 2663 /* did we use a tmp-block buffer */
2661 if(x+7 >= width) 2664 if(x+7 >= width)
2662 { 2665 {
2663 int i; 2666 int i;
2664 dstBlock= dstBlockPtrBackup; 2667 dstBlock= dstBlockPtrBackup;
2667 for(i=0;i<BLOCK_SIZE*2; i++) 2670 for(i=0;i<BLOCK_SIZE*2; i++)
2668 { 2671 {
2669 memcpy(dstBlock+i*dstStride, tempDstBlock+i*dstStride, width-x); 2672 memcpy(dstBlock+i*dstStride, tempDstBlock+i*dstStride, width-x);
2670 } 2673 }
2671 } 2674 }
2675 #endif
2672 2676
2673 dstBlock+=8; 2677 dstBlock+=8;
2674 srcBlock+=8; 2678 srcBlock+=8;
2675 } 2679 }
2676 2680