Hello,
I try to display a test picture on my TFT but have some wrong colors.
I generated a raw picture, based on a PNG file (with alpha channel) using ffmpeg.
ffmpeg -i testpattern.png -vf scale=1280:480 -s "1280x480" -vcodec rawvideo -f rawvideo -pix_fmt brga testpattern.raw
Then, on the imx terminal, I do:
cat testpattern.raw > /dev/fb0
Basic colors area are ok ( full red, blue, green, yellow, turquoise, pink, black and white are ok = all area with color made of 0 or FF in RGB fields)
All shade area or photo have wrong colors: example: a large red to black share because 4 little red to black share.
fbset give this:
mode "1280x480-59"
geometry 1280 480 1280 960 32
timings 23381 16 54 8 40 8 4
accel false
rgba 8/16,8/8,8/0,8/24
endmode
My concern is that maybe the 32bpp of the file cannot be sent on the LVDS (24bit single channel). can it be that?
I tried
fbset -rgba 8/16,8/8,8/0,0/0
I have a kind of quick blink on the display but no effect. Also fbset keeps giving same as before (no modification).
If not, other ideas ?
Best regards,
(I'm new here, I hope I'm clear enough).