<div dir="ltr"><div dir="ltr">Hi Jean-Michel,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 23 Jun 2022 at 15:51, Jean-Michel Hautbois <<a href="mailto:jeanmichel.hautbois@yoseli.org">jeanmichel.hautbois@yoseli.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 23/06/2022 16:50, Jean-Michel Hautbois via libcamera-devel wrote:<br>
> Hi Naushir,<br>
> <br>
> Thanks for the series !<br>
> <br>
> On 23/06/2022 16:44, Naushir Patuck via libcamera-devel wrote:<br>
>> Hi,<br>
>><br>
>> This series adds a sensor temperature metadata control to libcamera. <br>
>> This<br>
>> control is returned out through Request metadata when available. <br>
>> There is an<br>
>> open PR [1] to enable the temperature sensor on the imx477 on the <br>
>> Raspberry Pi<br>
>> platforms.<br>
>><br>
>> At present, there is no mechanism in V4L2 to return the temperature <br>
>> from the<br>
>> sensor device driver, so we rely on the embedded data to fetch the <br>
>> values every<br>
>> frame.<br>
> <br>
> I think this PR along with a V4L2 control introduction <br>
> (V4L2_CID_TEMPERATURE :-) ?) could be interesting to be sent to the <br>
> linux-media ML at the same time ?<br></blockquote><div><br></div><div>I was hoping to decouple this with V4L2 changes for now. From what I can tell,</div><div>the topic of V4L2_CID_TEMPERATURE is a long ongoing discussion, and my</div><div>change here does not rely on it. So our users can get this feature earlier!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I forgot to ask the use case though ? :-)<br></blockquote><div><br></div><div>We have had a few requests for this feature, see <a href="https://github.com/raspberrypi/libcamera-apps/issues/306">https://github.com/raspberrypi/libcamera-apps/issues/306</a></div><div>for the most recent one where the temperature value is useful for long exposures to</div><div>help with dark frame subtraction in post processing for astrophotography.</div><div><br></div><div>Regards,</div><div>Naush</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> <br>
> JM<br>
> <br>
>><br>
>> Thanks,<br>
>> Naush<br>
>><br>
>> [1] <a href="https://github.com/raspberrypi/linux/pull/5067" rel="noreferrer" target="_blank">https://github.com/raspberrypi/linux/pull/5067</a><br>
>><br>
>> Naushir Patuck (3):<br>
>> libcamera: controls: Add SensorTemperature control<br>
>> ipa: raspberrypi: Add sensor temperature to DeviceStatus<br>
>> ipa: raspberrypi: imx477: Get sensor temperature from embedded data<br>
>><br>
>> src/ipa/raspberrypi/cam_helper.cpp | 7 ++++---<br>
>> src/ipa/raspberrypi/cam_helper_imx477.cpp | 5 ++++-<br>
>> src/ipa/raspberrypi/controller/device_status.cpp | 3 +++<br>
>> src/ipa/raspberrypi/controller/device_status.h | 4 +++-<br>
>> src/ipa/raspberrypi/raspberrypi.cpp | 2 ++<br>
>> src/libcamera/control_ids.yaml | 10 ++++++++++<br>
>> 6 files changed, 26 insertions(+), 5 deletions(-)<br>
>><br>
</blockquote></div></div>