summaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2017-05-31Add ctm_test.py test for testing CRTC's CTM color matrix property.Jyri Sarha
2017-05-31cam.py: fix initial modesetTomi Valkeinen
2017-05-30omapfb: add flags for memory allocTomi Valkeinen
2017-05-30omapfb: add enum Flags for OmapFBTomi Valkeinen
2017-05-30py: move Rotation enum to __init__.pyTomi Valkeinen
2017-05-24py: add rottest.pyTomi Valkeinen
Add a test tool for rotation Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-05-24omapfb: add TILER supportTomi Valkeinen
Add TILER rotation support for omapframebuffer. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-05-17pykms: add videomode related featuresTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-05-17pykmsutil: add draw_text()Tomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-05-09py: tests: Double buffered one big buffer on all connected screensPeter Ujfalusi
The test uses Atomic Mode Setting only and moves one horizontal bar up/down in the framebuffer - which stretches through all connected displays. The flip mode can be selected with --flipmode <single, separate> : single: Page flip on all displays with one request (default) separate: Separate page flip on the displays Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-04-27py: omapfb: add missing propertiesTomi Valkeinen
2017-04-26Add Connector.connected to pykmsbasePeter Ujfalusi
It can be used to check if the connector is connected or not Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-04-21py: Add in fence test using swsyncLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-04-10test.py: use atomic modesettingTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-04-07trans-test.py: fix use of colorsTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-20Add plane_hog.pyJyri Sarha
plane_hog.py gets all possible planes for default connector's crtc, enables them one by one, enables hdmi connector's crtc (if available) and moves the planes there on by one.
2017-03-20pykms/pykmsutil.cpp: Add binding for reserve_generic_plane()Jyri Sarha
2017-03-17Add modeset_event.pyJyri Sarha
modeset_event.py tests committing a full mode set asynchronously and receiving a flip event about it. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-17Add a simple and hackish plane scaling test.Jyri Sarha
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-17py: add DrmObject.idxTomi Valkeinen
2017-03-16Add color format related methods and memebers to pykmsbase.Jyri Sarha
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-16Add Videomode::to_blob method to pykmsbase.Jyri Sarha
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-13py: fix AtomicReq.commit() return valueTomi Valkeinen
2017-03-13db.py: remove old codeTomi Valkeinen
2017-03-08New event handlingTomi Valkeinen
The current event handling relies on the PageFlipHandlerBase class which has to be implemented on the python side. This patch implements a more versatile event handling, where any python object can be passed as data to the commit or page flip, and it's up to the python implementation to decide what to do with that data when receiving the event. Note that when doing the commit or page_flip, the ref count of the given python object is incremented to keep it alive. The ref count is decremented when reading the events with the new helper method card.read_events(). This helper _has_ to be used to ensure the objects get released properly. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-03py: db.py: Add command line argument to specify connectorLaurent Pinchart
When a command line argument is present, its value is used as a connector name that the script will try to use. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-02-13py: Expose AtomicReq::add(std::map<>) methodLaurent Pinchart
Only the AtomiqReq::add version that takes a single property is currently exposed through the Python bindings. Expose the add method that takes a list of properties as well. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-02-10test.py: add dmabuf & omap optionsTomi Valkeinen
2017-02-10py: add ExtFramebufferTomi Valkeinen
2017-02-10omapfb: add constructor with fourccTomi Valkeinen
2017-02-10py: add DumbFb propertiesTomi Valkeinen
2017-02-10use reserve_connector from ResourceManagerTomi Valkeinen
2017-02-06Support python2 based pykms bindingAlejandro Hernandez
Previously only binding with python3 was supported, this patch allows compilation of pykms with python3 or python2. When compiling with python2 some of the python scripts located in the py/test will not work since they import python3 only modules Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-01-27py/tests: hpd testTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-01-25Add refresh() to connector, crtc and encoderTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-01-24pykms: add Videomode.__repr__Tomi Valkeinen
2017-01-03py: db.py: Print frame rate at 5s intervalsLaurent Pinchart
Print both the number of vsyncs (as reported by the driver in flip events) and the number of flip events. This is useful to debug frame rate related issues. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-01-03py: db.py: Rename argument to event handlers to avoid shadowingLaurent Pinchart
The first argument to the key event handlers bears the same name as the global variable that identifies the connector. Rename it to fileobj which, in addition to being more descriptive, avoids shadowing the global variable. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-01-03py: Move helpers to the pykms moduleLaurent Pinchart
Instead of forcing applications to import the helpers manually, move them to pykms by turning it into a python module. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-01-03py: Reorganize source directoryLaurent Pinchart
Separate the Python bindings sources from the test scripts. While at it, remove the unneeded run.sh script. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-01-03py: Expose MappedFramebuffer width and height propertiesLaurent Pinchart
The property getters are defined as pure virtual functions in the MappedFramebuffer class. Expose the Python properties as part of the bindings for that class to make them available for all classes inheriting from MappedFramebuffer. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-11-22py: Add OmapCard & OmapFramebuffer supportTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-11-22py: Add MappedFramebuffer and use itTomi Valkeinen
Add MappedFramebuffer to python bindings and use it for the draw functions. Looks like recent pybind11 versions have better multi-inheritance support, so all this need to be revisited after updating pybind11. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-08-15support finding fractional vrefreshTomi Valkeinen
2016-08-11add basic cmake install systemTomi Valkeinen
2016-07-10Fix property name lookupTomi Valkeinen
Object types can have different properties with the same name, so we need to move name-based property lookup from Card to DrmPropObject. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-06-22py: fix AtomicReq's add()Tomi Valkeinen
"kms++: use DrmPropObject in AtomicReq" forgot to update py bindings. Fix this. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-06-22py: Expose the Connector::get_mode methodsLaurent Pinchart
Those methods are useful in Python scripts, expose them through the bindings. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-06-16py: add cam.pyTomi Valkeinen
2016-06-16py: add pyvidTomi Valkeinen