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

Improved decoding quality of videos with non 1:1 pixel aspect ratio #548

Merged
merged 3 commits into from
Mar 16, 2019

Conversation

oomek
Copy link
Collaborator

@oomek oomek commented Mar 14, 2019

Many video snaps have non square pixel aspect ratio ( mostly MAME snaps ). This commit moves applying pixel aspect ratio from FeMedia ( on texture creation ) to FeImage ( sprite transform ).

Many video snaps have non square pixel aspect ratio ( mostly MAME snaps ). This commit moves applying pixel aspect ratio from FeMedia ( on texture creation ) to FeImage ( sprite transform ).
src/fe_image.cpp Outdated
float FeTextureContainer::get_movie_aspect_ratio() const
{
if ( m_movie )
m_movie->get_aspect_ratio();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want a return here so it is "return m_movie->get_ar()"
Otherwise I think this PR looks good, thanks

Copy link
Collaborator Author

@oomek oomek Mar 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprisingly it worked. I think the compiler assumed I want a return and did it for me :) Thanks.

@mickelson mickelson merged commit f6c4994 into mickelson:master Mar 16, 2019
@oomek oomek deleted the fix-video-quality branch March 16, 2019 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants