mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] libjpeg-turbo and libjpeg
@ 2018-02-13  9:23 Guillermo Rodriguez Garcia
  2018-02-13 15:37 ` Michael Olbrich
  0 siblings, 1 reply; 7+ messages in thread
From: Guillermo Rodriguez Garcia @ 2018-02-13  9:23 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1665 bytes --]

Hi all,

I need to use libjpeg-turbo for some apps that rely on specific
libjpeg-turbo extensions that are not available in the standard (IJG's)
libjpeg library. So I started to create a set of ptxdist rules for
libjpeg-turbo.

libjpeg-turbo is supposed to provide a drop-in replacement for the standard
IJG's libjpeg, and in fact many Linux distributions have already switched
to it. So most packages that currently depend on LIBJPEG should be able to
use libjpeg-turbo as well without any changes.

Example: gst-plugins-good1.in currently does the following:

select LIBJPEG if GST_PLUGINS_GOOD1_JPEG

However, gst-plugins-good1 should work just fine with libjpeg-turbo as
well. In fact the upstream gst-plugins already switched to libjpeg-turbo
some time ago (see the Cerbero scripts)

So, what is the recommended way to approach this in ptxdist? I can imagine
some options:

1. Provide a separate set of .in/.make files for libjpeg-turbo and a
separate LIBJPEG_TURBO package. So new packages that want to use
libjpeg-turbo would need to explicitly select LIBJPEG_TURBO (instead of
LIBJPEG). But this means that packages that currently use libjpeg would not
be able to benefit from the performance improvements in libjpeg-turbo. Also
I am not sure whether these two libraries (libjpeg and libjpeg-turbo) can
actually coexist in the same system.

2. Modify the LIBJPEG rules to provide an option to select between the
standard (IJG) libjpeg, or libjpeg-turbo. This would be similar to what is
done in alsa.in/alsa.make to select between the "full" and "light" versions
of the library.

3. Other?

Thank you,

Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

[-- Attachment #1.2: Type: text/html, Size: 2303 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-02-14 11:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13  9:23 [ptxdist] libjpeg-turbo and libjpeg Guillermo Rodriguez Garcia
2018-02-13 15:37 ` Michael Olbrich
2018-02-13 16:12   ` Guillermo Rodriguez Garcia
2018-02-14  7:49     ` Michael Olbrich
2018-02-14  9:22       ` Guillermo Rodriguez Garcia
2018-02-14  9:57         ` Guillermo Rodriguez Garcia
2018-02-14 11:44           ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox