8bit and 12bit support in one library?

240 views
Skip to first unread message

lukamac

unread,
Jun 5, 2020, 4:21:53 AM6/5/20
to libjpeg-turbo User Discussion/Support

Hi!
New user of the turbo-jpeg library here :)
Is it possible to have both 8bit and 12bit sample precision support coexisting together?
I kind of think it is not possible but wanted to check with some experts here.

Also, do you have some suggestions on how this could be achieved?

Thank you in advance, any help is appreciated!

DRC

unread,
Jun 5, 2020, 12:15:33 PM6/5/20
to libjpeg-t...@googlegroups.com
It would not be possible in one library, but as soon as I can dig out
from under a backlog of work created by the sudden uptick in demand for
VirtualGL and TurboVNC (open source remote desktop/telework solution for
Un*x 3D applications), one of the features on tap for libjpeg-turbo 2.1
is integrating 8-bit and 12-bit support into the same package.  This
will likely be done by providing two separate libraries with different
names-- libjpeg12 and libturbojpeg12, jpeglib12.h and turbojpeg12.h,
jpeg12*_() and tj12*(), etc.  Separate libraries would still be
required, but creating a completely independent namespace for 12-bit
would at least allow 8-bit and 12-bit support to be built into the same
application.

https://github.com/libjpeg-turbo/libjpeg-turbo/issues/199

Thanks to an OSS grant from Google, I have funding to complete that
feature.  I just need to find time to do it.

DRC
Reply all
Reply to author
Forward
0 new messages