Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

int GBitmap::read_run ( const unsigned char *&  data  )  [inline, static]

Static function for parsing run data. This function returns one run length encoded at position data# and increments the pointer data# accordingly.

Definition at line 634 of file GBitmap.h.

Referenced by blit(), rle_get_bitmap(), rle_get_bits(), rle_get_rect(), and rle_get_runs().

{
  register int z=*data++;
  return (z>=RUNOVERFLOWVALUE)?
    ((z&~RUNOVERFLOWVALUE)<<8)|(*data++):z;
}


Generated by  Doxygen 1.6.0   Back to index