mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-25 17:45:06 +03:00
pipeline: ipa: raspberrypi: Open the CamHelper on ipa::init()
Move the opening of the CamHelper from ipa::configure() to ipa::init(). This allows the pipeline handler to get the sensor specific parameters in pipeline_handler::match() where the ipa is initialised. Having the sensor parameters available earlier will allow selective use of the embedded data node in a future change. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Tested-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
ff9f60ce3f
commit
eec070039d
3 changed files with 46 additions and 60 deletions
|
@ -15,10 +15,6 @@ enum BufferMask {
|
|||
/* Size of the LS grid allocation. */
|
||||
const uint32 MaxLsGridSize = 0x8000;
|
||||
|
||||
enum ConfigOutputParameters {
|
||||
ConfigSensorParams = 0x01,
|
||||
};
|
||||
|
||||
struct SensorConfig {
|
||||
uint32 gainDelay;
|
||||
uint32 exposureDelay;
|
||||
|
@ -40,8 +36,6 @@ struct ConfigInput {
|
|||
};
|
||||
|
||||
struct ConfigOutput {
|
||||
uint32 params;
|
||||
SensorConfig sensorConfig;
|
||||
ControlList controls;
|
||||
};
|
||||
|
||||
|
@ -51,7 +45,7 @@ struct StartControls {
|
|||
};
|
||||
|
||||
interface IPARPiInterface {
|
||||
init(IPASettings settings) => (int32 ret);
|
||||
init(IPASettings settings) => (int32 ret, SensorConfig sensorConfig);
|
||||
start(StartControls controls) => (StartControls result);
|
||||
stop();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue