Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoPlayer: drop FlipPage from RMs public interface #12500

Merged
merged 4 commits into from Jul 19, 2017

Conversation

FernetMenta
Copy link
Contributor

No description provided.

@FernetMenta FernetMenta added Type: Cleanup non-breaking change which removes non-working or unmaintained functionality v18 Leia Component: Video labels Jul 14, 2017
@FernetMenta
Copy link
Contributor Author

@popcornmix I think this requires adaptions in omx player

@garbear not sure if you have correct pts in videopicture. please check

@@ -208,14 +208,10 @@ void CRetroPlayerVideo::SendPicture(VideoPicture& picture)
{
std::atomic_bool bAbortOutput(false); //! @todo

int index = m_renderManager.AddVideoPicture(picture);
if (!m_renderManager.AddVideoPicture(picture, bAbortOutput, VS_INTERLACEMETHOD_NONE, false))
if (index < 0)

This comment was marked as spam.

This comment was marked as spam.

@popcornmix
Copy link
Member

@FernetMenta any advice on what is required by omxplayer now?

I used to call Flip (but not AddVideoPicture) to update pts value in renderer.

Now I don't really want to call AddVideoPicture as there is no picture to display.

If I don't call either, then I don't get any subs rendered.

@FernetMenta
Copy link
Contributor Author

@popcornmix actually nothing has changed. Both methods were called in a sequence. pts value argument of Flip was same as picture->pts of AddVideopicture

@FernetMenta
Copy link
Contributor Author

@popcornmix how is the status here?

@popcornmix
Copy link
Member

omxplayer has never called AddVideoPicture. It has no pictures to add - video rendering occurs on the gpu with the arm having no knowledge of individual frames being renderered.

omplayer does call FlipPage:
https://github.com/xbmc/xbmc/blob/master/xbmc/cores/omxplayer/OMXPlayerVideo.cpp#L313
which is required for subtitles to work.

I'm not sure what is now required. Should I generate a fake picture to pass to AddVideoPicture that gets discarded by renderer? It seems inefficient.

@FernetMenta
Copy link
Contributor Author

Call AddVIdeoPicture with a picture that has required parameters. You renderer can ignore the picture or whatever is appropriate for it.
At a later stage Renderer::FipPage will die as well becuase it is obsolete with buffering in renderer.

@FernetMenta
Copy link
Contributor Author

jenkins build this please

@FernetMenta FernetMenta merged commit 892cbec into xbmc:master Jul 19, 2017
@FernetMenta FernetMenta deleted the flip branch July 19, 2017 10:17
@Rechi Rechi added this to the L 18.0-alpha1 milestone Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Video Type: Cleanup non-breaking change which removes non-working or unmaintained functionality v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants