Skip to content

Variable renderContext size #37

@RFL

Description

@RFL

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions