diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-06-28 20:45:11 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-06-29 16:17:38 +0200 |
commit | 6bc4af7d0b6b203cc98ad617bf0a39e11eec8a2b (patch) | |
tree | deaee23287799026da4dcb56319c674e31d1b8a2 /src | |
parent | 7fc65e9680f604099d5d4f294b37fe7eb93acb03 (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/pipeline/ipu3/cio2.cpp | 2 |
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. */ |