tjInitDecompress / tjInitCompress

158 views
Skip to first unread message

folkert van heusden

unread,
Jul 25, 2020, 5:50:19 AM7/25/20
to libjpeg-turbo User Discussion/Support
Hi,

If I want to compress multiple images to jpeg, do I need to invoke tjInitCompress() for each jpeg I want to create? Or can I invoke tjInitCompress once and re-use it?

DRC

unread,
Jul 25, 2020, 9:47:53 AM7/25/20
to libjpeg-t...@googlegroups.com
You can reuse it.

On Jul 25, 2020, at 4:50 AM, folkert van heusden <fol...@vanheusden.com> wrote:


Hi,

If I want to compress multiple images to jpeg, do I need to invoke tjInitCompress() for each jpeg I want to create? Or can I invoke tjInitCompress once and re-use it?

--
You received this message because you are subscribed to the Google Groups "libjpeg-turbo User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libjpeg-turbo-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libjpeg-turbo-users/da5b7c66-780a-4619-beea-f89d7ca41cdco%40googlegroups.com.

folkert

unread,
Jul 25, 2020, 10:29:48 AM7/25/20
to libjpeg-t...@googlegroups.com
Thank you.

Probably one instance of a tjhandle per thread?

On Sat, Jul 25, 2020 at 08:47:50AM -0500, DRC wrote:
> You can reuse it.
>
> > On Jul 25, 2020, at 4:50 AM, folkert van heusden <fol...@vanheusden.com> wrote:
> >
> > ???
> > Hi,
> >
> > If I want to compress multiple images to jpeg, do I need to invoke tjInitCompress() for each jpeg I want to create? Or can I invoke tjInitCompress once and re-use it?
> > --
> > You received this message because you are subscribed to the Google Groups "libjpeg-turbo User Discussion/Support" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to libjpeg-turbo-u...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/libjpeg-turbo-users/da5b7c66-780a-4619-beea-f89d7ca41cdco%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "libjpeg-turbo User Discussion/Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to libjpeg-turbo-u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/libjpeg-turbo-users/EE453755-2293-41D4-8965-A8E8A64883E4%40virtualgl.org.


Folkert van Heusden

--
Ever wonder what is out there? Any alien races? Then please support
the seti@home project: setiathome.ssl.berkeley.edu
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

DRC

unread,
Jul 25, 2020, 11:01:45 AM7/25/20
to libjpeg-t...@googlegroups.com
Yes, a single TurboJPEG instance cannot be safely used by more than one thread.

> On Jul 25, 2020, at 9:29 AM, folkert <fol...@vanheusden.com> wrote:
>
> Thank you.
> To view this discussion on the web visit https://groups.google.com/d/msgid/libjpeg-turbo-users/20200725142945.GJ7612%40belle.intranet.vanheusden.com.

folkert

unread,
Jul 25, 2020, 11:03:13 AM7/25/20
to libjpeg-t...@googlegroups.com
Ok thanks!


On Sat, Jul 25, 2020 at 10:01:42AM -0500, DRC wrote:
> Yes, a single TurboJPEG instance cannot be safely used by more than one thread.
>
> > On Jul 25, 2020, at 9:29 AM, folkert <fol...@vanheusden.com> wrote:
> >
> > ???Thank you.
> To view this discussion on the web visit https://groups.google.com/d/msgid/libjpeg-turbo-users/B7E16178-822D-4C43-8396-225B0B031B32%40virtualgl.org.


Folkert van Heusden

--
To MultiTail einai ena polymorfiko ergaleio gia ta logfiles kai tin
eksodo twn entolwn. Prosferei: filtrarisma, xrwmatismo, sygxwneysi,
diaforetikes provoles. http://www.vanheusden.com/multitail/
Reply all
Reply to author
Forward
0 new messages