Skip to content

Conversation

@popcornmix
Copy link
Member

This allows the allocation of buffers used by ffmpeg to come from the gpu.
Then we use MMALRenderer to display the buffers through an opaque pointer.
This avoids two copies of the pixel data (on in kodi and one in transfer to GPU) with software decode.

There is a quite a big performance benefit for this, and allows for example 1080p BluRay decode of MPEG-2 without a hardware codec licence, and improves HEVC support.

@popcornmix
Copy link
Member Author

ping @FernetMenta

*
*/

#ifndef __USER_VCSM__H__INCLUDED__

This comment was marked as spam.

@FernetMenta
Copy link
Contributor

Looks good! Only some minors, see comments.

@popcornmix
Copy link
Member Author

@FernetMenta I've added commits addressing your comments.

@FernetMenta
Copy link
Contributor

+1

@popcornmix
Copy link
Member Author

jenkins build this please

popcornmix added a commit that referenced this pull request Mar 18, 2016
[mmal] Add zero copy interface to ffmpeg
@popcornmix popcornmix merged commit 194576e into xbmc:master Mar 18, 2016
@popcornmix popcornmix deleted the zerocopy branch March 18, 2016 20:15
@razzeee razzeee added this to the Krypton 17.0-alpha1 milestone Mar 18, 2016
@MrMC
Copy link

MrMC commented Mar 19, 2016

nice, gives me some ideas about using darwin surfaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants