summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/ipu3/cio2.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2021-10-11 11:03:31 +0200
committerJacopo Mondi <jacopo@jmondi.org>2021-10-15 09:32:28 +0200
commit2dab504a9be138d6a8c94fe498bc7917d313182e (patch)
treeb46d39e8a5646c5aad3ea1cfaba3659b99a3eda9 /src/libcamera/pipeline/ipu3/cio2.cpp
parent3bd3b95a09faefd10cb34e2c8847535a51234448 (diff)
libcamera: ipu3: Rationalize constant expressions names
Following the previous patch that moved all the ImgU-related contants in the ImgUDevice class namespace and that aligned their naming scheme to the 'kNameOfConstant' scheme, apply the same changes to the other components of the IPU3 pipeline handler. Cosmetic change, no functional changes intended. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/ipu3/cio2.cpp')
-rw-r--r--src/libcamera/pipeline/ipu3/cio2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/pipeline/ipu3/cio2.cpp b/src/libcamera/pipeline/ipu3/cio2.cpp
index dc62ab19..59dda56b 100644
--- a/src/libcamera/pipeline/ipu3/cio2.cpp
+++ b/src/libcamera/pipeline/ipu3/cio2.cpp
@@ -234,7 +234,7 @@ StreamConfiguration CIO2Device::generateConfiguration(Size size) const
cfg.size = sensorFormat.size;
cfg.pixelFormat = mbusCodesToPixelFormat.at(sensorFormat.mbus_code);
- cfg.bufferCount = CIO2_BUFFER_COUNT;
+ cfg.bufferCount = kBufferCount;
return cfg;
}
@@ -338,11 +338,11 @@ int CIO2Device::exportBuffers(unsigned int count,
int CIO2Device::start()
{
- int ret = output_->exportBuffers(CIO2_BUFFER_COUNT, &buffers_);
+ int ret = output_->exportBuffers(kBufferCount, &buffers_);
if (ret < 0)
return ret;
- ret = output_->importBuffers(CIO2_BUFFER_COUNT);
+ ret = output_->importBuffers(kBufferCount);
if (ret)
LOG(IPU3, Error) << "Failed to import CIO2 buffers";