Lines Matching refs:mpBuffer
40 mpBuffer ( NULL ), in BitmapReadAccess()
52 mpBuffer ( NULL ), in BitmapReadAccess()
89 mpBuffer = pImpBmp->ImplAcquireBuffer( !mbModify ); in ImplCreate()
91 if( !mpBuffer ) in ImplCreate()
99 mpBuffer = pImpBmp->ImplAcquireBuffer( !mbModify ); in ImplCreate()
105 if( mpBuffer ) in ImplCreate()
107 const long nHeight = mpBuffer->mnHeight; in ImplCreate()
108 Scanline pTmpLine = mpBuffer->mpBits; in ImplCreate()
116 maColorMask = mpBuffer->maColorMask; in ImplCreate()
118 if( BMP_SCANLINE_ADJUSTMENT( mpBuffer->mnFormat ) == BMP_FORMAT_TOP_DOWN ) in ImplCreate()
120 for( long nY = 0L; nY < nHeight; nY++, pTmpLine += mpBuffer->mnScanlineSize ) in ImplCreate()
125 … for( long nY = nHeight - 1; nY >= 0; nY--, pTmpLine += mpBuffer->mnScanlineSize ) in ImplCreate()
129 if( !ImplSetAccessPointers( BMP_SCANLINE_FORMAT( mpBuffer->mnFormat ) ) ) in ImplCreate()
134 pImpBmp->ImplReleaseBuffer( mpBuffer, !mbModify ); in ImplCreate()
135 mpBuffer = NULL; in ImplCreate()
140 pImpBmp->ImplReleaseBuffer( mpBuffer, !mbModify ); in ImplCreate()
141 mpBuffer = NULL; in ImplCreate()
156 if( mpBuffer && pImpBmp ) in ImplDestroy()
158 pImpBmp->ImplReleaseBuffer( mpBuffer, !mbModify ); in ImplDestroy()
159 mpBuffer = NULL; in ImplDestroy()
319 DBG_ASSERT( !mpBuffer, "No ReAccess possible while bitmap is being accessed!" ); in ReAccess()
322 if( !mpBuffer && pImpBmp && ( pImpBmp->ImplGetRefCount() > 1UL ) ) in ReAccess()
333 return( HasPalette() ? mpBuffer->maPalette.GetBestIndex( rBitmapColor ) : 0 ); in GetBestPaletteIndex()
340 if(mpBuffer && fX >= 0.0 && fY >= 0.0) in GetInterpolatedColorWithFallback()
345 if(nX < mpBuffer->mnWidth && nY < mpBuffer->mnHeight) in GetInterpolatedColorWithFallback()
379 if(nDeltaX && nIndX >= 0 && nIndX < mpBuffer->mnWidth) in GetInterpolatedColorWithFallback()
387 if(nDeltaY && nIndY >= 0 && nIndY < mpBuffer->mnHeight) in GetInterpolatedColorWithFallback()
395 …(nDeltaX && nDeltaY && nIndX >=0 && nIndY >= 0 && nIndX < mpBuffer->mnWidth && nIndY < mpBuffer->m… in GetInterpolatedColorWithFallback()
429 if(mpBuffer && fX >= 0.0 && fY >= 0.0) in GetColorWithFallback()
434 if(nX < mpBuffer->mnWidth && nY < mpBuffer->mnHeight) in GetColorWithFallback()
445 if(mpBuffer) in GetColorWithFallback()
447 if(nX >= 0 && nY >= 0 && nX < mpBuffer->mnWidth && nY < mpBuffer->mnHeight) in GetColorWithFallback()
479 …DBG_ASSERT( ( nY >= 0 ) && ( nY < mpBuffer->mnHeight ), "y-coordinate in destination out of range!… in CopyScanline()
490 for( long nX = 0L, nWidth = Min( mpBuffer->mnWidth, rReadAcc.Width() ); nX < nWidth; nX++ ) in CopyScanline()
501 …DBG_ASSERT( ( nY >= 0 ) && ( nY < mpBuffer->mnHeight ), "y-coordinate in destination out of range!… in CopyScanline()
550 for( long nX = 0L, nWidth = mpBuffer->mnWidth; nX < nWidth; nX++ ) in CopyScanline()
567 const long nHeight = Min( mpBuffer->mnHeight, rReadAcc.Height() ); in CopyBuffer()
568 const sal_uLong nCount = nHeight * mpBuffer->mnScanlineSize; in CopyBuffer()
570 memcpy( mpBuffer->mpBits, rReadAcc.GetBuffer(), nCount ); in CopyBuffer()
573 for( long nY = 0L, nHeight = Min( mpBuffer->mnHeight, rReadAcc.Height() ); nY < nHeight; nY++ ) in CopyBuffer()