Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4969

Graphics programming • Re: 7" Display 2 and rotating content using DRM

$
0
0
And it works. Very nice. One showstopper was to figure out why my initial code didn't work. Turns out the transpose seems to not like DRM_FORMAT_BGR888, framebuffers as target when transposing. The resulting transposed framebuffer is grayish with those typical diagonally garbled output you'd expect if a pitch isn't correct. Setting the target FB to DRM_FORMAT_ABGR8888 fixes it, but now requires my writeback-using JPEG encoder to handle ABGR in addition to BGR.
glitch-art.jpeg
The driver code suggests that all formats the writeback supports should work with transpose, so I'm not sure if I'm doing something stupid or if that's a limitation.

Statistics: Posted by dividuum — Thu Nov 28, 2024 12:43 pm



Viewing all articles
Browse latest Browse all 4969

Trending Articles