|
Boost : |
Subject: Re: [boost] [gil io_new review] Reading images from in-memory sources
From: Christian Henning (chhenning_at_[hidden])
Date: 2010-12-06 10:10:28
Hi Kenny,
>
> I accomplish this using Boost.IOStreams...something like this works for me:
>
> using namespace boost::iostreams;
> stream< array_source > bufferStream( buffer, size );
> read_image( bufferStream, dest, jpeg_tag() );
Cool this is what I was looking for. No extra copying involved?
Thanks,
Christian
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk