
18 Feb
2013
18 Feb
'13
5:16 p.m.
Hi Mateusz,
Could you give me some prototype code?
From top of my head, using reader template not necessarily exactly defined in GIL:
template<template Device, template Tag> struct scanline_reader { typedef typename scanline_reader<Device, Tag> reader_type:
// deduce accurate type of buffer from reader's Device scanline_read_iterator<reader_type> begin(const char* buffer) { return scanline_read_iterator<reader_type>(*this, buffer); } };
OK, I can see that would be a valid code addition.
My point is this: if examples in GIL use explicit type like rgb8_pixel_t*, then in consequence this knowledge is useless for users who work with different type of images.
Yes, that should be fixed. Christian