k210-sdk-stuff/rust/sdlcd
Wladimir J. van der Laan 4f2c51e00d rust: Unswizzle framebuffer for ST7789V display
By swapping the endian in RAMCTRL as well as in the SPI driver,
the frame format can be coerced into the "normal" order of pixels in
little endian, `0xBBBBAAAA` instead of `0xAAAABBBB`. This allows
seamless casting from an array of `u16`.

Accessing as 32-bit units might still be desirable for performance, but
it is a lesser worry now.

Note that a 32-bit alignment constraint still does hold for DMA.
2020-11-06 07:26:24 +00:00
..
src rust: Unswizzle framebuffer for ST7789V display 2020-11-06 07:26:24 +00:00
.gitignore rust: Add sdlcd example 2019-08-11 18:16:53 +00:00
Cargo.toml rust: Fixes for newer dependencies 2020-06-02 21:07:54 +00:00
README.md rust: Clean up sdlcd, add ffmpeg commandline to README 2019-08-12 06:57:27 +00:00

sdlcd

This example streams raw data from the SD card to the LCD, frame by frame.

The following commands can be used to scale and transcode a video to 320x240xRGB565, and write it to a SD card:

ffmpeg -i input.mp4  -vf scale=320:240 -vcodec rawvideo -f rawvideo -pix_fmt rgb565le test.vid
dd if=test.vid of=/dev/mmcblk… bs=153600