Lines Matching refs:nValue
227 inline unsigned long doRightShift( unsigned long nValue, int nShift ) in doRightShift() argument
229 return (nShift > 0) ? (nValue >> nShift) : (nValue << (-nShift)); in doRightShift()
232 inline unsigned long doLeftShift( unsigned long nValue, int nShift ) in doLeftShift() argument
234 return (nShift > 0) ? (nValue << nShift) : (nValue >> (-nShift)); in doLeftShift()
309 sal_uInt8 nValue = (sal_uInt8)doRightShift( nPixel&aVInfo.blue_mask, nBlueShift); in X11_getTCBmpFromImage() local
311 nValue |= (nValue >> nBlueShift2 ); in X11_getTCBmpFromImage()
312 *pScanline++ = nValue; in X11_getTCBmpFromImage()
314 nValue = (sal_uInt8)doRightShift( nPixel&aVInfo.green_mask, nGreenShift); in X11_getTCBmpFromImage()
316 nValue |= (nValue >> nGreenShift2 ); in X11_getTCBmpFromImage()
317 *pScanline++ = nValue; in X11_getTCBmpFromImage()
319 nValue = (sal_uInt8)doRightShift( nPixel&aVInfo.red_mask, nRedShift); in X11_getTCBmpFromImage()
321 nValue |= (nValue >> nRedShift2 ); in X11_getTCBmpFromImage()
322 *pScanline++ = nValue; in X11_getTCBmpFromImage()
454 unsigned long nValue = (unsigned long)b; in getTCPixel() local
455 nValue &= m_nBlueShift2Mask; in getTCPixel()
456 nPixel |= doLeftShift( nValue, m_nBlueShift ); in getTCPixel()
458 nValue = (unsigned long)g; in getTCPixel()
459 nValue &= m_nGreenShift2Mask; in getTCPixel()
460 nPixel |= doLeftShift( nValue, m_nGreenShift ); in getTCPixel()
462 nValue = (unsigned long)r; in getTCPixel()
463 nValue &= m_nRedShift2Mask; in getTCPixel()
464 nPixel |= doLeftShift( nValue, m_nRedShift ); in getTCPixel()