Skip to content

Commit c576b43

Browse files
davidplowmannaushir
authored andcommitted
ipa: rpi: sync: Convert wallclock from nanoseconds to microseconds
The wallclock timestamp has been changed to nanosecond units, and all the calculations here assume it's in microseconds, so add the necessary conversion. Fixes: 29a88d8 ("libcamera: controls: Use nanoseconds units for FrameWallClock") Signed-off-by: David Plowman <[email protected]>
1 parent 94615ab commit c576b43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ipa/rpi/controller/rpi/sync.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ void Sync::process([[maybe_unused]] StatisticsPtr &stats, Metadata *imageMetadat
163163

164164
imageMetadata->get("sync.params", local);
165165

166-
/* The wallclock has already been de-jittered for us. */
167-
uint64_t wallClockFrameTimestamp = local.wallClock;
166+
/* The wallclock has already been de-jittered for us. Convert from ns into us. */
167+
uint64_t wallClockFrameTimestamp = local.wallClock / 1000;
168168

169169
/*
170170
* This is the headline frame duration in microseconds as programmed into the sensor. Strictly,

0 commit comments

Comments
 (0)