Lines Matching refs:nX

46 						nTemp   = p1T[nX++] >> 12;								\
49 nTemp = p1T[nX++] >> 12; \
52 nTemp = p1T[nX] >> 12; \
57 p2T[nX++] += FloydError3[nBErr]; \
58 p2T[nX++] += FloydError3[nGErr]; \
59 p2T[nX++] += FloydError3[nRErr];
62 p2T[nX++] += FloydError5[nBErr]; \
63 p2T[nX++] += FloydError5[nGErr]; \
64 p2T[nX++] += FloydError5[nRErr];
67 p1T[++nX] += FloydError7[nBErr]; \
68 p2T[nX++] += FloydError1[nBErr]; \
69 p1T[nX] += FloydError7[nGErr]; \
70 p2T[nX++] += FloydError1[nGErr]; \
71 p1T[nX] += FloydError7[nRErr]; \
72 p2T[nX] += FloydError1[nRErr];
385 for( long nX = 0L; nX < nWidth; nX++ ) in ImplMakeMono() local
387 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeMono()
391 pWriteAcc->SetPixel( nY, nX, aWhite ); in ImplMakeMono()
394 pWriteAcc->SetPixel( nY, nX, aBlack ); in ImplMakeMono()
402 for( long nX = 0L; nX < nWidth; nX++ ) in ImplMakeMono() local
404 if( pReadAcc->GetPixel( nY, nX ).GetLuminance() >= in ImplMakeMono()
407 pWriteAcc->SetPixel( nY, nX, aWhite ); in ImplMakeMono()
410 pWriteAcc->SetPixel( nY, nX, aBlack ); in ImplMakeMono()
462 for( long nX = 0L, nModY = nY % 16; nX < nWidth; nX++ ) in ImplMakeMonoDither() local
464 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeMonoDither()
466 pDitherMatrix[ nModY ][ nX % 16 ] ) in ImplMakeMonoDither()
468 pWriteAcc->SetPixel( nY, nX, aWhite ); in ImplMakeMonoDither()
471 pWriteAcc->SetPixel( nY, nX, aBlack ); in ImplMakeMonoDither()
479 for( long nX = 0L, nModY = nY % 16; nX < nWidth; nX++ ) in ImplMakeMonoDither() local
481 if( pReadAcc->GetPixel( nY, nX ).GetLuminance() > in ImplMakeMonoDither()
482 pDitherMatrix[ nModY ][ nX % 16 ] ) in ImplMakeMonoDither()
484 pWriteAcc->SetPixel( nY, nX, aWhite ); in ImplMakeMonoDither()
487 pWriteAcc->SetPixel( nY, nX, aBlack ); in ImplMakeMonoDither()
545 for( long nX = 0L; nX < nWidth; nX++ ) in ImplMakeGreyscales() local
547 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeGreyscales()
548 pWriteAcc->SetPixelIndex( nY, nX, in ImplMakeGreyscales()
563 for( long nX = 0L; nX < nWidth; nX++ ) in ImplMakeGreyscales() local
583 for( long nX = 0L; nX < nWidth; nX++ ) in ImplMakeGreyscales() local
596 for( long nX = 0L; nX < nWidth; nX++ ) in ImplMakeGreyscales() local
597 pWriteAcc->SetPixelIndex( nY, nX, (pReadAcc->GetPixel( nY, nX ) ).GetLuminance() >> nShift ); in ImplMakeGreyscales()
663 for( long nX = 0L; nX < nWidth; nX++ ) in ImplConvertUp() local
664 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY, nX ) ); in ImplConvertUp()
671 for( long nX = 0L; nX < nWidth; nX++ ) in ImplConvertUp() local
672 … pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nX ) ) ); in ImplConvertUp()
677 for( long nX = 0L; nX < nWidth; nX++ ) in ImplConvertUp() local
678 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY, nX ) ); in ImplConvertUp()
732 long nX, nY; in ImplConvertDown() local
755 for( nX = 0L, pQLine2 = !nY ? pErrQuad1 : pErrQuad2; nX < nWidth; nX++ ) in ImplConvertDown()
758 pQLine2[ nX ] = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nYTmp, nX ) ); in ImplConvertDown()
760 pQLine2[ nX ] = pReadAcc->GetPixel( nYTmp, nX ); in ImplConvertDown()
770 for( nX = 1L; nX < nWidth1; nX++ ) in ImplConvertDown()
772 cIndex = (sal_uInt8) aColorMap.GetBestPaletteIndex( aColor = pQLine1[ nX ].ImplGetColor() ); in ImplConvertDown()
774 pQLine1[ ++nX ].ImplAddColorError7( aErrQuad ); in ImplConvertDown()
775 pQLine2[ nX-- ].ImplAddColorError1( aErrQuad ); in ImplConvertDown()
776 pQLine2[ nX-- ].ImplAddColorError5( aErrQuad ); in ImplConvertDown()
777 pQLine2[ nX++ ].ImplAddColorError3( aErrQuad ); in ImplConvertDown()
778 pWriteAcc->SetPixelIndex( nY, nX, cIndex ); in ImplConvertDown()
782 if( nX < nWidth ) in ImplConvertDown()
785 pWriteAcc->SetPixelIndex( nY, nX, cIndex ); in ImplConvertDown()
794 for( nX = 0L; nX < nWidth; nX++ ) in ImplConvertDown()
797 pQLine2[ nX ] = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nYTmp, nX ) ); in ImplConvertDown()
799 pQLine2[ nX ] = pReadAcc->GetPixel( nYTmp, nX ); in ImplConvertDown()
873 for( long nX = 0; nX < nWidth; nX++ ) in ImplConvertGhosted() local
875 const BitmapColor aOld( pR->GetPixel( nY, nX ) ); in ImplConvertGhosted()
876 pW->SetPixel( nY, nX, BitmapColor( ( aOld.GetRed() >> 1 ) | 0x80, in ImplConvertGhosted()
1132 long nX, nY, nMapY, nActY = 0L; in ImplScaleFast() local
1136 for( nX = 0L; nX < nNewWidth; nX++ ) in ImplScaleFast()
1137 pLutX[ nX ] = nX * nWidth / nNewWidth; in ImplScaleFast()
1146 for( nX = 0L; nX < nNewWidth; nX++ ) in ImplScaleFast()
1147 pWriteAcc->SetPixel( nActY, nX, pReadAcc->GetPixel( nMapY , pLutX[ nX ] ) ); in ImplScaleFast()
1196 long nX, nY; in ImplScaleInterpolate() local
1210 for( nX = 0L, nTemp = nWidth - 2L; nX < nNewWidth; nX++ ) in ImplScaleInterpolate()
1212 fTemp = nX * fRevScaleX; in ImplScaleInterpolate()
1213 pLutInt[ nX ] = MinMax( (long) fTemp, 0, nTemp ); in ImplScaleInterpolate()
1214 fTemp -= pLutInt[ nX ]; in ImplScaleInterpolate()
1215 pLutFrac[ nX ] = (long) ( fTemp * 1024. ); in ImplScaleInterpolate()
1231 for( nX = 0L; nX < nNewWidth; nX++ ) in ImplScaleInterpolate()
1233 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1238 for( nX = 0L; nX < nNewWidth; nX++ ) in ImplScaleInterpolate()
1240 nTemp = pLutInt[ nX ]; in ImplScaleInterpolate()
1253 nTemp = pLutFrac[ nX ]; in ImplScaleInterpolate()
1263 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1305 for( nX = 0L; nX < nNewWidth; nX++ ) in ImplScaleInterpolate()
1309 aCol0 = pReadAcc->GetPixel( 0, nX ); in ImplScaleInterpolate()
1313 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1322 aCol0 = pReadAcc->GetPixel( nTemp++, nX ); in ImplScaleInterpolate()
1323 aCol1 = pReadAcc->GetPixel( nTemp, nX ); in ImplScaleInterpolate()
1335 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1393 long nX, nY, nXDst, nYDst;; in ImplScaleSuper() local
1408 for( nX = 0L, nTempX = nW - 1L, nTemp = nW - 2L; nX < nDstW; nX++ ) in ImplScaleSuper()
1410 fTemp = nX * fRevScaleX; in ImplScaleSuper()
1415 … pMapFX[ nX ] = (long) ( ( fTemp - ( pMapIX[ nX ] = MinMax( (long) fTemp, 0, nTemp ) ) ) * 128. ); in ImplScaleSuper()
1443 for( nX = nStartX, nXDst = 0L; nX <= nEndX; nX++ ) in ImplScaleSuper()
1445 nTempX = pMapIX[ nX ]; nTempFX = pMapFX[ nX ]; in ImplScaleSuper()
1490 for( nX = nStartX , nXDst = 0L; nX <= nEndX; nX++ ) in ImplScaleSuper()
1492 nLeft = bHMirr ? ( nX + 1 ) : nX; in ImplScaleSuper()
1493 nRight = bHMirr ? nX : ( nX + 1 ) ; in ImplScaleSuper()
1495 if( nX == nEndX ) in ImplScaleSuper()
1497 nRowStart = pMapIX[ nX ]; in ImplScaleSuper()
1519 if(nX == nEndX ) in ImplScaleSuper()
1585 for( nX = nStartX, nXDst = 0L; nX <= nEndX; nX++ ) in ImplScaleSuper()
1587 nTempX = pMapIX[ nX ]; nTempFX = pMapFX[ nX ]; in ImplScaleSuper()
1631 for( nX = nStartX , nXDst = 0L; nX <= nEndX; nX++ ) in ImplScaleSuper()
1633 nLeft = bHMirr ? ( nX + 1 ) : nX; in ImplScaleSuper()
1634 nRight = bHMirr ? nX : ( nX + 1 ) ; in ImplScaleSuper()
1636 if( nX == nEndX ) in ImplScaleSuper()
1638 nRowStart = pMapIX[ nX ]; in ImplScaleSuper()
1659 if(nX == nEndX ) in ImplScaleSuper()
1736 for( nX = nStartX, nXDst = 0L; nX <= nEndX; nX++ ) in ImplScaleSuper()
1738 nOff = 3L * ( nTempX = pMapIX[ nX ] ); in ImplScaleSuper()
1739 nTempFX = pMapFX[ nX ]; in ImplScaleSuper()
1781 for( nX = nStartX , nXDst = 0L; nX <= nEndX; nX++ ) in ImplScaleSuper()
1783 nLeft = bHMirr ? ( nX + 1 ) : nX; in ImplScaleSuper()
1784 nRight = bHMirr ? nX : ( nX + 1 ) ; in ImplScaleSuper()
1786 if( nX == nEndX ) in ImplScaleSuper()
1788 nRowStart = pMapIX[ nX ]; in ImplScaleSuper()
1809 if(nX == nEndX ) in ImplScaleSuper()
1880 for( nX = nStartX, nXDst = 0L; nX <= nEndX; nX++ ) in ImplScaleSuper()
1882 nOff = 3L * ( nTempX = pMapIX[ nX ] ); in ImplScaleSuper()
1883 nTempFX = pMapFX[ nX ]; in ImplScaleSuper()
1925 for( nX = nStartX , nXDst = 0L; nX <= nEndX; nX++ ) in ImplScaleSuper()
1927 nLeft = bHMirr ? ( nX + 1 ) : nX; in ImplScaleSuper()
1928 nRight = bHMirr ? nX : ( nX + 1 ) ; in ImplScaleSuper()
1930 if( nX == nEndX ) in ImplScaleSuper()
1932 nRowStart = pMapIX[ nX ]; in ImplScaleSuper()
1953 if(nX == nEndX ) in ImplScaleSuper()
2019 for( nX = nStartX, nXDst = 0L; nX <= nEndX; nX++ ) in ImplScaleSuper()
2021 nTempX = pMapIX[ nX ]; nTempFX = pMapFX[ nX ]; in ImplScaleSuper()
2064 for( nX = nStartX , nXDst = 0L; nX <= nEndX; nX++ ) in ImplScaleSuper()
2066 nLeft = bHMirr ? ( nX + 1 ) : nX; in ImplScaleSuper()
2067 nRight = bHMirr ? nX : ( nX + 1 ) ; in ImplScaleSuper()
2069 if( nX == nEndX ) in ImplScaleSuper()
2071 nRowStart = pMapIX[ nX ]; in ImplScaleSuper()
2092 if(nX == nEndX ) in ImplScaleSuper()
2576 for( sal_uLong nX = 0UL, nModY = ( nY & 0x0FUL ) << 4UL; nX < nWidth; nX++ ) in ImplDitherMatrix() local
2578 const BitmapColor aCol( pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nX ) ) ); in ImplDitherMatrix()
2579 const sal_uLong nD = nVCLDitherLut[ nModY + ( nX & 0x0FUL ) ]; in ImplDitherMatrix()
2585 pWriteAcc->SetPixel( nY, nX, aIndex ); in ImplDitherMatrix()
2593 for( sal_uLong nX = 0UL, nModY = ( nY & 0x0FUL ) << 4UL; nX < nWidth; nX++ ) in ImplDitherMatrix() local
2595 const BitmapColor aCol( pReadAcc->GetPixel( nY, nX ) ); in ImplDitherMatrix()
2596 const sal_uLong nD = nVCLDitherLut[ nModY + ( nX & 0x0FUL ) ]; in ImplDitherMatrix()
2602 pWriteAcc->SetPixel( nY, nX, aIndex ); in ImplDitherMatrix()
2646 long nX; in ImplDitherFloyd() local
2718 nX = 0; in ImplDitherFloyd()
2721 nX -= 5; in ImplDitherFloyd()
2727 for ( nX = 3L, nXAcc = 1L; nX < nW2; nXAcc++ ) in ImplDitherFloyd()
2731 nX -= 8; in ImplDitherFloyd()
2739 nX -= 5; in ImplDitherFloyd()
2789 long nX, nY; in ImplDitherFloyd16() local
2794 for( nX = 0L, pQLine2 = !nY ? pErrQuad1 : pErrQuad2; nX < nWidth; nX++ ) in ImplDitherFloyd16()
2795 pQLine2[ nX ] = pReadAcc->GetPixel( nYTmp, nX ); in ImplDitherFloyd16()
2806 for( nX = 1L; nX < nWidth1; nX++ ) in ImplDitherFloyd16()
2808 aColor = pQLine1[ nX ].ImplGetColor(); in ImplDitherFloyd16()
2813 pQLine1[ ++nX ].ImplAddColorError7( aErrQuad ); in ImplDitherFloyd16()
2814 pQLine2[ nX-- ].ImplAddColorError1( aErrQuad ); in ImplDitherFloyd16()
2815 pQLine2[ nX-- ].ImplAddColorError5( aErrQuad ); in ImplDitherFloyd16()
2816 pQLine2[ nX++ ].ImplAddColorError3( aErrQuad ); in ImplDitherFloyd16()
2817 pWriteAcc->SetPixel( nY, nX, aBestCol ); in ImplDitherFloyd16()
2825 pWriteAcc->SetPixel( nY, nX, aBestCol ); in ImplDitherFloyd16()
2832 for( nX = 0L; nX < nWidth; nX++ ) in ImplDitherFloyd16()
2833 pQLine2[ nX ] = pReadAcc->GetPixel( nYTmp, nX ); in ImplDitherFloyd16()
2916 for( long nX =0L; nX < nWidth; nX++ ) in ImplReduceSimple() local
2917 …Acc->SetPixelIndex( nY, nX, static_cast<sal_uInt8>(aOct.GetBestPaletteIndex( pRAcc->GetPaletteColo… in ImplReduceSimple()
2922 for( long nX =0L; nX < nWidth; nX++ ) in ImplReduceSimple() local
2923 …pWAcc->SetPixelIndex( nY, nX, static_cast<sal_uInt8>(aOct.GetBestPaletteIndex( pRAcc->GetPixel( nY… in ImplReduceSimple()
2998 long nX, nY, nR, nG, nB, nIndex; in ImplReducePopular() local
3018 for( nX = 0L; nX < nWidth; nX++ ) in ImplReducePopular()
3020 const BitmapColor& rCol = pRAcc->GetPaletteColor( pRAcc->GetPixelIndex( nY, nX ) ); in ImplReducePopular()
3031 for( nX = 0L; nX < nWidth; nX++ ) in ImplReducePopular()
3033 const BitmapColor aCol( pRAcc->GetPixel( nY, nX ) ); in ImplReducePopular()
3070 for( nX = 0L; nX < nWidth; nX++ ) in ImplReducePopular()
3072 const BitmapColor& rCol = pRAcc->GetPaletteColor( pRAcc->GetPixelIndex( nY, nX ) ); in ImplReducePopular()
3076 pWAcc->SetPixel( nY, nX, aDstCol ); in ImplReducePopular()
3084 for( nX = 0L; nX < nWidth; nX++ ) in ImplReducePopular()
3086 const BitmapColor aCol( pRAcc->GetPixel( nY, nX ) ); in ImplReducePopular()
3090 pWAcc->SetPixel( nY, nX, aDstCol ); in ImplReducePopular()
3156 for( long nX = 0L; nX < nWidth; nX++ ) in ImplReduceMedian() local
3158 const BitmapColor& rCol = pRAcc->GetPaletteColor( pRAcc->GetPixelIndex( nY, nX ) ); in ImplReduceMedian()
3167 for( long nX = 0L; nX < nWidth; nX++ ) in ImplReduceMedian() local
3169 const BitmapColor aCol( pRAcc->GetPixel( nY, nX ) ); in ImplReduceMedian()
3184 for( long nX = 0L; nX < nWidth; nX++ ) in ImplReduceMedian() local
3185 …pWAcc->SetPixelIndex( nY, nX, static_cast<sal_uInt8>( aMap.GetBestPaletteIndex( pRAcc->GetColor( n… in ImplReduceMedian()
3383 long nX, nY; in Adjust() local
3405 for( nX = 0L; nX < 256L; nX++ ) in Adjust()
3407 cMapR[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fROff ), 0L, 255L ); in Adjust()
3408 cMapG[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fGOff ), 0L, 255L ); in Adjust()
3409 cMapB[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fBOff ), 0L, 255L ); in Adjust()
3413 cMapR[ nX ] = GAMMA( cMapR[ nX ], fGamma ); in Adjust()
3414 cMapG[ nX ] = GAMMA( cMapG[ nX ], fGamma ); in Adjust()
3415 cMapB[ nX ] = GAMMA( cMapB[ nX ], fGamma ); in Adjust()
3420 cMapR[ nX ] = ~cMapR[ nX ]; in Adjust()
3421 cMapG[ nX ] = ~cMapG[ nX ]; in Adjust()
3422 cMapB[ nX ] = ~cMapB[ nX ]; in Adjust()
3446 for( nX = 0L; nX < nW; nX++ ) in Adjust()
3460 for( nX = 0L; nX < nW; nX++ ) in Adjust()
3472 for( nX = 0L; nX < nW; nX++ ) in Adjust()
3474 aCol = pAcc->GetPixel( nY, nX ); in Adjust()
3478 pAcc->SetPixel( nY, nX, aCol ); in Adjust()