Fix property name lookup
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>
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>
README: add notes about custom toolchainfile
kms++: fix AtomicReq compilation
4fb69b7d20e90746855de122422ac9cabd78f66f ("kms++: use DrmPropObject in
AtomicReq") made AtomicReq::add() use a not-yet-implemented method.
Fix this by changing that line back.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
4fb69b7d20e90746855de122422ac9cabd78f66f ("kms++: use DrmPropObject in
AtomicReq") made AtomicReq::add() use a not-yet-implemented method.
Fix this by changing that line back.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Add missing <system_error> includes
Missing <system_error> breaks compliation on gcc 4.9.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Missing <system_error> breaks compliation on gcc 4.9.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
py: fix AtomicReq's add()
"kms++: use DrmPropObject in AtomicReq" forgot to update py bindings.
Fix this.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
"kms++: use DrmPropObject in AtomicReq" forgot to update py bindings.
Fix this.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
kmsprint: Include cinttypes instead of inttypes.h
cinttypes is the right C++ header, and doesn't require source files to
define __STDC_FORMAT_MACROS to get the integer type format macros.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
cinttypes is the right C++ header, and doesn't require source files to
define __STDC_FORMAT_MACROS to get the integer type format macros.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
kms++: use DrmPropObject in AtomicReq
The objects to which we set properties with AtomicReq must have
properties, so they are DrmPropObjects instead of DrmObjects.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
The objects to which we set properties with AtomicReq must have
properties, so they are DrmPropObjects instead of DrmObjects.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
kms++: update decls.h
Sort the declarations and add DrmPropObject.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Sort the declarations and add DrmPropObject.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
py: Expose the Connector::get_mode methods
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>
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>
Merge V4L2 related work
Framebuffer: don't crash is drmModeGetFB() returns 0
Add Framebuffer::flush()
kmscube: use drmModeAddFB2 version of ExtFB
utils: add wbm2m
utils: add wbcap
py: add cam.py
py: add pyvid
kmsutils: add VideoDevice
kmsview: use resman
py: use ResourceManager
add ResourceManager
Support RGB888
draw_text: support YUV modes
py: add missing pixelformats
py: PixelFormat & DumbFB impro
gitignore: add pycache
kms++util: split to subdirs
kms++: organize into subdirs
cmake: results to bin & lib dirs
rename libkms to kms++
cmake: add option to build shared libs
rename dirs
kmsprint: print plane formats
py: fix scripts when there's no current crtc
util: add simple text drawing
util: refactor drawing functions
kmsview: small improvements
Make py/gamma.py executable.
py/gamma.py: Make gamma table calculations more generic
testpat: use new id/idx resolving
Property: remove now unused to_str()
kmsprint: rewrite kmsprint
add kmsblank app
util: add helpers
Card: remove get_crtc_by_index
Card::get_object(): return nullptr if not found
Videomode: add helpers
Property: add getters
Encoder: add DPMST type
Connector: hack fix EDID blob ID
testpat: use stopwatch
Add Stopwatch
py: fix AtomicReq bindings
testpat: print FB IDs
Update TODO
Remove 'db' from CMakeList.txt
Remove 'db', 'testpat' does it better
testpat: add page flipping mode
testpat: atomic commit
testpat: get primary plane
testpat: support multiple buffers
testpat: draw pattern separately
AtomicReq: support 'allow_modeset'
Crtc: fix get_primary_plane
Crtc: fix throw message
Add Videomode::to_blob()
AtomicReq: add helper to add multiple props
add missing idx for Plane & Encoder
Update README.md
py: add set_prop()
parallelize drawing of test pattern
gamma.py: show a test pattern
Add a simple gamma.py test
Add support for DRM blobs
Split properties from DrmObject into DrmPropObject
disable Wmissing-field-initializers when gcc <= 5.0
Require libdrm >= 2.4.64
Update README
Reorganize libkms++utils header
File/dir renames
Fix the rest of the py scripts
split py files
update readme
Automatically use -flto
improve build type
Cleanup AtomicReq::commit
Use pybind11 instead of SWIG
Remove swig helpers
Add Crtc::get_primary_plane
testpat: Fix undefined function compilation error
std::strerror() is defined in the cstring header. Include it directly as
it might not be included indirectly with all compiler versions.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
std::strerror() is defined in the cstring header. Include it directly as
it might not be included indirectly with all compiler versions.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
add kmsmodeview.py
fb: fix a few wrong types
testpat: add dmt & cea parameters
kmsxx: add modedb
testpat: fix crtc regexp
Update TODO
py: fix videomode list
kmscapture: separate step to enable streaming
kmacapture: atomic modesetting support
kmscapture: cleanups