You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the name suggests, ``modetest`` is DRM based mode setting test program available along with libdrm.
497
497
It is an easy-to-use tool to test different features provided by display HWs. The DRM driver for,
@@ -663,6 +663,58 @@ The following example was run on DSS7-UL and hence the pipe with scaling capabil
663
663
664
664
Note that the ``*2`` at the end of ``-P 41@38:400x400*2`` is the scaling factor.
665
665
666
+
- **Cropping**
667
+
668
+
``kmstest`` utility can be used to demonstrate cropping in a video frame using a test pattern.
669
+
User can specify the video frame size ``w x h`` with an input color format ``cf`` using option ``-f``, then to specify the source rectangle i.e. to create cropped portion of video frame, it can be done using ``-v`` argument which specify ``w1 x h1`` source rectangle starting at coordinates ``x1,y1`` w.r.t the video frame. The destination rectangle i.e. on the screen where this needs to be displayed can be specified using ``-p`` option with the desired dimensions i.e. ``w2 x h2`` to be displayed starting at coordinates ``x2,y2``.
Taking as an input a video frame of dimensions ``1000x1000``,the example creates a cropped source rectangle of dimensions ``800x800``, starting at coordinates ``0,0`` and displays it on screen at coordinates ``0,0``.
Taking as an input a video frame of dimensions ``1000x1000``, this example creates a cropped source rectangle of dimensions ``800x800``, starting at coordinates ``500,200`` and displays it on screen at coordinates ``200,100`` keeping the same dimensions as source rectangle i.e ``800x800`` without scaling.
0 commit comments