Lines Matching refs:sal_uInt8
42 #define GAMMA( _def_cVal, _def_InvGamma ) ((sal_uInt8)MinMax(FRound(pow( _def_cVal/255.0,_def_InvGa…
43 #define MAP( cVal0, cVal1, nFrac ) ((sal_uInt8)((((long)(cVal0)<<7L)+nFrac*((long)(cVal1)-(cVal0)))…
244 void ImplCreateDitherMatrix( sal_uInt8 (*pDitherMatrix)[16][16] ) in ImplCreateDitherMatrix()
251 static sal_uInt8 pMagic[4][4] = { { 0, 14, 3, 13, }, in ImplCreateDitherMatrix()
267 (*pDitherMatrix)[i][j] = (sal_uInt8) ( fVal * pMtx[i][j] ); in ImplCreateDitherMatrix()
364 sal_Bool Bitmap::ImplMakeMono( sal_uInt8 cThreshold ) in ImplMakeMono()
387 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeMono()
454 sal_uInt8 pDitherMatrix[ 16 ][ 16 ]; in ImplMakeMonoDither()
464 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeMonoDither()
547 const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY, nX ); in ImplMakeGreyscales()
569 *pWriteScan++ = (sal_uInt8) ( ( nB * 28UL + nG * 151UL + nR * 77UL ) >> nShift ); in ImplMakeGreyscales()
589 *pWriteScan++ = (sal_uInt8) ( ( nB * 28UL + nG * 151UL + nR * 77UL ) >> nShift ); in ImplMakeGreyscales()
734 sal_uInt8 cIndex; in ImplConvertDown()
767 cIndex = (sal_uInt8) aColorMap.GetBestPaletteIndex( pQLine1[ 0 ].ImplGetColor() ); in ImplConvertDown()
772 cIndex = (sal_uInt8) aColorMap.GetBestPaletteIndex( aColor = pQLine1[ nX ].ImplGetColor() ); in ImplConvertDown()
784 cIndex = (sal_uInt8) aColorMap.GetBestPaletteIndex( pQLine1[ nWidth1 ].ImplGetColor() ); in ImplConvertDown()
1259 aCol0.SetRed( (sal_uInt8) ( ( lXR1 * nTemp + ( lXR0 << 10 ) ) >> 10 ) ); in ImplScaleInterpolate()
1260 aCol0.SetGreen( (sal_uInt8) ( ( lXG1 * nTemp + ( lXG0 << 10 ) ) >> 10 ) ); in ImplScaleInterpolate()
1261 aCol0.SetBlue( (sal_uInt8) ( ( lXB1 * nTemp + ( lXB0 << 10 ) ) >> 10 ) ); in ImplScaleInterpolate()
1331 aCol0.SetRed( (sal_uInt8) ( ( lXR1 * nTemp + ( lXR0 << 10 ) ) >> 10 ) ); in ImplScaleInterpolate()
1332 aCol0.SetGreen( (sal_uInt8) ( ( lXG1 * nTemp + ( lXG0 << 10 ) ) >> 10 ) ); in ImplScaleInterpolate()
1333 aCol0.SetBlue( (sal_uInt8) ( ( lXB1 * nTemp + ( lXB0 << 10 ) ) >> 10 ) ); in ImplScaleInterpolate()
1396 sal_uInt8 cR0, cG0, cB0, cR1, cG1, cB1; in ImplScaleSuper()
1568 aColRes.SetRed( ( sal_uInt8 ) (( nSumR / nTotalWeightY ) )); in ImplScaleSuper()
1569 aColRes.SetGreen( ( sal_uInt8 ) (( nSumG / nTotalWeightY) )); in ImplScaleSuper()
1570 aColRes.SetBlue( ( sal_uInt8 ) (( nSumB / nTotalWeightY ) )); in ImplScaleSuper()
1712 aColRes.SetRed( ( sal_uInt8 ) (( nSumR / nTotalWeightY ) )); in ImplScaleSuper()
1713 aColRes.SetGreen( ( sal_uInt8 ) (( nSumG / nTotalWeightY) )); in ImplScaleSuper()
1714 aColRes.SetBlue( ( sal_uInt8 ) (( nSumB / nTotalWeightY ) )); in ImplScaleSuper()
1858 aColRes.SetRed( ( sal_uInt8 ) (( nSumR / nTotalWeightY ) )); in ImplScaleSuper()
1859 aColRes.SetGreen( ( sal_uInt8 ) (( nSumG / nTotalWeightY) )); in ImplScaleSuper()
1860 aColRes.SetBlue( ( sal_uInt8 ) (( nSumB / nTotalWeightY ) )); in ImplScaleSuper()
2002 aColRes.SetRed( ( sal_uInt8 ) (( nSumR / nTotalWeightY ) )); in ImplScaleSuper()
2003 aColRes.SetGreen( ( sal_uInt8 ) (( nSumG / nTotalWeightY) )); in ImplScaleSuper()
2004 aColRes.SetBlue( ( sal_uInt8 ) (( nSumB / nTotalWeightY ) )); in ImplScaleSuper()
2144 aColRes.SetRed( ( sal_uInt8 ) (( nSumR / nTotalWeightY ) )); in ImplScaleSuper()
2145 aColRes.SetGreen( ( sal_uInt8 ) (( nSumG / nTotalWeightY) )); in ImplScaleSuper()
2146 aColRes.SetBlue( ( sal_uInt8 ) (( nSumB / nTotalWeightY ) )); in ImplScaleSuper()
2301 static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueRed / aSum), 0, 255)), in ImplScaleConvolutionHor()
2302 static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueGreen / aSum), 0, 255)), in ImplScaleConvolutionHor()
2303 static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueBlue / aSum), 0, 255))); in ImplScaleConvolutionHor()
2392 static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueRed / aSum), 0, 255)), in ImplScaleConvolutionVer()
2393 static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueGreen / aSum), 0, 255)), in ImplScaleConvolutionVer()
2394 static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueBlue / aSum), 0, 255))); in ImplScaleConvolutionVer()
2398 …pWriteAcc->SetPixelIndex(y, x, static_cast< sal_uInt8 >(pWriteAcc->GetBestPaletteIndex(aResultColo… in ImplScaleConvolutionVer()
2570 BitmapColor aIndex( (sal_uInt8) 0 ); in ImplDitherMatrix()
2584 aIndex.SetIndex( (sal_uInt8) ( nVCLRLut[ nR ] + nVCLGLut[ nG ] + nVCLBLut[ nB ] ) ); in ImplDitherMatrix()
2601 aIndex.SetIndex( (sal_uInt8) ( nVCLRLut[ nR ] + nVCLGLut[ nG ] + nVCLBLut[ nB ] ) ); in ImplDitherMatrix()
2723 …pWriteAcc->SetPixelIndex( nYAcc, 0, static_cast<sal_uInt8>(nVCLBLut[ nBC ] + nVCLGLut[nGC ] + nVCL… in ImplDitherFloyd()
2734 …pWriteAcc->SetPixelIndex( nYAcc, nXAcc, static_cast<sal_uInt8>(nVCLBLut[ nBC ] + nVCLGLut[nGC ] + … in ImplDitherFloyd()
2742 …pWriteAcc->SetPixelIndex( nYAcc, nWidth1, static_cast<sal_uInt8>(nVCLBLut[ nBC ] + nVCLGLut[nGC ] … in ImplDitherFloyd()
2917 …pWAcc->SetPixelIndex( nY, nX, static_cast<sal_uInt8>(aOct.GetBestPaletteIndex( pRAcc->GetPaletteCo… in ImplReduceSimple()
2923 …pWAcc->SetPixelIndex( nY, nX, static_cast<sal_uInt8>(aOct.GetBestPaletteIndex( pRAcc->GetPixel( nY… in ImplReduceSimple()
3048 …aNewPal[ n ] = BitmapColor( (sal_uInt8) ( ( rPop.mnIndex >> nLeftShiftBits2 ) << nRightShiftBits ), in ImplReducePopular()
3049 …(sal_uInt8) ( ( ( rPop.mnIndex >> nLeftShiftBits1 ) & ( nColorsPerComponent - 1 ) ) << nRightShift… in ImplReducePopular()
3050 (sal_uInt8) ( ( rPop.mnIndex & ( nColorsPerComponent - 1 ) ) << nRightShiftBits ) ); in ImplReducePopular()
3058 BitmapColor aDstCol( (sal_uInt8) 0 ); in ImplReducePopular()
3059 sal_uInt8* pIndexMap = new sal_uInt8[ nTotalColors ]; in ImplReducePopular()
3064 …pIndexMap[ nIndex++ ] = (sal_uInt8) aNewPal.GetBestIndex( BitmapColor( (sal_uInt8) nR, (sal_uInt8)… in ImplReducePopular()
3185 …pWAcc->SetPixelIndex( nY, nX, static_cast<sal_uInt8>( aMap.GetBestPaletteIndex( pRAcc->GetColor( n… in ImplReduceMedian()
3228 aCol.SetRed( (sal_uInt8) ( nR1 << 3 ) ); in ImplMedianCut()
3229 aCol.SetGreen( (sal_uInt8) ( nG1 << 3 ) ); in ImplMedianCut()
3230 aCol.SetBlue( (sal_uInt8) ( nB1 << 3 ) ); in ImplMedianCut()
3258 aCol.SetRed( (sal_uInt8) ( ( nRSum / nPixels ) << 3 ) ); in ImplMedianCut()
3259 aCol.SetGreen( (sal_uInt8) ( ( nGSum / nPixels ) << 3 ) ); in ImplMedianCut()
3260 aCol.SetBlue( (sal_uInt8) ( ( nBSum / nPixels ) << 3 ) ); in ImplMedianCut()
3351 sal_Bool Bitmap::Vectorize( GDIMetaFile& rMtf, sal_uInt8 cReduce, sal_uLong nFlags, const Link* pPr… in Vectorize()
3380 sal_uInt8* cMapR = new sal_uInt8[ 256 ]; in Adjust()
3381 sal_uInt8* cMapG = new sal_uInt8[ 256 ]; in Adjust()
3382 sal_uInt8* cMapB = new sal_uInt8[ 256 ]; in Adjust()
3407 cMapR[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fROff ), 0L, 255L ); in Adjust()
3408 cMapG[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fGOff ), 0L, 255L ); in Adjust()
3409 cMapB[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fBOff ), 0L, 255L ); in Adjust()