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
Copy file name to clipboardExpand all lines: source/linux/Foundational_Components/Kernel/Kernel_Drivers/Display/DSS7.rst
+55-3Lines changed: 55 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -387,7 +387,7 @@ libdrm is included in TI releases and its sources can be found from: ::
387
387
388
388
https://gitlab.freedesktop.org/mesa/drm
389
389
390
-
libdrm also contains 'modetest' tool, which can be used to get basic information about DRM state, and to show a test pattern on a display. Refer to the section `Testing tidss properties with modetest` below for some examples.
390
+
libdrm also contains 'modetest' tool, which can be used to get basic information about DRM state, and to show a test pattern on a display. Refer to the section `Testing tidss properties with modetest and kmstest` below for some examples.
391
391
392
392
Another option is kms++, a C++11 library for kernel mode setting which includes a bunch of test utilities and also V4L2 classes and Python bindings for DRM and V4L2. Some kms++ tools are included in TI releases. kms++ can be found from: ::
393
393
@@ -490,8 +490,8 @@ tidss supports configuration via DRM properties. These are standard DRM properti
490
490
| GAMMA_LUT_SIZE | crtc | Number of elements in gammma lookup table. |
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