
6 Dec
2010
6 Dec
'10
4:21 p.m.
On 12/6/2010 10:10 AM, Christian Henning wrote:
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 _______________________________________________ Unsubscribe& other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
From the IOStreams documentation on array_source: "Model of Source providing read-only access to a sequence of characters in memory." doesn't sound like any copying to me :)