c2play
c2play copied to clipboard
Variable renderContext size
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
The video size and aspect ratio is controlled by the amlogic kernel driver.