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: rewrite yuv to rgb conversion for OpenGL #13428

Merged
merged 8 commits into from
Jan 27, 2018

Conversation

FernetMenta
Copy link
Contributor

@FernetMenta FernetMenta commented Jan 24, 2018

  • rewrite of YUV - RGB conversion for OpenGL
  • move renderflags into renderer

@FernetMenta
Copy link
Contributor Author

@popcornmix please adapt omxplayer

@FernetMenta FernetMenta changed the title VideoPlayer: move renderflags to renderer VideoPlayer: rewrite yuv to rgb conversion for OpenGL Jan 26, 2018
@FernetMenta
Copy link
Contributor Author

FernetMenta commented Jan 27, 2018

@afedchin you may want to rework Windows too. The old code is wrong, i.e. it does not consider transformations between colour primaries. Only HD videos had correct colours because bt.709 is identical with sRGB.

@FernetMenta
Copy link
Contributor Author

jenkins build this please

@FernetMenta FernetMenta added the Type: Fix non-breaking change which fixes an issue label Jan 27, 2018
@@ -199,7 +199,7 @@ CDVDVideoCodec::VCReturn CAddonVideoCodec::GetPicture(VideoPicture* pVideoPictur
pVideoPicture->pts = static_cast<double>(picture.pts);
pVideoPicture->dts = DVD_NOPTS_VALUE;
pVideoPicture->color_range = 0;
pVideoPicture->color_matrix = 4;
pVideoPicture->color_space = 4;

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@afedchin
Copy link
Member

@FernetMenta which is main change between old YUVMatrix and new implementation?

@FernetMenta
Copy link
Contributor Author

@afedchin

  • conversion between colour primaries source / destination
  • scaling for source > 8 bits

@FernetMenta FernetMenta merged commit bc765a2 into xbmc:master Jan 27, 2018
@FernetMenta FernetMenta deleted the display branch January 27, 2018 19:05
@Rechi Rechi added this to the L 18.0-alpha1 milestone Jan 27, 2018
ksooo added a commit to ksooo/xbmc that referenced this pull request Jan 28, 2018
fritsch added a commit that referenced this pull request Jan 28, 2018
[videoplayer] Fix vdpau crash after #13428.
@MilhouseVH
Copy link
Contributor

Could this be related? forum

@FernetMenta
Copy link
Contributor Author

possible

@koying
Copy link
Contributor

koying commented Feb 1, 2018

Yep:
21:01:00.334 T:1540745504 DEBUG: CRenderManager::UpdateResolution: mono

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Video Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants