Giter Club home page Giter Club logo

Comments (7)

sorphin avatar sorphin commented on June 29, 2024

Nothing?

from rpi-rgb-led-matrix.

hzeller avatar hzeller commented on June 29, 2024

What is exactly the problem, can you elaborate ?
Do you have some code-examples that you tried but failed to work ?

from rpi-rgb-led-matrix.

sorphin avatar sorphin commented on June 29, 2024

Your image Demo program in the library. led-image-viewer.cc it cannot handle 6 matrices in a 96x64 formation (Whether Z or C wiring).. That code uses the "Frame Canvas" from the library, so the same changes made to LargeSquare64x64Canvas won't work. I tweaked LargeSquare64x64Canvas to LargeSquare96x64Canvas and LargeSquare128x96Canvas and the programs that use those work, because they don't use the 'Frame Canvas" function. What I need to know is how to modify the Frame Canvas code to do the same so I can do large scale images like I can do large scale on the demo functions.

from rpi-rgb-led-matrix.

hzeller avatar hzeller commented on June 29, 2024

Ah. Just wrap a FrameCanvas with your implementation of a LargeScale canvas. The FrameCanvas just implements a Canvas in itself, and your LargeScale canvas that does the pixel-mapping can use that as a backend.
You can just allocate your LargeScale canvas on the stack in the PreprocessedFrame constructor while filling in the FrameCanvas (later on, only these already mapped and preprocessed frames are sent to the output, which means there is no overhead in the mapping). Of course, you need to make sure to not delete the delegatee canvas in the destructor otherwise bad things will happen :)

from rpi-rgb-led-matrix.

sorphin avatar sorphin commented on June 29, 2024

I have a feeling I'm gonna have a headache after this. ;-)

from rpi-rgb-led-matrix.

hzeller avatar hzeller commented on June 29, 2024

In the meantime, there is now the concept of a 'Canvas Transformer'
https://github.com/hzeller/rpi-rgb-led-matrix/blob/master/include/canvas.h#L51

An implementation can handle all the transformations needed for such pixel mapping. Then you can use this as a wrapper to manipulate other canvases. It is not perfect, but it simplifies the task.

For implementations, have a look at
https://github.com/hzeller/rpi-rgb-led-matrix/blob/master/lib/transformer.cc

from rpi-rgb-led-matrix.

hzeller avatar hzeller commented on June 29, 2024

(closing for now, not much activity here. Let me know if you need more)

from rpi-rgb-led-matrix.

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.