|
Boost : |
Subject: Re: [boost] GIL io_new review
From: Christian Henning (chhenning_at_[hidden])
Date: 2010-12-09 15:59:27
Hi Phil, only one comment.
On Thu, Dec 9, 2010 at 3:03 PM, Phil Endecott
<spam_from_boost_dev_at_[hidden]> wrote:
> Mateusz, I'm going to snip most of your message to focus on the important
> stuff. I don't have time to answer everything in detail and somehow my
> central point doesn't seem to have been understood yet.
>
>> Anyways, my understanding is that Boost.GIL IO takes all the access
>> options provided by format libraries as they are specified and either
>> allows to utilise some or all of them.
>
> No, that's precisely what it doesn't do. It supports exactly one access
> method, which is to read or write a complete file in one go, and nothing
> else.
>
> No doubt reading or writing a complete file in one go will be the most
> common operation, but it is not the only one, and it's not the one that I
> need for any of my current applications including the example that I've
> posted. I think that it's unfortunate that Christian's extension has not
> tried to support at least sequential row-by-row access to images.
You can read row-by-row, pixel-by-pixel, tile-by-tile. It can be done
in any rectangular shape. Now, is it done most efficiently? No. Can it
be done better? Yes. But the interface allows for it. That's my point.
Here one example:
rgb8_image_t img;
image_read_settings< jpeg_tag > settings( point_t( 0, 0 )
, point_t( 10, 10 )
, jpeg_dct_method::slow
);
read_image( jpeg_filename, img, settings );
Regards,
Christian
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk