Not final, just for wider testing.
Might want to reconsider exactly where it plumbs in, but currently it is fairly unintrusive (a couple of ifdefs).
So far I've only found use of AV_PIX_FMT_BGR0 and AV_PIX_FMT_RGB565LE. Let me know if any other formats are used.
For those formats, we still call sws_scale, but it is implemented as memcpy so should be fairly efficient.
I've tested Mame2003, Atari 2600 (Stella), Game Boy (Gambatte), Sega Genesis (Genesis Plus GX), SNES (bSNES Mercury Performance) which all worked.
AV_PIX_FMT_BGR0 support requires a trivial firmware update which I'll push soon.
@popcornmix there was a merge conflict when I rebased on 17 alpha 2 and I think it got dropped along the way. Can you try rebasing on my retroplayer-17alpha2 branch?
Not final, just for wider testing. Might want to reconsider exactly where it plumbs in, but currently it is fairly unintrusive (a couple of ifdefs). So far I've only found use of AV_PIX_FMT_BGR0 and AV_PIX_FMT_RGB565LE. Let me know if any other formats are used. For those formats, we still call sws_scale, but it is implemented as memcpy so should be fairly efficient. I've tested Mame2003, Atari 2600 (Stella), Game Boy (Gambatte), Sega Genesis (Genesis Plus GX), SNES (bSNES Mercury Performance) which all worked. AV_PIX_FMT_BGR0 support requires a trivial firmware update which I'll push soon.