summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-06-28 20:45:11 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-06-29 16:17:38 +0200
commit6bc4af7d0b6b203cc98ad617bf0a39e11eec8a2b (patch)
treedeaee23287799026da4dcb56319c674e31d1b8a2
parent7fc65e9680f604099d5d4f294b37fe7eb93acb03 (diff)
libcamera: ipu3: cio2: Use Size::isNull()
Use the Size::isNull() helper instead of using local code. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
-rw-r--r--src/libcamera/pipeline/ipu3/cio2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/ipu3/cio2.cpp b/src/libcamera/pipeline/ipu3/cio2.cpp
index 885e2ca0..aa1459fb 100644
--- a/src/libcamera/pipeline/ipu3/cio2.cpp
+++ b/src/libcamera/pipeline/ipu3/cio2.cpp
@@ -185,7 +185,7 @@ CIO2Device::generateConfiguration(Size size) const
StreamConfiguration cfg;
/* If no desired size use the sensor resolution. */
- if (!size.width && !size.height)
+ if (size.isNull())
size = sensor_->resolution();
/* Query the sensor static information for closest match. */