libcamera: camera_lens: add CameraLens as a member of CameraSensor
Add CameraLens as a member of CameraSensor. The patch does not implement how to link the lens to the specific sensor yet. Only to provide an interface for pipeline handler's usage. Signed-off-by: Han-Lin Chen <hanlinchen@chromium.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
6e80c1bcf4
commit
ad2bcbe5b5
2 changed files with 14 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
|||
namespace libcamera {
|
||||
|
||||
class BayerFormat;
|
||||
class CameraLens;
|
||||
class MediaEntity;
|
||||
|
||||
class CameraSensor : protected Loggable
|
||||
|
@ -60,6 +61,8 @@ public:
|
|||
|
||||
void updateControlInfo();
|
||||
|
||||
CameraLens *focusLens() { return focusLens_.get(); }
|
||||
|
||||
protected:
|
||||
std::string logPrefix() const override;
|
||||
|
||||
|
@ -91,6 +94,8 @@ private:
|
|||
const BayerFormat *bayerFormat_;
|
||||
|
||||
ControlList properties_;
|
||||
|
||||
std::unique_ptr<CameraLens> focusLens_;
|
||||
};
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue