aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use full license text to help github figure out the licenseHEADmasterTomi Valkeinen2018-01-121-5/+370
|
* alpha-test.py: fixTomi Valkeinen2018-01-121-12/+8
|
* trans-test.py: fix drawing outside the bufferTomi Valkeinen2018-01-091-1/+1
|
* add safeguards to draw_*_pixel() to prevent memory corruptionTomi Valkeinen2018-01-091-0/+9
| | | | Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
* kmstest: Separate reservation phase from command line parsingJyri Sarha2018-01-051-127/+97
| | | | | | | | | | | | | In the new order the planes are not reserved before the whole command line is parsed. This way we know the color format of the framebuffer that is going to be on the reserved plane and we can select a plane that supports the format. After this patch kmstest makes no distinction between primary and overlay planes if atomic mode setting is supported. If no plane is specified then a default plane, matching the screen size is created. Signed-off-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
* kmstest: Implement simplistic propery support behind -P flag.Jyri Sarha2018-01-051-3/+91
| | | | | | | | Non atomic modesetting is not supported and there is no translation from various property types to unsigned 64-bit integer. Instead the property values are simply converted from string with stoull(str, 0, 0). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
* py: pyvid: Provide stream_off bindingKieran Bingham2017-12-151-0/+1
| | | | | | | | | | The videodevice module defines a stream_off function call, but this is not available in the python bindings interface. Provide the binding of VideoStreamer::stream_off. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
* videodevice: Fix minor spacingKieran Bingham2017-12-151-1/+1
| | | | | | | Provide a space between the return type and the function definition Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
* py: add convert_vector helperTomi Valkeinen2017-12-081-20/+15
| | | | Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
* py: Add Card crtcs and encoders properties back to the Python bindingsLaurent Pinchart2017-12-081-0/+14
| | | | | | | | | | 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>
* Fix Python bindings for Connector::get_possible_crtcs() methodLaurent Pinchart2017-12-081-1/+6
| | | | | | | | | | 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>
* pykms: keep Card alive until Blob is goneTomi Valkeinen2017-11-241-5/+7
|
* travis: add gcc6 & gcc7Tomi Valkeinen2017-11-241-0/+14
|
* Update to latest pybind11Tomi Valkeinen2017-11-245-26/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* resman: use set<> instead of vector<>Tomi Valkeinen2017-11-222-31/+24
|
* kmstest: use resmanTomi Valkeinen2017-11-224-43/+50
|
* kmstest: rename ObjectType to ArgTypeTomi Valkeinen2017-10-241-12/+12
|
* wbcap: support saving to fileTomi Valkeinen2017-10-241-3/+31
|
* utils: wbcap interlace supportTomi Valkeinen2017-10-201-14/+16
|
* utils: improve wbcapTomi Valkeinen2017-10-201-35/+55
|
* Crtc: add set_mode() which doesn't take a fbTomi Valkeinen2017-10-203-1/+25
|
* Connector: improve get_mode(string)Tomi Valkeinen2017-10-201-4/+17
|
* Card: add disable_all()Tomi Valkeinen2017-10-202-0/+22
|
* Videomode: add to_string()Tomi Valkeinen2017-10-202-0/+13
|
* kmscube: update drm resource allocationTomi Valkeinen2017-10-101-35/+17
|
* kmscube: drop non-atomic supportTomi Valkeinen2017-10-101-33/+19
|
* kmscapture: fix capture videomode heuristicTomi Valkeinen2017-10-031-7/+18
|
* kmscapture: clean up fb handlingTomi Valkeinen2017-10-031-22/+6
|
* kmscapture: fix v4l buftypeTomi Valkeinen2017-10-031-7/+3
|
* Rework framebuffer classesTomi Valkeinen2017-10-0320-114/+71
| | | | | | | | | 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.
* card: fix compile warningTomi Valkeinen2017-10-031-5/+3
|
* kmscube: compile fixTomi Valkeinen2017-10-031-3/+3
|
* add ExtFramebuffer::prime_fdTomi Valkeinen2017-10-032-0/+11
|
* py: drop the fancy event handlingTomi Valkeinen2017-09-057-46/+26
| | | | | | | | | 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().
* kmstest: fix --sync modeTomi Valkeinen2017-09-041-0/+10
| | | | | | | | 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.
* kmstest: add help text about env variablesTomi Valkeinen2017-09-041-0/+4
|
* kmstest: fix error in help textTomi Valkeinen2017-08-041-1/+1
|
* kmsprint: print connectors even if disconnectedTomi Valkeinen2017-06-301-3/+2
| | | | Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
* testpat: fix the location of second diagonal lineTomi Valkeinen2017-06-051-1/+1
|
* Merge branch 'color-features' of git://github.com/jsarha/kmsxxTomi Valkeinen2017-06-028-28/+243
|\
| * plane_csc.py: Test for different YCbCr encodingsJyri Sarha2017-05-311-0/+66
| |
| * Add DrmPropObject.get_prop() and Property.enums to pykmsbase.cpp.Jyri Sarha2017-05-311-0/+2
| |
| * Add different YCbCr encodings.Jyri Sarha2017-05-315-28/+88
| |
| * Add Crtc::disable_mode() to pykmsbase.cpp.Jyri Sarha2017-05-311-0/+1
| |
| * Add ctm_test.py test for testing CRTC's CTM color matrix property.Jyri Sarha2017-05-311-0/+86
| |
* | cam.py: fix initial modesetTomi Valkeinen2017-05-311-5/+7
| |
* | omapfb: add flags for memory allocTomi Valkeinen2017-05-303-0/+15
| |
* | omapfb: add enum Flags for OmapFBTomi Valkeinen2017-05-304-15/+30
| |
* | py: move Rotation enum to __init__.pyTomi Valkeinen2017-05-302-20/+23
| |
* | py: add rottest.pyTomi Valkeinen2017-05-241-0/+182
| | | | | | | | | | | | Add a test tool for rotation Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>