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>
This commit is contained in:
parent
7fc65e9680
commit
6bc4af7d0b
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue