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>
This commit is contained in:
parent
dc443ec1b2
commit
ebc4cab862
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue