ipa: rpi: Add a HW property to determine if the data buffer is strided

This property (dataBufferStrided) indicates if the CSI-2 hardware writes
to the embedded/metadata buffer directly, or if it treats the buffer
like an image buffer and strides the metadata lines.

Unicam writes this buffer strided, while the PiSP Frontend writes to it
directly. This information will be relevant to data parsers in the
helpers where the data is structured in lines.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Naushir Patuck 2025-01-08 11:09:35 +00:00 committed by Kieran Bingham
parent a45de8e81b
commit cd3dfa1f03
2 changed files with 3 additions and 0 deletions

View file

@ -39,6 +39,7 @@ static const std::map<std::string, Controller::HardwareConfig> HardwareConfigMap
.pipelineWidth = 13, .pipelineWidth = 13,
.statsInline = false, .statsInline = false,
.minPixelProcessingTime = 0s, .minPixelProcessingTime = 0s,
.dataBufferStrided = true,
} }
}, },
{ {
@ -71,6 +72,7 @@ static const std::map<std::string, Controller::HardwareConfig> HardwareConfigMap
* frames wider than ~16,000 pixels. * frames wider than ~16,000 pixels.
*/ */
.minPixelProcessingTime = 1.0us / 380, .minPixelProcessingTime = 1.0us / 380,
.dataBufferStrided = false,
} }
}, },
}; };

View file

@ -49,6 +49,7 @@ public:
unsigned int pipelineWidth; unsigned int pipelineWidth;
bool statsInline; bool statsInline;
libcamera::utils::Duration minPixelProcessingTime; libcamera::utils::Duration minPixelProcessingTime;
bool dataBufferStrided;
}; };
Controller(); Controller();