diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2019-01-25 17:58:01 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2019-01-29 15:31:57 +0100 |
commit | ebc4cab8626f449a5f028cfa52fd7a6eb3d57184 (patch) | |
tree | 45e45d6284f18939251d91ec643ba13dbd059aa8 /src | |
parent | dc443ec1b252780f27178c2e71e163f7620b8ee8 (diff) |
libcamera: ipu3: Add method to retrieve camera data
Provide a method for the IPU3 pipeline handler that hides the downcast
required to return an "IPU3CameraData *" reference from the
PipelineHandler::cameraData() method.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/pipeline/ipu3/ipu3.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp index d74655d0..64f639fc 100644 --- a/src/libcamera/pipeline/ipu3/ipu3.cpp +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp @@ -42,6 +42,12 @@ private: std::shared_ptr<MediaDevice> cio2_; std::shared_ptr<MediaDevice> imgu_; + IPU3CameraData *cameraData(const Camera *camera) + { + return static_cast<IPU3CameraData *>( + PipelineHandler::cameraData(camera)); + } + V4L2Device *createVideoDevice(unsigned int id); void registerCameras(); }; |