FACT++  1.0
void MGImage::DrawColImg16 ( unsigned short *  d,
char *  s1,
char *  s2,
char *  e 
)
private

Definition at line 162 of file MGImage.cc.

Referenced by DrawColImg().

163 {
164  // d=destination, s1=source1, s2=source2, e=end
165  // d: rrrrrggg gggbbbbb
166  // s2: 00rrggbb
167  //
168  while (s1<e)
169  {
170  if (*s2)
171  {
172  // 00000011 00001100 00110000
173  //*d++ = (*s2&0x3) | (*s2&0xb)<<3 | (*s2&0x30)<<7;
174  *d++ = (*s2&0x3)<<3 | (*s2&0xb)<<6 | (*s2&0x30)<<10;
175  }
176  else
177  {
178  // 11111100 11111000 11111100
179  *d++ = (*s1&0xfc) | (*s1&0xf8)<<5 | (*s1&0xfc)<<11;
180  }
181  s1++;
182  s2++;
183  }
184 }

+ Here is the caller graph for this function: