libcamera: pipeline_handler: Make pipeline-specific data mandatory

Mandate creationg of pipeline-specific data by pipeline handlers. This
allows simplifying the API by passing the pipeline-specific data to the
registerCamera() method and removing the separate setCameraData()
method.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart 2019-02-28 13:15:09 +02:00
parent 61a62ddbd8
commit b581b9576a
5 changed files with 15 additions and 56 deletions

View file

@ -202,9 +202,7 @@ bool PipelineHandlerVimc::match(DeviceEnumerator *enumerator)
std::set<Stream *> streams{ &data->stream_ };
std::shared_ptr<Camera> camera = Camera::create(this, "VIMC Sensor B",
streams);
setCameraData(camera.get(), std::move(data));
registerCamera(std::move(camera));
registerCamera(std::move(camera), std::move(data));
return true;
}