libcamera: Add MediaObject class hierarchy

Add a class hierarcy to represent all media objects a media graph represents.
Add a base MediaObject class, which retains the global unique object id,
and define the derived MediaEntity, MediaLink and MediaPad classes.

This hierarchy will be used by the MediaDevice objects which represents and
handles the media graph.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Jacopo Mondi
2018-12-20 15:20:37 +01:00
parent 20d15d9dc4
commit f0e16f0389
3 changed files with 390 additions and 0 deletions
+2
View File
@@ -4,12 +4,14 @@ libcamera_sources = files([
'device_enumerator.cpp',
'log.cpp',
'main.cpp',
'media_object.cpp',
'pipeline_handler.cpp',
])
libcamera_headers = files([
'include/device_enumerator.h',
'include/log.h',
'include/media_object.h',
'include/pipeline_handler.h',
'include/utils.h',
])