garbear / xbmc

XBMC Main Repository
http://xbmc.org
Other
134 stars 53 forks source link

[rbp] [retroplayer] Add zero copy mmal support to retroplayer #58

Closed popcornmix closed 8 years ago

popcornmix commented 8 years ago

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.

garbear commented 8 years ago

@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?