Beiträge von dsk

    Not a typical ambilight - but theres a problem with a lamp I built to display web content using Hyperion.


    There's a web browser on the Pi that displays this simple media: http://itsd.sk/p5js.html


    So it should be displaying a black circle smoothly expanding and collapsing from the center with a white background.


    The media looks like it renders properly on the Pi in the screenshot (bigger image) and the Hyperion test 'dispmanx2png' output (smaller image) at the bottom of this post.


    But the LEDs look like they're zoomed in, as if the scaling/positioning/crop is bad, in the video of the lamp working:


    [MEDIA=googledrive]1O89pJ5sz8D2Wv4_LUrNbNih260qC4078[/MEDIA]


    Everything else seems to work except for the display mapping -


    hyperion.config.json: [MEDIA=pastebin]aGGX47Cx[/MEDIA]
    Arduino: [MEDIA=pastebin]gFYq4HJh[/MEDIA]
    Hyperion log: [MEDIA=pastebin]0fjR0N5v[/MEDIA]


    How might I be able to get the image from the Pi's display(browser) onto the LEDs while keeping the frame centred and uncropped?


    Any questions please ask :)


    EDIT: The problem was a typo of "minimum".... I'll share this project when done!




    Would overlap work for you ?


    Each leds screen co ordinated can be overlapped so an area on the screen will partially light multiple leds


    Yeah the Overlap feature seems to do spatial anti-aliasing! I think this is the function that does it:


    [INDENT]https://github.com/hyperion-pr…ion/ImageToLedsMap.h#L115
    [/INDENT]
    which returns the average color of a range of pixels.


    Video libraries like FFmpeg/libav/gstreamer implement more 'scaling algorithms' (e.g. link). But I think they would add a lot of computational expense, even if they use hardware acceleration, so they might not be much of an enhancement.

    Is there a feature for spatial anti-aliasing in Hyperion?


    It would improve small displays where the number of LEDs is much smaller than the video resolution.


    The 'Smoothing' feature in Hypercon seems to be temporal anti-aliasing:


    https://en.wikipedia.org/wiki/Temporal_anti-aliasing


    However I haven't seen spatial anti-aliasing in the Hyperion guide or project source.


    https://en.wikipedia.org/wiki/Spatial_anti-aliasing


    Sorry if this is the wrong forum section to ask!