Boost logo

Boost :

Subject: Re: [boost] [gil::io] Feedback for scanline_read_iterator
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-02-18 12:16:32


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk