Find actual size of display from a sink

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Find actual size of display from a sink

Gary Metalle

Hi


Possibly a dumb question but is there a way to find out the actual size of a display when using a (video) sink?


I know displays typically have different modes, but I'm thinking more of embedded platforms that will have a regular LCD with a set size such as 800x480 (WVGA).


I will probably be using one of the Freescale provided imx plugins which are specific to the NXP imx6 processor, so something like imxg2dvideosink​ would be a sink I'd use, but it must be the same for other hardware such as the Raspberry Pi etc.


Maybe it's done though other means such as OS calls etc?


Gary.


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Find actual size of display from a sink

Nicolas Dufresne-5
Le mardi 22 septembre 2020 à 09:50 +0000, Gary Metalle a écrit :
> Hi
>
> Possibly a dumb question but is there a way to find out the actual
> size of a display when using a (video) sink?

If the sink have support for it. At the moment, this information is
only passed in the context of CompositionOverlay meta. This information
is used for high resolution text overlay render (we can render to
display resolution in order to avoid any scaling artifacts). If was
considered to move / duplicate this information into VideoOverlay meta
reporting, but have not be done, as it didn't have any use case for.

Feel free to extand to your needs, patches will be welcomed in this
regard. One of the use case that was forseen was to better select the
streams in HLS/DASH, to avoid selecting higher resolution then needed
fro the display. One of the issue with current implementation is that
it's missing the display aspect ratio (which means the rendered may
still be doing some scaling in odd display pixel ratio).

>
> I know displays typically have different modes, but I'm thinking more
> of embedded platforms that will have a regular LCD with a set size
> such as 800x480 (WVGA).
>
> I will probably be using one of the Freescale provided imx plugins
> which are specific to the NXP imx6 processor, so something
> like imxg2dvideosink would be a sink I'd use, but it must be the
> same for other hardware such as the Raspberry Pi etc.
>
> Maybe it's done though other means such as OS calls etc?
>
> Gary.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel