Age | Commit message (Collapse) | Author |
|
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
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>
|
|
|
|
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
This was the only C file in the project, so now we're "pure" c++.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
|
|
It's time.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
I don't think python2 even works with kms++.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Use unique_ptr to prevent memory leaks in VideoDevice class
|
|
|
|
More card constructors
|
|
Uses drmOpen() to do the heavy lifting.
|
|
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.
|
|
fix compiler errors with gcc 10
|
|
resmgr: add release() methods
|
|
|
|
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.
|
|
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>
|
|
|
|
Add an option to print crc16 for the framebuffer contents.
|
|
Only single touch supported, and pretty naive implementation.
|
|
|
|
|
|
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
|
|
stag-aosp-master am: db553c2648 -s ours am: 1cab10beff am: 30b3a10668
Change-Id: Idc3735d94f7a854e4dd53c6ecf993d59679bcd69
|
|
stag-aosp-master am: db553c2648 -s ours am: 1cab10beff
Change-Id: I414187920e787b2c1dca8038093350a839833a90
|
|
stag-aosp-master am: db553c2648 -s ours
am skip reason: subject contains skip directive
Change-Id: I25a467e8179ace6bb245c4752c11dfe167d224e2
|
|
Bug: 151763422
Change-Id: Ia44e9fd77e4ddaec2fe84a1d3faac935ea5b986a
|
|
Include array
|
|
am: e5b51255e9 am: 05e4989917 am: 3d79004885 am: 54d7feb84f
Change-Id: Ib6f0812d50989c7794e55b7d9ab214b29ca28c3b
|
|
am: e5b51255e9 am: 05e4989917 am: 3d79004885
Change-Id: I64848cf4196f5ce010fa415fb8d3dd8aae98f91c
|
|
am: e5b51255e9 am: 05e4989917
Change-Id: I253495f7cfb5cf19e57beae094af2076b0adbf48
|
|
am: e5b51255e9
Change-Id: I8d2df6455367a3181d17aba87781c4881c885646
|
|
am: e5b51255e9
Change-Id: Ib50722231c5b9cd1f3d7b60df6b7f1cb34af4476
|
|
Change-Id: Idb1bb2458e81a28f001d2169f71b1fac5969593d
|
|
Exempt-From-Owner-Approval: upgrade
Change-Id: I6c7aae30d8ba09e05d47b03b55c58ac782097742
|
|
|
|
eda3b5c0ff am: 3a54ea5363 am: c6e038e9b3
Change-Id: I0ce98b38a87680ab6f4e13afd8add35e29e7063b
|
|
eda3b5c0ff am: 3a54ea5363
Change-Id: Idad254368dd089279fe8708aa5f5558f06d64f84
|