Working on SoftISP
Find a file
Kieran Bingham 5651334119 libcamera: timer: Fix 32 bit wrap
The msec parameter was multiplied as a 32 bit value when converting to
nanosecond resolution. This wraps at 4.2949 seconds, and causes timers
longer than this to fail.

Fix the multiplication to upcast to 64 bit using an unsigned long long
specifier on the multiplier.

While we're here, initialise the two integer class members in the
constructor initialiser list.

Fixes: 1a57bcb8d1 ("libcamera: Add event notification infrastructure")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2019-01-17 21:31:33 +00:00
Documentation Documentation: coding_style: Allow C++11 variadic templates 2019-01-16 18:24:27 +02:00
include include: linux: Import V4L2 uAPI headers from Linux v4.19 2019-01-17 16:37:03 +02:00
licenses licenses: Add the Developer CoO 2019-01-02 21:59:46 +02:00
src libcamera: timer: Fix 32 bit wrap 2019-01-17 21:31:33 +00:00
test test: timer: Add a 32 bit wraparound test 2019-01-17 21:31:33 +00:00
utils utils: checkstyle: add keep-one-line-blocks 2018-12-21 15:18:32 +00:00
.gitignore git: Add .gitignore file 2018-12-14 13:23:07 +00:00
meson.build meson: Utilise default compiler options 2019-01-15 21:14:35 +00:00
README.md README: Update build instructions 2018-11-26 15:52:21 +00:00

libcamera: A complex camera support library for Linux, Android, and ChromeOS

To build and install:

  meson build
  cd build
  ninja
  ninja install