Base class for all media objects.
More...
|
MediaDevice * | dev_ |
| The media device the media object belongs to.
|
|
unsigned int | id_ |
| The media object id.
|
|
Base class for all media objects.
MediaObject is an abstract base class for all media objects in the media graph. Each object is identified by a reference to the media device it belongs to and a unique id within that media device. This base class provide helpers to media objects to keep track of these identifiers.
- See also
- MediaEntity, MediaPad, MediaLink
◆ MediaObject()
libcamera::MediaObject::MediaObject |
( |
MediaDevice * |
dev, |
|
|
unsigned int |
id |
|
) |
| |
|
inlineprotected |
Construct a MediaObject part of the MediaDevice dev, identified by the id unique within the device.
- Parameters
-
[in] | dev | The media device this object belongs to |
[in] | id | The media object id |
The caller shall ensure unicity of the object id in the media device context. This constraint is neither enforced nor checked by the MediaObject.
◆ device() [1/2]
libcamera::MediaObject::device |
( |
| ) |
|
|
inline |
Retrieve the media device the media object belongs to.
- Returns
- The MediaDevice
◆ device() [2/2]
libcamera::MediaObject::device |
( |
| ) |
const |
|
inline |
Retrieve the media device the media object belongs to.
- Returns
- The MediaDevice
◆ id()
libcamera::MediaObject::id |
( |
| ) |
const |
|
inline |
Retrieve the media object id.
- Returns
- The media object id
The documentation for this class was generated from the following files:
- include/libcamera/internal/media_object.h
- src/libcamera/media_object.cpp