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

Variable renderContext size #37

Open
RFL opened this issue May 8, 2019 · 1 comment
Open

Variable renderContext size #37

RFL opened this issue May 8, 2019 · 1 comment

Comments

@RFL
Copy link

RFL commented May 8, 2019

Hi There
I am using c2play with an Odroid N2 with Linux 18.04.02 Minimal. The output medium is a 10" screen with a resolution of 1280x800. (There are no 16:9 proportions for small monitors.) On which I would like to play a video full screen, meaning filling all 1280x800 pixels without any letterboxing or black stripes.

Playing a 1280x720 (or 1920x1080) video understandably produces a black stripe above and below the video. Playing a 1280x800 video, which ideally would fill the entire screen, additionally produces a black stripe left and right of the video.

If one would want to add an argument for the output surface size, how would that be done easiest?
In /src/main.cpp on line 370 there is
CompositorSPTR compositor = std::make_shared<Compositor>(renderContext, 1920, 1080);
Would it be enough to replace the hard coded renderContext width=1920 and height=1080 with variables?
Thank you

@OtherCrashOverride
Copy link
Owner

The video size and aspect ratio is controlled by the amlogic kernel driver.

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

No branches or pull requests

2 participants