Hi @all,
I need to convert a RGB-image to a jpeg-image.
I tried the libjpeg but without writing an own destination manager it is
only possible to write the jpeg to a file. I need to write the jpeg
to buffer such as "unsigned char *buffer".
I also tried gdk_imlib but I have the same problem,
any ideas?
or does anybody have a destionation manager for libjpeg that allows to
write to a buffer?
any help is appreciated!
Andi
|
|
0
|
|
|
|
Reply
|
Andreas
|
3/6/2006 3:16:05 PM |
|
Andreas Mueller wrote:
> Hi @all,
>
> I need to convert a RGB-image to a jpeg-image.
> I tried the libjpeg but without writing an own destination manager it is
> only possible to write the jpeg to a file. I need to write the jpeg
> to buffer such as "unsigned char *buffer".
> I also tried gdk_imlib but I have the same problem,
> any ideas?
> or does anybody have a destionation manager for libjpeg that allows to
> write to a buffer?
>
> any help is appreciated!
> Andi
Just googling for "libjpeg destination manager memory buffer" gave me
tons of code snippets. Have you at least tried? I can assure you what
you're looking for *can* be done, and is highly likely to be there.
--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux@mediaxim.be
Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
|
|
0
|
|
|
|
Reply
|
Michel
|
3/6/2006 4:16:23 PM
|
|