Coder Social home page Coder Social logo

Comments (7)

riuson avatar riuson commented on June 30, 2024

From [email protected] 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: [email protected]

from lcd-image-converter.

riuson avatar riuson commented on June 30, 2024

From [email protected] 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

from lcd-image-converter.

riuson avatar riuson commented on June 30, 2024

From [email protected] 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:

  • Reflect the bits in each byte?
  • or Reflect the bits within the data block (8, 16, 24 or 32 bits)?
  • or Byte swap places?
  • or Reflect the bytes and swap places?

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

from lcd-image-converter.

riuson avatar riuson commented on June 30, 2024

From [email protected] on January 04, 2013 08:18:19

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

from lcd-image-converter.

riuson avatar riuson commented on June 30, 2024

From [email protected] 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

from lcd-image-converter.

riuson avatar riuson commented on June 30, 2024

From [email protected] on January 06, 2013 01:00:33

Works perfect! Exactly what I missed. Thanks

from lcd-image-converter.

riuson avatar riuson commented on June 30, 2024

From [email protected] on January 10, 2013 06:10:32

Released in r4e8c626a9ac0

Status: Fixed

from lcd-image-converter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.