Lines Matching refs:pReadAcc
366 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in ImplMakeMono() local
369 if( pReadAcc ) in ImplMakeMono()
381 if( pReadAcc->HasPalette() ) in ImplMakeMono()
387 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeMono()
388 if( pReadAcc->GetPaletteColor( cIndex ).GetLuminance() >= in ImplMakeMono()
404 if( pReadAcc->GetPixel( nY, nX ).GetLuminance() >= in ImplMakeMono()
419 ReleaseAccess( pReadAcc ); in ImplMakeMono()
440 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in ImplMakeMonoDither() local
443 if( pReadAcc ) in ImplMakeMonoDither()
458 if( pReadAcc->HasPalette() ) in ImplMakeMonoDither()
464 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeMonoDither()
465 if( pReadAcc->GetPaletteColor( cIndex ).GetLuminance() > in ImplMakeMonoDither()
481 if( pReadAcc->GetPixel( nY, nX ).GetLuminance() > in ImplMakeMonoDither()
496 ReleaseAccess( pReadAcc ); in ImplMakeMonoDither()
519 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in ImplMakeGreyscales() local
522 if( pReadAcc ) in ImplMakeGreyscales()
526 …sal_Bool bPalDiffers = !pReadAcc->HasPalette() || ( rPal.GetEntryCount() != pReadAcc->GetPalet… in ImplMakeGreyscales()
529 bPalDiffers = ( (BitmapPalette&) rPal != pReadAcc->GetPalette() ); in ImplMakeGreyscales()
541 if( pReadAcc->HasPalette() ) in ImplMakeGreyscales()
547 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeGreyscales()
549 (pReadAcc->GetPaletteColor( cIndex ).GetLuminance() >> nShift) ); in ImplMakeGreyscales()
553 else if( pReadAcc->GetScanlineFormat() == BMP_FORMAT_24BIT_TC_BGR && in ImplMakeGreyscales()
560 Scanline pReadScan = pReadAcc->GetScanline( nY ); in ImplMakeGreyscales()
573 else if( pReadAcc->GetScanlineFormat() == BMP_FORMAT_24BIT_TC_RGB && in ImplMakeGreyscales()
580 Scanline pReadScan = pReadAcc->GetScanline( nY ); in ImplMakeGreyscales()
597 pWriteAcc->SetPixelIndex( nY, nX, (pReadAcc->GetPixel( nY, nX ) ).GetLuminance() >> nShift ); in ImplMakeGreyscales()
604 ReleaseAccess( pReadAcc ); in ImplMakeGreyscales()
619 ReleaseAccess( pReadAcc ); in ImplMakeGreyscales()
633 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in ImplConvertUp() local
636 if( pReadAcc ) in ImplConvertUp()
639 …Bitmap aNewBmp( GetSizePixel(), nBitCount, pReadAcc->HasPalette() ? &pReadAcc->GetPalette() : &… in ImplConvertUp()
650 const BitmapPalette& rOldPal = pReadAcc->GetPalette(); in ImplConvertUp()
664 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY, nX ) ); in ImplConvertUp()
668 if( pReadAcc->HasPalette() ) in ImplConvertUp()
672 … pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nX ) ) ); in ImplConvertUp()
678 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY, nX ) ); in ImplConvertUp()
686 ReleaseAccess( pReadAcc ); in ImplConvertUp()
709 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in ImplConvertDown() local
712 if( pReadAcc ) in ImplConvertDown()
724 Octree aOctree( *pReadAcc, pExtColor ? ( nCount - 1 ) : nCount ); in ImplConvertDown()
757 if( pReadAcc->HasPalette() ) in ImplConvertDown()
758 pQLine2[ nX ] = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nYTmp, nX ) ); in ImplConvertDown()
760 pQLine2[ nX ] = pReadAcc->GetPixel( nYTmp, nX ); in ImplConvertDown()
796 if( pReadAcc->HasPalette() ) in ImplConvertDown()
797 pQLine2[ nX ] = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nYTmp, nX ) ); in ImplConvertDown()
799 pQLine2[ nX ] = pReadAcc->GetPixel( nYTmp, nX ); in ImplConvertDown()
812 ReleaseAccess( pReadAcc ); in ImplConvertDown()
1116 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in ImplScaleFast() local
1117 if ( !pReadAcc ) in ImplScaleFast()
1120 Bitmap aNewBmp( Size( nNewWidth, nNewHeight ), GetBitCount(), &pReadAcc->GetPalette() ); in ImplScaleFast()
1128 const long nWidth = pReadAcc->Width(); in ImplScaleFast()
1129 const long nHeight = pReadAcc->Height(); in ImplScaleFast()
1147 pWriteAcc->SetPixel( nActY, nX, pReadAcc->GetPixel( nMapY , pLutX[ nX ] ) ); in ImplScaleFast()
1166 ReleaseAccess( pReadAcc ); in ImplScaleFast()
1189 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in ImplScaleInterpolate() local
1190 long nWidth = pReadAcc->Width(); in ImplScaleInterpolate()
1191 long nHeight = pReadAcc->Height(); in ImplScaleInterpolate()
1201 if( pReadAcc && pWriteAcc ) in ImplScaleInterpolate()
1204 const long nWidth1 = pReadAcc->Width() - 1L; in ImplScaleInterpolate()
1222 if( pReadAcc->HasPalette() ) in ImplScaleInterpolate()
1224 aCol0 = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, 0 ) ); in ImplScaleInterpolate()
1228 aCol0 = pReadAcc->GetPixel( nY, 0 ); in ImplScaleInterpolate()
1242 if( pReadAcc->HasPalette() ) 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()
1273 ReleaseAccess( pReadAcc ); in ImplScaleInterpolate()
1282 pReadAcc = AcquireReadAccess(); in ImplScaleInterpolate()
1285 if( pReadAcc && pWriteAcc ) in ImplScaleInterpolate()
1288 const long nHeight1 = pReadAcc->Height() - 1L; in ImplScaleInterpolate()
1303 …OSL_ENSURE(!pReadAcc->HasPalette(), "OOps, somehow ImplScaleInterpolate in-between format has pale… in ImplScaleInterpolate()
1309 aCol0 = pReadAcc->GetPixel( 0, nX ); in ImplScaleInterpolate()
1322 aCol0 = pReadAcc->GetPixel( nTemp++, nX ); in ImplScaleInterpolate()
1323 aCol1 = pReadAcc->GetPixel( nTemp, nX ); in ImplScaleInterpolate()
1345 ReleaseAccess( pReadAcc ); in ImplScaleInterpolate()
2251 BitmapReadAccess* pReadAcc = rSource.AcquireReadAccess(); in ImplScaleConvolutionHor() local
2253 if(pReadAcc) in ImplScaleConvolutionHor()
2286 if(pReadAcc->HasPalette()) in ImplScaleConvolutionHor()
2288 … aColor = pReadAcc->GetPaletteColor(pReadAcc->GetPixelIndex(y, pPixels[aIndex])); in ImplScaleConvolutionHor()
2292 aColor = pReadAcc->GetPixel(y, pPixels[aIndex]); in ImplScaleConvolutionHor()
2312 rSource.ReleaseAccess(pReadAcc); in ImplScaleConvolutionHor()
2342 BitmapReadAccess* pReadAcc = rSource.AcquireReadAccess(); in ImplScaleConvolutionVer() local
2344 if(pReadAcc) in ImplScaleConvolutionVer()
2377 if(pReadAcc->HasPalette()) in ImplScaleConvolutionVer()
2379 … aColor = pReadAcc->GetPaletteColor(pReadAcc->GetPixelIndex(pPixels[aIndex], x)); in ImplScaleConvolutionVer()
2383 aColor = pReadAcc->GetPixel(pPixels[aIndex], x); in ImplScaleConvolutionVer()
2409 rSource.ReleaseAccess(pReadAcc); in ImplScaleConvolutionVer()
2561 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in ImplDitherMatrix() local
2566 if( pReadAcc && pWriteAcc ) in ImplDitherMatrix()
2568 const sal_uLong nWidth = pReadAcc->Width(); in ImplDitherMatrix()
2569 const sal_uLong nHeight = pReadAcc->Height(); in ImplDitherMatrix()
2572 if( pReadAcc->HasPalette() ) in ImplDitherMatrix()
2578 const BitmapColor aCol( pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nX ) ) ); in ImplDitherMatrix()
2595 const BitmapColor aCol( pReadAcc->GetPixel( nY, nX ) ); in ImplDitherMatrix()
2610 ReleaseAccess( pReadAcc ); in ImplDitherMatrix()
2636 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in ImplDitherFloyd() local
2640 if( pReadAcc && pWriteAcc ) in ImplDitherFloyd()
2643 long nWidth = pReadAcc->Width(); in ImplDitherFloyd()
2645 long nHeight = pReadAcc->Height(); in ImplDitherFloyd()
2658 sal_Bool bPal = pReadAcc->HasPalette(); in ImplDitherFloyd()
2666 aColor = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( 0, nZ ) ); in ImplDitherFloyd()
2677 aColor = pReadAcc->GetPixel( 0, nZ ); in ImplDitherFloyd()
2697 aColor = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nZ ) ); in ImplDitherFloyd()
2708 aColor = pReadAcc->GetPixel( nY, nZ ); in ImplDitherFloyd()
2750 ReleaseAccess( pReadAcc ); in ImplDitherFloyd()
2772 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in ImplDitherFloyd16() local
2777 if( pReadAcc && pWriteAcc ) in ImplDitherFloyd16()
2795 pQLine2[ nX ] = pReadAcc->GetPixel( nYTmp, nX ); in ImplDitherFloyd16()
2833 pQLine2[ nX ] = pReadAcc->GetPixel( nYTmp, nX ); in ImplDitherFloyd16()
2842 ReleaseAccess( pReadAcc ); in ImplDitherFloyd16()