1
0
mirror of https://github.com/pdewacht/brlaser synced 2025-07-27 11:09:47 +02:00
Commit Graph

28 Commits

Author SHA1 Message Date
9d7ddda838 Arrange blocks in bands of 128 lines
This is more similar to what the Brother driver does. This might
fix #52, #40, etc.
2020-04-20 21:58:11 +02:00
de0d48dfdb Be tolerant of zero-page jobs
https://github.com/OpenPrinting/cups-filters/issues/117
2020-04-18 10:58:27 +02:00
172c3bf87b Don't compress across bands (#39)
This essentially re-introduces 7ed0d6f, but with a simpler
implementation. Some printers needed it after all.
2019-09-10 23:13:15 +02:00
779f71e80f Reduce max block size to 64 lines (#40)
This fixes HL-1210W, maybe other HL printers as well?
2019-03-25 20:57:51 +01:00
7b4bf383bd O_BINARY
Because it seems people still use OS/2
2019-03-25 20:46:20 +01:00
4414717ed4 Avoid overlong encodings, improve compression ratio 2018-07-03 22:42:22 +02:00
41c56264a8 Revert "Do not use delta-encoding across block boundaries"
This reverts commit 7ed0d6f2e8.

This was intended as a possible fix for problems with the HL-L2300D
(#4), but it didn't help. And it worsens compression.
2018-07-03 22:37:35 +02:00
7ed0d6f2e8 Do not use delta-encoding across block boundaries
Possible a fix for issue #4

Also: in block.h, rename line_bytes_ to block_size_
2018-04-11 22:45:08 +02:00
3008302bb5 Add OpenBSD pledge 2018-01-27 00:18:19 +01:00
39ed3c5708 Cleanups 2018-01-27 00:18:19 +01:00
4209526ef0 setlocale shouldn't be needed 2018-01-27 00:18:19 +01:00
8007996fe7 Fix ppdc warning 2018-01-27 00:18:19 +01:00
f1e0b2df54 Reduce log level of cupsRasterOpen failure
If cupsRasterOpen fails, the most likely cause is that some earlier
filter didn't produce any output. If we output an error-level message
in this situation, we'll likely displace some earlier, more useful
message by the other filter.
2017-11-02 00:06:58 +01:00
718053fa36 Add package name to all log messages 2017-10-30 20:07:27 +01:00
931c677443 Get rid of iconv()
PJL has a job name field. I don't think this is used for anything, but
just in case I want to put something human-readable there. But it's
also probably a good idea to keep this pure ASCII text.

Previously I used iconv() to convert the CUPS job name to ASCII. But:
- on FreeBSD, an explicit "-liconv" seems to be necessary (#10),
- there's an autoconf macro to deal with this, but it's tangled up
  with gettext and it seems like a hassle,
- the //TRANSLIT//IGNORE feature I used seems to be a GNU extension
  and probably won't work on other systems anyway.

So instead, let's just concatenate some job information together,
dropping any non-ASCII component. That's probably good enough.
2017-10-23 22:09:29 +02:00
69cc0bfcc7 Merge remote-tracking branch 'xc-racer99/master' 2017-10-14 21:40:58 +02:00
7e59e6147e Add duplex code for DCP-7065DN
The official Brother driver treats Tumble and NoTumble differently, adding &l2S and &l1S respectively to the header.

Unfortunately, for me this resulted in missing lines in NoTumble.  By treating everything as Tumble and simply sending data rotated 180 for Tumble we get a good quality printout.
2017-05-01 12:26:22 -07:00
5c5118edc1 Move num_copies to only the header
It's not needed to be at the beginning of every page and messes up duplex printing if it is
2017-05-01 12:26:17 -07:00
93138fec87 Add missing #include <string> 2016-04-25 15:02:37 +02:00
569e3f7766 Reject unexpected raster formats 2015-01-31 23:16:35 +01:00
1474716b27 Misc cleanups, mostly in the test code 2015-01-31 23:13:48 +01:00
19edb1767b Kill a harmless dead store
Just because clang's scan-build complained about it.
2014-07-07 13:03:57 +02:00
bb1ba17b4f Split out block.h 2014-02-04 21:50:11 +01:00
66ea095ede Changes to support GCC 4.6
GCC 4.6 is the oldest release that can compile this code without significant
changes.
2014-01-26 15:07:53 +01:00
d2c108d303 brdecode: don't assume a fixed page size 2013-12-30 23:03:59 +01:00
fc3680070b Fix a clang warning 2013-12-27 23:44:58 +01:00
edc122f2c6 brdecode, a tool to decompress print files 2013-12-27 23:44:20 +01:00
b7af16450c brlaser version 1 2013-12-27 16:58:00 +01:00