Working on SoftISP
Find a file
Laurent Pinchart a6799dc5b9 hal: Fix comparison of integers of different signs
The CameraHalManager::getCameraInfo() validates the camera id it
receives from the camera service, and in doing so compares it with an
unsigned integer, generating a compiler error:

src/android/camera_hal_manager.cpp:121:9: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
        if (id >= numCameras() || id < 0) {
            ~~ ^  ~~~~~~~~~~~~

Fix this by turning the id into an unsigned int, as camera ids can't be
negative. If a negative id is received from the camera service it will
be converted to a large unsigned integer that will fail the comparison
with numCameras().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
2019-08-12 15:01:30 +03:00
Documentation libcamera: add IPA proxy 2019-07-12 16:32:29 +09:00
include include: android: Add SPDX tags 2019-08-12 10:34:13 +02:00
licenses licenses: add Apache-2.0 license 2019-08-12 10:34:13 +02:00
package/gentoo/media-libs/libcamera package: gentoo: Add libcamera ebuild 2019-05-02 16:36:16 +03:00
src hal: Fix comparison of integers of different signs 2019-08-12 15:01:30 +03:00
test tests: camera-sensor: Test using invalid media bus format 2019-08-11 02:16:21 +02:00
utils libcamera: skip auto version generation when building for Chromium OS 2019-07-11 12:22:40 +09:00
.clang-format clang-format: Remove space after template 2019-02-13 13:23:32 +02:00
.gitignore git: Add .gitignore file 2018-12-14 13:23:07 +00:00
meson.build libcamera: skip auto version generation when building for Chromium OS 2019-07-11 12:22:40 +09:00
meson_options.txt android: hal: Add Camera3 HAL 2019-08-12 11:55:46 +02: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