aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-02meson.build: add static-libc optionTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-09-29Fix Plane::get_possible_crtcsTomi Valkeinen
Looks like RPi gives 0xff as possible_crtcs, even if there's only one crtc. The current code throws an exception in that case. Fix this by just ignoring non-existent possible crtcs. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-09-14Update README for meson buildTomi Valkeinen
2020-09-14Change travis to use mesonTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-09-14Add meson buildTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-09-14Rename esTransform.c to .cppTomi Valkeinen
This was the only C file in the project, so now we're "pure" c++. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-09-08Travis: add llvm-dev packages to add gold linkerTomi Valkeinen
2020-09-08Move to c++17Tomi Valkeinen
It's time. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-09-05Update travis to ubuntu 20.04Tomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-09-05Drop python2Tomi Valkeinen
I don't think python2 even works with kms++. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-09-05kmscapture: remove unneeded xf86drm.h includeTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-08-10kms++: Add support for missing 8 -and 16-bit RGB formatsLaurent Pinchart
Add support for the RGB332, XRGB1555 and XRGB4444 formats to the PixelFormat class, the Python API, and the drawing utilities. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-08-10kms++: Add support for the planar YUV formatsLaurent Pinchart
Add support for the 6 planar YUV formats (YUV and YVU, combined with 420, 422 or 444 subsampling) to the PixelFormat class, the Python API, and the drawing utilities. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-08-10kms++: Add support for semiplanar YUV422 formats (NV16 and NV61)Laurent Pinchart
Add support for the NV16 and NV61 pixel formats to the PixelFormat class, the Python API, and the drawing utilities. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-08-10pykmsbase: Add missing pixel formatsLaurent Pinchart
Several pixel formats defined in the C++ PixelFormat class are missing from the Python API. Add them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-08-10dumbfb: Fix pitch for tri-planar formatsLaurent Pinchart
The BO pitches are unconditionally set to the frame buffer pitch, for all planes. This is correct for semiplanar YUV formats, as they subsample chroma horizontally by two but combined U and V in a single plane, cancelling each other. For fully planar YUV formats, however, the horizontal subsampling need to be taken into account to compute the pitch. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-08-10dumbfb: Add support tri- or quadri-planar buffersLaurent Pinchart
The DumbFrameBuffer class supports up to 4 planes, as required by the DRM/KMS API, but only considers planes 0 and 1 when constructing the buffer. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-08-10card: Rename has_has_universal_planes to has_universal_planesLaurent Pinchart
The has_has_universal_planes() method name includes a typo, fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-08-10card: Add a method to retrieve the device minorLaurent Pinchart
The device minor number is needed to access the debugfs directory corresponding to the device. Make it available to users through a dev_minor() method on the Card object. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-08-04Merge pull request #57 from dreamer-dead/videodevice-unique-ptrTomi Valkeinen
Use unique_ptr to prevent memory leaks in VideoDevice class
2020-07-24Use unique_ptr to prevent memory leaks in VideoDevice classdreamer.dead
2020-05-28Merge pull request #56 from matthoosier-garmin/more-card-constructorsTomi Valkeinen
More card constructors
2020-05-28card: add factory function for selecting card by nameMatt Hoosier
Uses drmOpen() to do the heavy lifting.
2020-05-28card: add constructor for pre-opened FDMatt Hoosier
This is an escape hatch to let the user do whatever crazy thing he wants to obtain the DRM fd. This could be from a DRM lease, an FD passed across a Wayland protocol request, something calculated by manually walking across the set of DRI cards and selecting specific criteria, etc.
2020-05-17Merge pull request #54 from ilteroi/gcc10Tomi Valkeinen
fix compiler errors with gcc 10
2020-05-17Merge pull request #53 from matthoosier-garmin/resmgr-release-methodsTomi Valkeinen
resmgr: add release() methods
2020-05-15fix compiler errors with gcc 10Peter Trompeter
2020-05-15resmgr: add release() methodsMatt Hoosier
This makes the ResourceManager class much more functional for uses where the set of resources used to scan out a scene changes from frame to frame. The atomic modesetting API discipline requires a brute-force search to find a compatible pairing of planes/etc, and being able to reserve bits incrementally is much simpler than throwing out the entire resourcemanager and make a new one each time a resource reserved in a tentative attempt to probe its compatibility with an test-mode atomic commit, turns out not to pan out.
2020-05-15kmstest: allow enabling output without anything connectedTomi Valkeinen
Allow kmstest to enable an output without anything connected, if the user gives a videomode. DRM framework allows this, and is needed for testing. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-04-21py/cam.py: get w & h from cmdlineTomi Valkeinen
2020-04-21kmstest: add crc16 printTomi Valkeinen
Add an option to print crc16 for the framebuffer contents.
2020-04-21Add simple kmstouch test toolTomi Valkeinen
Only single touch supported, and pretty naive implementation.
2020-04-21kmsprint: use Videomode::to_string_longTomi Valkeinen
2020-04-21videodevice: use exception to catch bad fdTomi Valkeinen
2020-04-10[automerger skipped] DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into ↵Xin Li
stag-aosp-master am: db553c2648 -s ours am: 1cab10beff am: 30b3a10668 am: f0594af09f -s ours am skip reason: subject contains skip directive Change-Id: I48807c5f066e97449bdb3c8ad64ceee40110d00a
2020-04-10[automerger skipped] DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into ↵Xin Li
stag-aosp-master am: db553c2648 -s ours am: 1cab10beff am: 30b3a10668 Change-Id: Idc3735d94f7a854e4dd53c6ecf993d59679bcd69
2020-04-10[automerger skipped] DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into ↵Xin Li
stag-aosp-master am: db553c2648 -s ours am: 1cab10beff Change-Id: I414187920e787b2c1dca8038093350a839833a90
2020-04-10[automerger skipped] DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into ↵Xin Li
stag-aosp-master am: db553c2648 -s ours am skip reason: subject contains skip directive Change-Id: I25a467e8179ace6bb245c4752c11dfe167d224e2
2020-04-09DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into stag-aosp-masterandroid-r-beta-3android-r-beta-2Xin Li
Bug: 151763422 Change-Id: Ia44e9fd77e4ddaec2fe84a1d3faac935ea5b986a
2020-04-07Merge pull request #52 from hhb/masterTomi Valkeinen
Include array
2020-04-04Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2 ↵Haibo Huang
am: e5b51255e9 am: 05e4989917 am: 3d79004885 am: 54d7feb84f Change-Id: Ib6f0812d50989c7794e55b7d9ab214b29ca28c3b
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2 ↵Haibo Huang
am: e5b51255e9 am: 05e4989917 am: 3d79004885 Change-Id: I64848cf4196f5ce010fa415fb8d3dd8aae98f91c
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2 ↵Haibo Huang
am: e5b51255e9 am: 05e4989917 Change-Id: I253495f7cfb5cf19e57beae094af2076b0adbf48
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2 ↵Haibo Huang
am: e5b51255e9 Change-Id: I8d2df6455367a3181d17aba87781c4881c885646
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2 ↵Haibo Huang
am: e5b51255e9 Change-Id: Ib50722231c5b9cd1f3d7b60df6b7f1cb34af4476
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2Haibo Huang
Change-Id: Idb1bb2458e81a28f001d2169f71b1fac5969593d
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2Haibo Huang
Exempt-From-Owner-Approval: upgrade Change-Id: I6c7aae30d8ba09e05d47b03b55c58ac782097742
2020-04-02Include arrayHaibo Huang
2020-03-26Remove redundant NOTICE symbolic link. am: 6f7131a65d am: 4ac37d08f3 am: ↵Bob Badour
eda3b5c0ff am: 3a54ea5363 am: c6e038e9b3 Change-Id: I0ce98b38a87680ab6f4e13afd8add35e29e7063b
2020-03-26Remove redundant NOTICE symbolic link. am: 6f7131a65d am: 4ac37d08f3 am: ↵Bob Badour
eda3b5c0ff am: 3a54ea5363 Change-Id: Idad254368dd089279fe8708aa5f5558f06d64f84