libcamera: ipu3: imgu: Rename configureInput()
The ImgUDevice::configureInput() function does not only configure the input format but applies rectangles to the IF, BDS and GDC components. Rename it to ImgUDevice::configure(). Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
15df621fb9
commit
2dd19efffc
3 changed files with 4 additions and 5 deletions
|
@ -430,13 +430,12 @@ ImgUDevice::PipeConfig ImgUDevice::calculatePipeConfig(Pipe *pipe)
|
|||
}
|
||||
|
||||
/**
|
||||
* \brief Configure the ImgU unit input
|
||||
* \brief Configure the ImgU pipeline
|
||||
* \param[in] config The ImgU pipe configuration parameters
|
||||
* \param[in] inputFormat The format to be applied to ImgU input
|
||||
* \return 0 on success or a negative error code otherwise
|
||||
*/
|
||||
int ImgUDevice::configureInput(const PipeConfig &pipeConfig,
|
||||
V4L2DeviceFormat *inputFormat)
|
||||
int ImgUDevice::configure(const PipeConfig &pipeConfig, V4L2DeviceFormat *inputFormat)
|
||||
{
|
||||
/* Configure the ImgU input video device with the requested sizes. */
|
||||
int ret = input_->setFormat(inputFormat);
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
|
||||
PipeConfig calculatePipeConfig(Pipe *pipe);
|
||||
|
||||
int configureInput(const PipeConfig &pipeConfig, V4L2DeviceFormat *inputFormat);
|
||||
int configure(const PipeConfig &pipeConfig, V4L2DeviceFormat *inputFormat);
|
||||
|
||||
int configureOutput(const StreamConfiguration &cfg,
|
||||
V4L2DeviceFormat *outputFormat)
|
||||
|
|
|
@ -476,7 +476,7 @@ int PipelineHandlerIPU3::configure(Camera *camera, CameraConfiguration *c)
|
|||
if (imguConfig.isNull())
|
||||
return 0;
|
||||
|
||||
ret = imgu->configureInput(imguConfig, &cio2Format);
|
||||
ret = imgu->configure(imguConfig, &cio2Format);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue