Page 3 of 6

Re: Raspberry Pi - A commercial use?

Posted: Wed May 10, 2017 7:51 pm
by RWAP
Ah - thanks - that might explain why the one user gets a green background to the converted images (although I don't). It might be the different versions of gcc.

As an aside - what is the difference?

Re: Raspberry Pi - A commercial use?

Posted: Wed May 10, 2017 8:19 pm
by XorA
RWAP wrote:Ah - thanks - that might explain why the one user gets a green background to the converted images (although I don't). It might be the different versions of gcc.

As an aside - what is the difference?
The first return true when any bits left of the checked bit is set. (1100 >> 1) = 110 which is still true.

The second masks out all bits to the left of checked bit. (1100 >> 1) & 1 = 0 which is false.

Re: Raspberry Pi - A commercial use?

Posted: Wed May 10, 2017 9:16 pm
by RWAP
One of the main sticking points is the time taken to generate the final files... In particular, the PNG generation takes a while, and using ImageMagick to convert the PNG to PDF is quite slow.

I have just come across libharu which seems to include an example routine to convert PNG to PDF. Does anyone have any experience of this sort of thing?

http://libharu.org/demo/png_demo.c

Re: Raspberry Pi - A commercial use?

Posted: Wed May 10, 2017 9:17 pm
by RWAP
XorA wrote: The first return true when any bits left of the checked bit is set. (1100 >> 1) = 110 which is still true.

The second masks out all bits to the left of checked bit. (1100 >> 1) & 1 = 0 which is false.
Ah yes I see now :)

Re: Raspberry Pi - A commercial use?

Posted: Thu May 11, 2017 2:26 pm
by Peter
RWAP wrote:One of the main sticking points is the time taken to generate the final files... In particular, the PNG generation takes a while, and using ImageMagick to convert the PNG to PDF is quite slow.
Thanks for this info. WIll save me the time to complete a QDOS port, which would then be way too slow.

Why are we discussing Raspberry PI software in the QL hardware section? :?

Re: Raspberry Pi - A commercial use?

Posted: Mon May 15, 2017 3:33 pm
by RWAP
Peter wrote: Why are we discussing Raspberry PI software in the QL hardware section? :?
Is there a general hardware section then? Remember this is linked to the development of the Retro-Printer - a module which will allow the QL to print to modern USB and network GUI printers :)

I have at least now successfully got the 720dpi ESC.3 mode (Delta Row compression) which is what I use for printing in 720dpi from the ProWeSs colour drivers. I always wanted to implement 1440dpi (and even 2880dpi), but there are no details on the web anywhere...

By the way - I had a real issue with a simple division routine in C and am at a loss as to why it didn't work.

I expected:

Code: Select all

        bytePointer = seedrowStart + (xpos / 8);
        bitOffset = 7 - (xpos & 8)
to give me the pointer to a byte plus the bit offset (remainder), but the bitOffset for some reason came out as either 0 or 8 !!

I had to replace this with:

Code: Select all

        bytePointer = seedrowStart + (xpos / 8);
        bitOffset = 7 - (xpos - (8 * (xpos /8)));
Any suggestions as to why the first case did not work?

SuperBASIC is so much easier to develop in than C !

Re: Raspberry Pi - A commercial use?

Posted: Mon May 15, 2017 3:56 pm
by Peter
RWAP wrote:
Peter wrote:Why are we discussing Raspberry PI software in the QL hardware section? :?
Is there a general hardware section then? Remember this is linked to the development of the Retro-Printer - a module which will allow the QL to print to modern USB and network GUI printers :)
Hardware? This is a pure software discussion lately.

Re: Raspberry Pi - A commercial use?

Posted: Mon May 15, 2017 4:02 pm
by Peter
& is the bitwise AND operation. Remainder is %.

Re: Raspberry Pi - A commercial use?

Posted: Mon May 15, 2017 4:20 pm
by Ralf R.
RWAP wrote:I have at least now successfully got the 720dpi ESC.3 mode (Delta Row compression) which is what I use for printing in 720dpi from the ProWeSs colour drivers. I always wanted to implement 1440dpi (and even 2880dpi), but there are no details on the web anywhere...
Ain't there any books from Epson? When I bought my Epson EPL 5200 Laser, I also ordered the GQ Language Book from them for PROGS (but they did not succeed).

Or try to ask Jochen, he was very clever in using the GQ language (even from SuperBASIC), so maybe he was lucky in using the DPI modes you need.

Re: Raspberry Pi - A commercial use?

Posted: Mon May 15, 2017 4:35 pm
by RWAP
Peter wrote:& is the bitwise AND operation. Remainder is %.
:oops: Of course - you would not believe how many times I looked at that and didn't spot it was the wrong character!!