mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 23:09:45 +03:00
s/Raspberry Pi (Trading) Limited/Raspberry Pi Ltd/ to reflect the new Raspberry Pi entity name. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
30 lines
711 B
C++
30 lines
711 B
C++
/* SPDX-License-Identifier: BSD-2-Clause */
|
|
/*
|
|
* Copyright (C) 2021, Raspberry Pi Ltd
|
|
*
|
|
* device_status.cpp - device (image sensor) status
|
|
*/
|
|
#include "device_status.h"
|
|
|
|
using namespace libcamera; /* for the Duration operator<< overload */
|
|
|
|
std::ostream &operator<<(std::ostream &out, const DeviceStatus &d)
|
|
{
|
|
out << "Exposure: " << d.shutterSpeed
|
|
<< " Frame length: " << d.frameLength
|
|
<< " Gain: " << d.analogueGain;
|
|
|
|
if (d.aperture)
|
|
out << " Aperture: " << *d.aperture;
|
|
|
|
if (d.lensPosition)
|
|
out << " Lens: " << *d.lensPosition;
|
|
|
|
if (d.flashIntensity)
|
|
out << " Flash: " << *d.flashIntensity;
|
|
|
|
if (d.sensorTemperature)
|
|
out << " Temperature: " << *d.sensorTemperature;
|
|
|
|
return out;
|
|
}
|