riuson / lcd-image-converter

Tool to create bitmaps and fonts for embedded applications, v.2
https://lcd-image-converter.riuson.com/
GNU General Public License v3.0
337 stars 80 forks source link

Littel-Endian / Big Endian setting has no effect #9

Closed riuson closed 10 years ago

riuson commented 10 years ago

From joern.ma...@gmail.com on January 03, 2013 05:01:56

What steps will reproduce the problem? 1. Executing a monochrome conversation with 8x8 pixel. The first pixel is black.

  1. No RLE
  2. choosing little Ending What is the expected output? What do you see instead? I would expect 0x01 in the first output line. I get 0x80. Means I always get a Big ending output. It seems the Endian setting has no effect to the output. As well on other conversation settings (grayscale, color) the output is always What version of the product are you using? On what operating system? Revision b4efed4 from 2012-12-23 13:02:18 +0600

Original issue: http://code.google.com/p/lcd-image-converter/issues/detail?id=9

riuson commented 10 years ago

From riu...@gmail.com on January 02, 2013 23:26:30

Parameter little-endian/big-endian affects on byte order, not bits. To change the order of bits in a monochrome image, set the right direction of scan pixels.

Owner: riu...@gmail.com

riuson commented 10 years ago

From joern.ma...@gmail.com on January 03, 2013 04:56:44

OK than I have misunderstood the endian parameter. I have to ask differently. The byte order is ok (scan direction from top to bottom and forward) . What I need is each byte to me mirrored. As example on a 16x16 BW matrix with the first pixel set. I would like to have following output 0x01 0x00 for the first line. now I get 0x80 0x00. I looked at older versions, there was an option to mirror a byte. Thank you for you help

riuson commented 10 years ago

From riu...@gmail.com on January 03, 2013 06:10:06

Yes, this option was in older versions. It was later removed due to the ease of implementation mirroring in the firmware, as well as its ambiguity:

In general, I need to think about a more universal method of placing bits. In your particular case, you can implement mirroring in converterhelper.cpp, between lines 153 and 154. https://code.google.com/p/lcd-image-converter/source/browse/classes/convert/converterhelper.cpp?r=b4efed4af0b9

Status: Accepted

riuson commented 10 years ago

From riu...@gmail.com on January 04, 2013 08:18:19

Status: Started
Labels: -Type-Defect Type-Enhancement

riuson commented 10 years ago

From riu...@gmail.com on January 04, 2013 09:52:50

Try this demo version: https://code.google.com/p/lcd-image-converter/downloads/detail?name=lcd-image-converter-20130104-e112b199efed-beta.zip New page 'Reordering' contains settings for reordering bits. Adding a shift operation is the same as setting the page 'Matrix'.

Attachment: reordering.png

riuson commented 10 years ago

From joern.ma...@gmail.com on January 06, 2013 01:00:33

Works perfect! Exactly what I missed. Thanks

riuson commented 10 years ago

From riu...@gmail.com on January 10, 2013 06:10:32

Released in r4e8c626a9ac0

Status: Fixed