Re: File plugin with c++
- From: "Dominic Lachowicz" <domlachowicz gmail com>
- To: Gonsolo <gonsolo gmail com>
- Cc: gtk-devel-list gnome org
- Subject: Re: File plugin with c++
- Date: Thu, 6 Dec 2007 11:48:12 -0500
Hi,
> Is it possible to write a file plugin like
> gdk-pixbuf/io-jpeg.c in c++?
Yes.
> The problem is openexr expects a char* for
> it's constructor and gdk works with FILE.
That doesn't have anything to do with C++ AFAICT.
The GdkPixbufLoader also has a "push" API, where a stream of bytes is
sent to the loader. The SVG loader uses this API instead of the
file-based one. Eg.
http://svn.gnome.org/viewvc/librsvg/trunk/gdk-pixbuf-loader/io-svg.c?revision=1136&view=markup
If openexr doesn't have a way to load an image from a stream of bytes,
you could always serialize the bytes to a temporary file and then load
that.
Dom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]