Lines Matching refs:pWriteAcc

372 		BitmapWriteAccess*	pWriteAcc = aNewBmp.AcquireWriteAccess();  in ImplMakeMono()  local
374 if( pWriteAcc ) in ImplMakeMono()
376 const BitmapColor aBlack( pWriteAcc->GetBestMatchingColor( Color( COL_BLACK ) ) ); in ImplMakeMono()
377 const BitmapColor aWhite( pWriteAcc->GetBestMatchingColor( Color( COL_WHITE ) ) ); in ImplMakeMono()
378 const long nWidth = pWriteAcc->Width(); in ImplMakeMono()
379 const long nHeight = pWriteAcc->Height(); in ImplMakeMono()
391 pWriteAcc->SetPixel( nY, nX, aWhite ); in ImplMakeMono()
394 pWriteAcc->SetPixel( nY, nX, aBlack ); in ImplMakeMono()
407 pWriteAcc->SetPixel( nY, nX, aWhite ); in ImplMakeMono()
410 pWriteAcc->SetPixel( nY, nX, aBlack ); in ImplMakeMono()
415 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplMakeMono()
446 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in ImplMakeMonoDither() local
448 if( pWriteAcc ) in ImplMakeMonoDither()
450 const BitmapColor aBlack( pWriteAcc->GetBestMatchingColor( Color( COL_BLACK ) ) ); in ImplMakeMonoDither()
451 const BitmapColor aWhite( pWriteAcc->GetBestMatchingColor( Color( COL_WHITE ) ) ); in ImplMakeMonoDither()
452 const long nWidth = pWriteAcc->Width(); in ImplMakeMonoDither()
453 const long nHeight = pWriteAcc->Height(); in ImplMakeMonoDither()
468 pWriteAcc->SetPixel( nY, nX, aWhite ); in ImplMakeMonoDither()
471 pWriteAcc->SetPixel( nY, nX, aBlack ); in ImplMakeMonoDither()
484 pWriteAcc->SetPixel( nY, nX, aWhite ); in ImplMakeMonoDither()
487 pWriteAcc->SetPixel( nY, nX, aBlack ); in ImplMakeMonoDither()
492 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplMakeMonoDither()
534 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in ImplMakeGreyscales() local
536 if( pWriteAcc ) in ImplMakeGreyscales()
538 const long nWidth = pWriteAcc->Width(); in ImplMakeGreyscales()
539 const long nHeight = pWriteAcc->Height(); in ImplMakeGreyscales()
548 pWriteAcc->SetPixelIndex( nY, nX, in ImplMakeGreyscales()
554 pWriteAcc->GetScanlineFormat() == BMP_FORMAT_8BIT_PAL ) in ImplMakeGreyscales()
561 Scanline pWriteScan = pWriteAcc->GetScanline( nY ); in ImplMakeGreyscales()
574 pWriteAcc->GetScanlineFormat() == BMP_FORMAT_8BIT_PAL ) in ImplMakeGreyscales()
581 Scanline pWriteScan = pWriteAcc->GetScanline( nY ); in ImplMakeGreyscales()
597 pWriteAcc->SetPixelIndex( nY, nX, (pReadAcc->GetPixel( nY, nX ) ).GetLuminance() >> nShift ); in ImplMakeGreyscales()
600 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplMakeGreyscales()
640 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in ImplConvertUp() local
642 if( pWriteAcc ) in ImplConvertUp()
644 const long nWidth = pWriteAcc->Width(); in ImplConvertUp()
645 const long nHeight = pWriteAcc->Height(); in ImplConvertUp()
647 if( pWriteAcc->HasPalette() ) in ImplConvertUp()
660 pWriteAcc->SetPalette( aPal ); in ImplConvertUp()
664 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY, nX ) ); in ImplConvertUp()
672pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nX ) ) ); in ImplConvertUp()
678 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY, nX ) ); in ImplConvertUp()
682 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplConvertUp()
716 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in ImplConvertDown() local
718 if( pWriteAcc ) in ImplConvertDown()
721 const long nWidth = pWriteAcc->Width(); in ImplConvertDown()
723 const long nHeight = pWriteAcc->Height(); in ImplConvertDown()
751 pWriteAcc->SetPalette( aPal ); in ImplConvertDown()
768 pWriteAcc->SetPixelIndex( nY, 0, cIndex ); in ImplConvertDown()
773 aErrQuad = ( ImpErrorQuad( aColor ) -= pWriteAcc->GetPaletteColor( cIndex ) ); in ImplConvertDown()
778 pWriteAcc->SetPixelIndex( nY, nX, cIndex ); in ImplConvertDown()
785 pWriteAcc->SetPixelIndex( nY, nX, cIndex ); in ImplConvertDown()
808 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplConvertDown()
1121 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in ImplScaleFast() local
1123 if( pWriteAcc ) in ImplScaleFast()
1125 const long nScanlineSize = pWriteAcc->GetScanlineSize(); in ImplScaleFast()
1147 pWriteAcc->SetPixel( nActY, nX, pReadAcc->GetPixel( nMapY , pLutX[ nX ] ) ); in ImplScaleFast()
1151 memcpy( pWriteAcc->GetScanline( nActY + 1L ), in ImplScaleFast()
1152 pWriteAcc->GetScanline( nActY ), nScanlineSize ); in ImplScaleFast()
1167 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplScaleFast()
1193 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in ImplScaleInterpolate() local
1201 if( pReadAcc && pWriteAcc ) in ImplScaleInterpolate()
1233 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1263 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1274 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplScaleInterpolate()
1283 pWriteAcc = aNewBmp.AcquireWriteAccess(); in ImplScaleInterpolate()
1285 if( pReadAcc && pWriteAcc ) in ImplScaleInterpolate()
1313 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1335 pWriteAcc->SetPixel( nY, nX, aCol0 ); in ImplScaleInterpolate()
1346 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplScaleInterpolate()
2263 BitmapWriteAccess* pWriteAcc = rTarget.AcquireWriteAccess(); in ImplScaleConvolutionHor() local
2264 bool bResult(0 != pWriteAcc); in ImplScaleConvolutionHor()
2305 pWriteAcc->SetPixel(y, x, aResultColor); in ImplScaleConvolutionHor()
2309 rTarget.ReleaseAccess(pWriteAcc); in ImplScaleConvolutionHor()
2354 BitmapWriteAccess* pWriteAcc = rTarget.AcquireWriteAccess(); in ImplScaleConvolutionVer() local
2355 bool bResult(0 != pWriteAcc); in ImplScaleConvolutionVer()
2357 if(pWriteAcc) in ImplScaleConvolutionVer()
2396 if(pWriteAcc->HasPalette()) in ImplScaleConvolutionVer()
2398pWriteAcc->SetPixelIndex(y, x, static_cast< sal_uInt8 >(pWriteAcc->GetBestPaletteIndex(aResultColo… in ImplScaleConvolutionVer()
2402 pWriteAcc->SetPixel(y, x, aResultColor); in ImplScaleConvolutionVer()
2408 rTarget.ReleaseAccess(pWriteAcc); in ImplScaleConvolutionVer()
2563 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in ImplDitherMatrix() local
2566 if( pReadAcc && pWriteAcc ) in ImplDitherMatrix()
2585 pWriteAcc->SetPixel( nY, nX, aIndex ); in ImplDitherMatrix()
2602 pWriteAcc->SetPixel( nY, nX, aIndex ); in ImplDitherMatrix()
2611 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplDitherMatrix()
2638 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in ImplDitherFloyd() local
2640 if( pReadAcc && pWriteAcc ) in ImplDitherFloyd()
2723pWriteAcc->SetPixelIndex( nYAcc, 0, static_cast<sal_uInt8>(nVCLBLut[ nBC ] + nVCLGLut[nGC ] + nVCL… in ImplDitherFloyd()
2734pWriteAcc->SetPixelIndex( nYAcc, nXAcc, static_cast<sal_uInt8>(nVCLBLut[ nBC ] + nVCLGLut[nGC ] + … in ImplDitherFloyd()
2742pWriteAcc->SetPixelIndex( nYAcc, nWidth1, static_cast<sal_uInt8>(nVCLBLut[ nBC ] + nVCLGLut[nGC ] … in ImplDitherFloyd()
2751 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplDitherFloyd()
2774 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in ImplDitherFloyd16() local
2777 if( pReadAcc && pWriteAcc ) in ImplDitherFloyd16()
2779 const long nWidth = pWriteAcc->Width(); in ImplDitherFloyd16()
2781 const long nHeight = pWriteAcc->Height(); 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()
2843 aNewBmp.ReleaseAccess( pWriteAcc ); in ImplDitherFloyd16()