summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-08py: Add Card crtcs and encoders properties back to the Python bindingsLaurent Pinchart
Commit 706a44abb3aa ("Update to latest pybind11") removed the crtcs and encoders properties from the Card class. Add them back by wrapping the associated C++ methods manually due to a limitation of pybind11. Fixes: 706a44abb3aa ("Update to latest pybind11") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-12-08Fix Python bindings for Connector::get_possible_crtcs() methodLaurent Pinchart
The method returns an std::vector of DRMObject, which isn't supported by the latest pybind11 as explained in commit 706a44abb3aa. Fix it by wrapping the method manually. Fixes: 706a44abb3aa ("Update to latest pybind11") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-11-24pykms: keep Card alive until Blob is goneTomi Valkeinen
2017-11-24travis: add gcc6 & gcc7Tomi Valkeinen
2017-11-24Update to latest pybind11Tomi Valkeinen
Update to latest pybind11 HEAD. We can't use the latest tag (v2.2.0) as it has a regression. There were two problems when updating: 1) Difficulty in managing DrmObject derived classes Most of the DrmObjects are owned by Card, and can't be allocated or freed, but a few of them are allocated and freed by the user. For the former, we need to use unique_ptr with py::nodelete, but that prevents the latter from working. The solution was to not tell the python that the latter classes derive from DrmObject. This seems to be missing feature in pybind11, but I think we can live with it. 2) DrmObjects in STL containers vector<T> where T is a DrmObject derived class doesn't work. We need to have a manual wrapper to return vector<unique_ptr<T, py::nodelete>> instead. This also seems to be a pybind11 missing feature. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-11-22resman: use set<> instead of vector<>Tomi Valkeinen
2017-11-22kmstest: use resmanTomi Valkeinen
2017-10-24kmstest: rename ObjectType to ArgTypeTomi Valkeinen
2017-10-24wbcap: support saving to fileTomi Valkeinen
2017-10-20utils: wbcap interlace supportTomi Valkeinen
2017-10-20utils: improve wbcapTomi Valkeinen
2017-10-20Crtc: add set_mode() which doesn't take a fbTomi Valkeinen
2017-10-20Connector: improve get_mode(string)Tomi Valkeinen
2017-10-20Card: add disable_all()Tomi Valkeinen
2017-10-20Videomode: add to_string()Tomi Valkeinen
2017-10-10kmscube: update drm resource allocationTomi Valkeinen
2017-10-10kmscube: drop non-atomic supportTomi Valkeinen
2017-10-03kmscapture: fix capture videomode heuristicTomi Valkeinen
2017-10-03kmscapture: clean up fb handlingTomi Valkeinen
2017-10-03kmscapture: fix v4l buftypeTomi Valkeinen
2017-10-03Rework framebuffer classesTomi Valkeinen
Drop (I)MappedFramebuffer, as it doesn't really provide any value, and have most of the methods be present in IFramebuffer with default exception throwing implementation. This gives us simpler way to use the framebuffers, as almost always we can just use a pointer to IFramebuffer.
2017-10-03card: fix compile warningTomi Valkeinen
2017-10-03kmscube: compile fixTomi Valkeinen
2017-10-03add ExtFramebuffer::prime_fdTomi Valkeinen
2017-09-05py: drop the fancy event handlingTomi Valkeinen
Unfortunately the nice event handler added previously doesn't work: we may get multiple page-flip events, which would lead to unref'ing the passed python object multiple times, leading to memory corruption. I guess it's only possible to pass a plain int as user data to commit() and page_flip().
2017-09-04kmstest: fix --sync modeTomi Valkeinen
DRM sends page flips for each crtc in a commit. kmstest expected to get a single flip event for a single commit, which caused --sync not to work with two displays. Fix this by making kmstest skip the first flip event.
2017-09-04kmstest: add help text about env variablesTomi Valkeinen
2017-08-04kmstest: fix error in help textTomi Valkeinen
2017-06-30kmsprint: print connectors even if disconnectedTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-06-05testpat: fix the location of second diagonal lineTomi Valkeinen
2017-06-02Merge branch 'color-features' of git://github.com/jsarha/kmsxxTomi Valkeinen
2017-05-31plane_csc.py: Test for different YCbCr encodingsJyri Sarha
2017-05-31Add DrmPropObject.get_prop() and Property.enums to pykmsbase.cpp.Jyri Sarha
2017-05-31Add different YCbCr encodings.Jyri Sarha
2017-05-31Add Crtc::disable_mode() to pykmsbase.cpp.Jyri Sarha
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-18testpat: white box in top left cornerTomi Valkeinen
2017-05-18draw_char: use black bg for yuvTomi Valkeinen
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-17draw_rect: support yuv modesTomi 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-27connector: add DPI connector typeTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>