Lines Matching refs:g
177 inline int ColorDiff( int r, int g, int b ) in ColorDiff() argument
178 { return (r*r)+(g*g)+(b*b); } in ColorDiff()
180 inline int ColorDiff( SalColor c1, int r, int g, int b ) in ColorDiff() argument
182 (int)SALCOLOR_GREEN(c1)-g, in ColorDiff()
2935 Pixel g = nPixel & green_mask; in GetTCColor() local
2940 g >> nGreenShift_, in GetTCColor()
2944 if( nGreenShift_ > 0 ) g >>= nGreenShift_; else g <<= -nGreenShift_; in GetTCColor()
2950 g |= (g & 0xff) >> (8-nGreenBits_); in GetTCColor()
2954 return MAKE_SALCOLOR( r, g, b ); in GetTCColor()
2963 Pixel g = (Pixel)SALCOLOR_GREEN( nSalColor ); in GetTCPixel() local
2967 return (b << 16) | (g << 8) | (r); in GetTCPixel()
2970 return (r << nRedShift_) | (g << nGreenShift_) | (b << nBlueShift_); in GetTCPixel()
2973 if( nGreenShift_ > 0 ) g <<= nGreenShift_; else g >>= -nGreenShift_; in GetTCPixel()
2976 return (r&red_mask) | (g&green_mask) | (b&blue_mask); in GetTCPixel()
3000 int r, g, b; in SalColormap() local
3028 for( g = 0; g < 0x100; g += 0x33 ) in SalColormap()
3030 GetXPixels( aColor, r, g, b ); in SalColormap()
3033 for( g = 0x11; g < 0xFF; g += 0x11 ) in SalColormap()
3034 GetXPixels( aColor, g, g, g ); in SalColormap()
3037 for( g = 0x11; g < 0xFF; g += 0x11 ) in SalColormap()
3038 GetXPixels( aColor, 0, g, 0 ); in SalColormap()
3243 int r, int g, int b, in sal_Lookup() argument
3247 int nBest = ColorDiff( rPalette[0], r, g, b ); in sal_Lookup()
3251 int n = ColorDiff( rPalette[i], r, g, b ); in sal_Lookup()
3271 for( int g = 0; g < 256; g += 17 ) in GetLookupTable() local
3273 m_aLookupTable[i++] = sal_Lookup( m_aPalette, r, g, b, m_nUsed ); in GetLookupTable()
3319 int g, in GetXPixel() argument
3323 rColor.green = g * 257; in GetXPixel()
3330 int g, in GetXPixels() argument
3333 if( !GetXPixel( rColor, r, g, b ) ) in GetXPixels()
3337 return GetXPixel( rColor, r^0xFF, g^0xFF, b^0xFF ); in GetXPixels()
3425 sal_uInt16 g = SALCOLOR_GREEN( nSalColor ); in GetPixel() local
3428 + (((g+8)/17) << 4) in GetPixel()