39 template<
typename Converter>
40 void claw::graphic::pcx::reader::decompress
41 (
const header& h, std::istream& f,
const Converter& convert )
43 std::vector<color_plane_type> scanline
44 ( h.color_planes, color_plane_type(h.bytes_per_line) );
46 for (
unsigned int y=0; y!=m_image.
height(); ++y)
48 for (
unsigned int i=0; i!=h.color_planes; ++i)
49 decompress_line(f, scanline[i]);
51 convert( scanline, m_image, y );