Lines Matching refs:sal_uInt8

41 typedef sal_uInt8*		HPBYTE;
43 typedef const sal_uInt8* ConstHPBYTE;
83 sal_uLong _def_cR = (sal_uInt8) ( d_RS < 0L ? ( (d_nVal) & d_RM ) << -d_RS : ( (d_nVal) & d_RM ) >>…
84 sal_uLong _def_cG = (sal_uInt8) ( d_GS < 0L ? ( (d_nVal) & d_GM ) << -d_GS : ( (d_nVal) & d_GM ) >>…
85 sal_uLong _def_cB = (sal_uInt8) ( d_BS < 0L ? ( (d_nVal) & d_BM ) << -d_BS : ( (d_nVal) & d_BM ) >>…
86 d_Col = BitmapColor( (sal_uInt8) ( _def_cR | ( ( _def_cR & mnROr ) >> mnROrShift ) ), \
87 (sal_uInt8) ( _def_cG | ( ( _def_cG & mnGOr ) >> mnGOrShift ) ), \
88 (sal_uInt8) ( _def_cB | ( ( _def_cB & mnBOr ) >> mnBOrShift ) ) );
115 sal_uInt8 mcBlueOrIndex;
116 sal_uInt8 mcGreen;
117 sal_uInt8 mcRed;
118 sal_uInt8 mbIndex;
124 inline BitmapColor( sal_uInt8 cRed, sal_uInt8 cGreen, sal_uInt8 cBlue );
127 inline BitmapColor( sal_uInt8 cIndex );
137 inline sal_uInt8 GetRed() const;
138 inline void SetRed( sal_uInt8 cRed );
140 inline sal_uInt8 GetGreen() const;
141 inline void SetGreen( sal_uInt8 cGreen );
143 inline sal_uInt8 GetBlue() const;
144 inline void SetBlue( sal_uInt8 cBlue );
146 inline sal_uInt8 GetIndex() const;
147 inline void SetIndex( sal_uInt8 cIndex );
150 operator sal_uInt8() const { return mcBlueOrIndex; } in operator sal_uInt8()
154 inline sal_uInt8 GetBlueOrIndex() const;
158 inline sal_uInt8 GetLuminance() const;
159 inline BitmapColor& IncreaseLuminance( sal_uInt8 cGreyInc );
160 inline BitmapColor& DecreaseLuminance( sal_uInt8 cGreyDec );
162 inline BitmapColor& Merge( const BitmapColor& rColor, sal_uInt8 cTransparency );
163 inline BitmapColor& Merge( sal_uInt8 cR, sal_uInt8 cG, sal_uInt8 cB, sal_uInt8 cTransparency );
256 …inline void GetColorAndAlphaFor32Bit( BitmapColor& rColor, sal_uInt8& rAlpha, ConstHPBYTE pPixel…
273 sal_uInt8* mpBits;
299 inline BitmapColor::BitmapColor( sal_uInt8 cRed, sal_uInt8 cGreen, sal_uInt8 cBlue ) : in BitmapColor()
329 inline BitmapColor::BitmapColor( sal_uInt8 cIndex ) : in BitmapColor()
374 inline sal_uInt8 BitmapColor::GetRed() const in GetRed()
382 inline void BitmapColor::SetRed( sal_uInt8 cRed ) in SetRed()
390 inline sal_uInt8 BitmapColor::GetGreen() const in GetGreen()
398 inline void BitmapColor::SetGreen( sal_uInt8 cGreen ) in SetGreen()
406 inline sal_uInt8 BitmapColor::GetBlue() const in GetBlue()
414 inline void BitmapColor::SetBlue( sal_uInt8 cBlue ) in SetBlue()
422 inline sal_uInt8 BitmapColor::GetIndex() const in GetIndex()
430 inline void BitmapColor::SetIndex( sal_uInt8 cIndex ) in SetIndex()
446 inline sal_uInt8 BitmapColor::GetBlueOrIndex() const in GetBlueOrIndex()
464 inline sal_uInt8 BitmapColor::GetLuminance() const in GetLuminance()
467 return( (sal_uInt8) ( ( mcBlueOrIndex * 28UL + mcGreen * 151UL + mcRed * 77UL ) >> 8UL ) ); in GetLuminance()
472 inline BitmapColor& BitmapColor::IncreaseLuminance( sal_uInt8 cGreyInc ) in IncreaseLuminance()
475 mcBlueOrIndex = (sal_uInt8) MinMax( (long) mcBlueOrIndex + cGreyInc, 0L, 255L ); in IncreaseLuminance()
476 mcGreen = (sal_uInt8) MinMax( (long) mcGreen + cGreyInc, 0L, 255L ); in IncreaseLuminance()
477 mcRed = (sal_uInt8) MinMax( (long) mcRed + cGreyInc, 0L, 255L ); in IncreaseLuminance()
484 inline BitmapColor& BitmapColor::DecreaseLuminance( sal_uInt8 cGreyDec ) in DecreaseLuminance()
487 mcBlueOrIndex = (sal_uInt8) MinMax( (long) mcBlueOrIndex - cGreyDec, 0L, 255L ); in DecreaseLuminance()
488 mcGreen = (sal_uInt8) MinMax( (long) mcGreen - cGreyDec, 0L, 255L ); in DecreaseLuminance()
489 mcRed = (sal_uInt8) MinMax( (long) mcRed - cGreyDec, 0L, 255L ); in DecreaseLuminance()
496 inline BitmapColor& BitmapColor::Merge( const BitmapColor& rBitmapColor, sal_uInt8 cTransparency ) in Merge()
509 inline BitmapColor& BitmapColor::Merge( sal_uInt8 cR, sal_uInt8 cG, sal_uInt8 cB, sal_uInt8 cTransp… in Merge()
546 mpBitmapColor = (BitmapColor*) new sal_uInt8[ nSize ]; in BitmapPalette()
561 mpBitmapColor = (BitmapColor*) new sal_uInt8[ nSize ]; in BitmapPalette()
572 delete[] (sal_uInt8*) mpBitmapColor; in ~BitmapPalette()
579 delete[] (sal_uInt8*) mpBitmapColor; in operator =()
585 mpBitmapColor = (BitmapColor*) new sal_uInt8[ nSize ]; in operator =()
644 delete[] (sal_uInt8*) mpBitmapColor; in SetEntryCount()
652 sal_uInt8* pNewColor = new sal_uInt8[ nNewSize ]; in SetEntryCount()
656 delete[] (sal_uInt8*) mpBitmapColor; in SetEntryCount()
755 rOr = (sal_uInt8) ( ( 0xffUL >> nLen ) << rOrShift ); in ImplCalcMaskShift()
793 …*pPixel = (sal_uInt8) COLOR_TO_MASK( rColor, mnRMask, mnGMask, mnBMask, mnRShift, mnGShift, mnBShi… in SetColorFor8Bit()
818 pPixel[ 0 ] = (sal_uInt8)(nVal >> 8U); in SetColorFor16BitMSB()
819 pPixel[ 1 ] = (sal_uInt8) nVal; in SetColorFor16BitMSB()
843 pPixel[ 0 ] = (sal_uInt8) nVal; in SetColorFor16BitLSB()
844 pPixel[ 1 ] = (sal_uInt8)(nVal >> 8U); in SetColorFor16BitLSB()
864 …pPixel[ 0 ] = (sal_uInt8) nVal; pPixel[ 1 ] = (sal_uInt8) ( nVal >> 8UL ); pPixel[ 2 ] = (sal_uInt… in SetColorFor24Bit()
883 inline void ColorMask::GetColorAndAlphaFor32Bit( BitmapColor& rColor, sal_uInt8& rAlpha, ConstHPBYT… in GetColorAndAlphaFor32Bit()
891 rAlpha = (sal_uInt8)(nVal >> 24); in GetColorAndAlphaFor32Bit()
902 pPixel[ 0 ] = (sal_uInt8) nVal; pPixel[ 1 ] = (sal_uInt8) ( nVal >> 8UL ); in SetColorFor32Bit()
903 pPixel[ 2 ] = (sal_uInt8) ( nVal >> 16UL ); pPixel[ 3 ] = (sal_uInt8) ( nVal >> 24UL ); in SetColorFor32Bit()