Lines Matching refs:nY

383 				for( long nY = 0L; nY < nHeight; nY++ )  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()
400 for( long nY = 0L; nY < nHeight; nY++ ) 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()
460 for( long nY = 0L; nY < nHeight; nY++ ) in ImplMakeMonoDither() local
462 for( long nX = 0L, nModY = nY % 16; nX < nWidth; nX++ ) in ImplMakeMonoDither()
464 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeMonoDither()
468 pWriteAcc->SetPixel( nY, nX, aWhite ); in ImplMakeMonoDither()
471 pWriteAcc->SetPixel( nY, nX, aBlack ); in ImplMakeMonoDither()
477 for( long nY = 0L; nY < nHeight; nY++ ) in ImplMakeMonoDither() local
479 for( long nX = 0L, nModY = nY % 16; nX < nWidth; nX++ ) in ImplMakeMonoDither()
481 if( pReadAcc->GetPixel( nY, nX ).GetLuminance() > in ImplMakeMonoDither()
484 pWriteAcc->SetPixel( nY, nX, aWhite ); in ImplMakeMonoDither()
487 pWriteAcc->SetPixel( nY, nX, aBlack ); in ImplMakeMonoDither()
543 for( long nY = 0L; nY < nHeight; nY++ ) in ImplMakeGreyscales() local
547 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeGreyscales()
548 pWriteAcc->SetPixelIndex( nY, nX, in ImplMakeGreyscales()
558 for( long nY = 0L; nY < nHeight; nY++ ) in ImplMakeGreyscales() local
560 Scanline pReadScan = pReadAcc->GetScanline( nY ); in ImplMakeGreyscales()
561 Scanline pWriteScan = pWriteAcc->GetScanline( nY ); in ImplMakeGreyscales()
578 for( long nY = 0L; nY < nHeight; nY++ ) in ImplMakeGreyscales() local
580 Scanline pReadScan = pReadAcc->GetScanline( nY ); in ImplMakeGreyscales()
581 Scanline pWriteScan = pWriteAcc->GetScanline( nY ); in ImplMakeGreyscales()
595 for( long nY = 0L; nY < nHeight; nY++ ) in ImplMakeGreyscales() local
597 pWriteAcc->SetPixelIndex( nY, nX, (pReadAcc->GetPixel( nY, nX ) ).GetLuminance() >> nShift ); in ImplMakeGreyscales()
662 for( long nY = 0L; nY < nHeight; nY++ ) in ImplConvertUp() local
664 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY, nX ) ); in ImplConvertUp()
670 for( long nY = 0L; nY < nHeight; nY++ ) in ImplConvertUp() local
672 … pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nX ) ) ); in ImplConvertUp()
676 for( long nY = 0L; nY < nHeight; nY++ ) in ImplConvertUp() local
678 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY, nX ) ); in ImplConvertUp()
732 long nX, nY; in ImplConvertDown() local
753 for( nY = 0L; nY < Min( nHeight, 2L ); nY++, nYTmp++ ) in ImplConvertDown()
755 for( nX = 0L, pQLine2 = !nY ? pErrQuad1 : pErrQuad2; nX < nWidth; nX++ ) in ImplConvertDown()
764 for( nY = 0L; nY < nHeight; nY++, nYTmp++ ) in ImplConvertDown()
768 pWriteAcc->SetPixelIndex( nY, 0, cIndex ); in ImplConvertDown()
778 pWriteAcc->SetPixelIndex( nY, nX, cIndex ); in ImplConvertDown()
785 pWriteAcc->SetPixelIndex( nY, nX, cIndex ); in ImplConvertDown()
871 for( long nY = 0; nY < nHeight; nY++ ) 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
1139 for( nY = 0L; nY < nNewHeight; nY++ ) in ImplScaleFast()
1140 pLutY[ nY ] = nY * nHeight / nNewHeight; in ImplScaleFast()
1196 long nX, nY; in ImplScaleInterpolate() local
1218 for( nY = 0L; nY < nHeight; nY++ ) in ImplScaleInterpolate()
1224 aCol0 = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, 0 ) ); in ImplScaleInterpolate()
1228 aCol0 = pReadAcc->GetPixel( nY, 0 ); in ImplScaleInterpolate()
1233 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1244 aCol0 = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nTemp++ ) ); in ImplScaleInterpolate()
1245 aCol1 = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nTemp ) ); in ImplScaleInterpolate()
1249 aCol0 = pReadAcc->GetPixel( nY, nTemp++ ); in ImplScaleInterpolate()
1250 aCol1 = pReadAcc->GetPixel( nY, nTemp ); in ImplScaleInterpolate()
1263 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1294 for( nY = 0L, nTemp = nHeight - 2L; nY < nNewHeight; nY++ ) in ImplScaleInterpolate()
1296 fTemp = nY * fRevScaleY; in ImplScaleInterpolate()
1297 pLutInt[ nY ] = MinMax( (long) fTemp, 0, nTemp ); in ImplScaleInterpolate()
1298 fTemp -= pLutInt[ nY ]; in ImplScaleInterpolate()
1299 pLutFrac[ nY ] = (long) ( fTemp * 1024. ); in ImplScaleInterpolate()
1311 for( nY = 0L; nY < nNewHeight; nY++ ) in ImplScaleInterpolate()
1313 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1318 for( nY = 0L; nY < nNewHeight; nY++ ) in ImplScaleInterpolate()
1320 nTemp = pLutInt[ nY ]; in ImplScaleInterpolate()
1325 nTemp = pLutFrac[ nY ]; in ImplScaleInterpolate()
1335 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1393 long nX, nY, nXDst, nYDst;; in ImplScaleSuper() local
1419 for( nY = 0L, nTempY = nH - 1L, nTemp = nH - 2L; nY < nDstH; nY++ ) in ImplScaleSuper()
1421 fTemp = nY * fRevScaleY; in ImplScaleSuper()
1426 … pMapFY[ nY ] = (long) ( ( fTemp - ( pMapIY[ nY ] = MinMax( (long) fTemp, 0, nTemp ) ) ) * 128. ); in ImplScaleSuper()
1437 for( nY = nStartY, nYDst = 0L; nY <= nEndY; nY++, nYDst++ ) in ImplScaleSuper()
1439 nTempY = pMapIY[ nY ]; nTempFY = pMapFY[ nY ]; in ImplScaleSuper()
1474 for( nY = nStartY , nYDst = 0L; nY <= nEndY; nY++, nYDst++ ) in ImplScaleSuper()
1476 nTop = bVMirr ? ( nY + 1 ) : nY; in ImplScaleSuper()
1477 nBottom = bVMirr ? nY : ( nY + 1 ) ; in ImplScaleSuper()
1479 if( nY ==nEndY ) in ImplScaleSuper()
1481 nLineStart = pMapIY[ nY ]; in ImplScaleSuper()
1551 if( nY == nEndY ) in ImplScaleSuper()
1581 for( nY = nStartY, nYDst = 0L; nY <= nEndY; nY++, nYDst++ ) in ImplScaleSuper()
1583 nTempY = pMapIY[ nY ], nTempFY = pMapFY[ nY ]; in ImplScaleSuper()
1615 for( nY = nStartY , nYDst = 0L; nY <= nEndY; nY++, nYDst++ ) in ImplScaleSuper()
1617 nTop = bVMirr ? ( nY + 1 ) : nY; in ImplScaleSuper()
1618 nBottom = bVMirr ? nY : ( nY + 1 ) ; in ImplScaleSuper()
1620 if( nY ==nEndY ) in ImplScaleSuper()
1622 nLineStart = pMapIY[ nY ]; in ImplScaleSuper()
1695 if( nY == nEndY ) in ImplScaleSuper()
1730 for( nY = nStartY, nYDst = 0L; nY <= nEndY; nY++, nYDst++ ) in ImplScaleSuper()
1732 nTempY = pMapIY[ nY ]; nTempFY = pMapFY[ nY ]; in ImplScaleSuper()
1765 for( nY = nStartY , nYDst = 0L; nY <= nEndY; nY++, nYDst++ ) in ImplScaleSuper()
1767 nTop = bVMirr ? ( nY + 1 ) : nY; in ImplScaleSuper()
1768 nBottom = bVMirr ? nY : ( nY + 1 ) ; in ImplScaleSuper()
1770 if( nY ==nEndY ) in ImplScaleSuper()
1772 nLineStart = pMapIY[ nY ]; in ImplScaleSuper()
1841 if( nY == nEndY ) in ImplScaleSuper()
1874 for( nY = nStartY, nYDst = 0L; nY <= nEndY; nY++, nYDst++ ) in ImplScaleSuper()
1876 nTempY = pMapIY[ nY ]; nTempFY = pMapFY[ nY ]; in ImplScaleSuper()
1909 for( nY = nStartY , nYDst = 0L; nY <= nEndY; nY++, nYDst++ ) in ImplScaleSuper()
1911 nTop = bVMirr ? ( nY + 1 ) : nY; in ImplScaleSuper()
1912 nBottom = bVMirr ? nY : ( nY + 1 ) ; in ImplScaleSuper()
1914 if( nY ==nEndY ) in ImplScaleSuper()
1916 nLineStart = pMapIY[ nY ]; in ImplScaleSuper()
1985 if( nY == nEndY ) in ImplScaleSuper()
2015 for( nY = nStartY, nYDst = 0L; nY <= nEndY; nY++, nYDst++ ) in ImplScaleSuper()
2017 nTempY = pMapIY[ nY ]; nTempFY = pMapFY[ nY ]; in ImplScaleSuper()
2048 for( nY = nStartY , nYDst = 0L; nY <= nEndY; nY++, nYDst++ ) in ImplScaleSuper()
2050 nTop = bVMirr ? ( nY + 1 ) : nY; in ImplScaleSuper()
2051 nBottom = bVMirr ? nY : ( nY + 1 ) ; in ImplScaleSuper()
2053 if( nY ==nEndY ) in ImplScaleSuper()
2055 nLineStart = pMapIY[ nY ]; in ImplScaleSuper()
2127 if( nY == nEndY ) in ImplScaleSuper()
2574 for( sal_uLong nY = 0UL; nY < nHeight; nY++ ) in ImplDitherMatrix() local
2576 for( sal_uLong nX = 0UL, nModY = ( nY & 0x0FUL ) << 4UL; nX < nWidth; nX++ ) in ImplDitherMatrix()
2578 const BitmapColor aCol( pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nX ) ) ); in ImplDitherMatrix()
2585 pWriteAcc->SetPixel( nY, nX, aIndex ); in ImplDitherMatrix()
2591 for( sal_uLong nY = 0UL; nY < nHeight; nY++ ) in ImplDitherMatrix() local
2593 for( sal_uLong nX = 0UL, nModY = ( nY & 0x0FUL ) << 4UL; nX < nWidth; nX++ ) in ImplDitherMatrix()
2595 const BitmapColor aCol( pReadAcc->GetPixel( nY, nX ) ); in ImplDitherMatrix()
2602 pWriteAcc->SetPixel( nY, nX, aIndex ); in ImplDitherMatrix()
2685 for( long nY = 1, nYAcc = 0L; nY <= nHeight; nY++, nYAcc++ ) in ImplDitherFloyd() local
2691 if( nY < nHeight ) in ImplDitherFloyd()
2697 aColor = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nZ ) ); in ImplDitherFloyd()
2708 aColor = pReadAcc->GetPixel( nY, nZ ); in ImplDitherFloyd()
2789 long nX, nY; in ImplDitherFloyd16() local
2793 for( nY = 0L; nY < Min( nHeight, 2L ); nY++, nYTmp++ ) in ImplDitherFloyd16()
2794 for( nX = 0L, pQLine2 = !nY ? pErrQuad1 : pErrQuad2; nX < nWidth; nX++ ) in ImplDitherFloyd16()
2797 for( nY = 0L; nY < nHeight; nY++, nYTmp++ ) in ImplDitherFloyd16()
2804 pWriteAcc->SetPixel( nY, 0, aBestCol ); in ImplDitherFloyd16()
2817 pWriteAcc->SetPixel( nY, nX, aBestCol ); in ImplDitherFloyd16()
2825 pWriteAcc->SetPixel( nY, nX, aBestCol ); in ImplDitherFloyd16()
2915 for( long nY = 0L; nY < nHeight; nY++ ) in ImplReduceSimple() local
2917 …pWAcc->SetPixelIndex( nY, nX, static_cast<sal_uInt8>(aOct.GetBestPaletteIndex( pRAcc->GetPaletteCo… in ImplReduceSimple()
2921 for( long nY = 0L; nY < nHeight; nY++ ) 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
3016 for( nY = 0L; nY < nHeight; nY++ ) in ImplReducePopular()
3020 const BitmapColor& rCol = pRAcc->GetPaletteColor( pRAcc->GetPixelIndex( nY, nX ) ); in ImplReducePopular()
3029 for( nY = 0L; nY < nHeight; nY++ ) in ImplReducePopular()
3033 const BitmapColor aCol( pRAcc->GetPixel( nY, nX ) ); in ImplReducePopular()
3068 for( nY = 0L; nY < nHeight; nY++ ) in ImplReducePopular()
3072 const BitmapColor& rCol = pRAcc->GetPaletteColor( pRAcc->GetPixelIndex( nY, nX ) ); in ImplReducePopular()
3076 pWAcc->SetPixel( nY, nX, aDstCol ); in ImplReducePopular()
3082 for( nY = 0L; nY < nHeight; nY++ ) in ImplReducePopular()
3086 const BitmapColor aCol( pRAcc->GetPixel( nY, nX ) ); in ImplReducePopular()
3090 pWAcc->SetPixel( nY, nX, aDstCol ); in ImplReducePopular()
3154 for( long nY = 0L; nY < nHeight; nY++ ) in ImplReduceMedian() local
3158 const BitmapColor& rCol = pRAcc->GetPaletteColor( pRAcc->GetPixelIndex( nY, nX ) ); in ImplReduceMedian()
3165 for( long nY = 0L; nY < nHeight; nY++ ) in ImplReduceMedian() local
3169 const BitmapColor aCol( pRAcc->GetPixel( nY, nX ) ); in ImplReduceMedian()
3183 for( long nY = 0L; nY < nHeight; nY++ ) 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
3442 for( nY = 0L; nY < nH; nY++ ) in Adjust()
3444 Scanline pScan = pAcc->GetScanline( nY ); in Adjust()
3456 for( nY = 0L; nY < nH; nY++ ) in Adjust()
3458 Scanline pScan = pAcc->GetScanline( nY ); in Adjust()
3470 for( nY = 0L; nY < nH; nY++ ) in Adjust()
3474 aCol = pAcc->GetPixel( nY, nX ); in Adjust()
3478 pAcc->SetPixel( nY, nX, aCol ); in Adjust()