]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libcupsfilters: Let raster driver functions use log function
authorTill Kamppeter <till.kamppeter@gmail.com>
Tue, 22 Mar 2022 12:59:34 +0000 (13:59 +0100)
committerTill Kamppeter <till.kamppeter@gmail.com>
Tue, 22 Mar 2022 12:59:34 +0000 (13:59 +0100)
commit530783e20ad89887610e759c61a62d49e683ee01
tree04a02eb66b013f85561f49be54b1836dde445a1f
parent3b80c89c7e72401bcf0d1bc64ada1322e9ed6bad
libcupsfilters: Let raster driver functions use log function

libcupsfilters contains a lot of functions for raster drivers, to
convert raster formats, handle colors with lookup tables (LUTs),
... See cupsfilters/driver.h for the API. These functions, originally
designed for the use in CUPS filters, had logged directly to
stderr. Now to allow easy use of them in filter functions we have
changed all logging to go into a provided filter function and
appropriately added parameters to the call schemes of the functions
which need it to supply the log function.

Also updated the printer drivers rastertopclx and rastertoescpx and
also the test programs testcmyk and testdither to use the changed API.
cupsfilters/attr.c
cupsfilters/cmyk.c
cupsfilters/driver.h
cupsfilters/lut.c
cupsfilters/rgb.c
cupsfilters/testcmyk.c
cupsfilters/testdither.c
filter/rastertoescpx.c
filter/rastertopclx.c