OSDN Git Service

android-x86/hardware-libcamera.git
2 years agoAdd dependency on libbinder_headers r-x86
Michael Goffioul [Wed, 1 Apr 2020 21:54:21 +0000 (17:54 -0400)]
Add dependency on libbinder_headers

4 years agoFix property hal.camera.0 has no effect issue oreo-x86 pie-x86 q-x86 android-x86-7.1-r4 android-x86-8.1-r5 android-x86-8.1-r6
Chih-Wei Huang [Tue, 5 May 2020 02:01:40 +0000 (10:01 +0800)]
Fix property hal.camera.0 has no effect issue

There is a logical error that prevents hal.camera.0 from working
if /dev/video1 exists.

Reported-by: NovHak <novhak@gmail.com>
5 years agoSearch more video device nodes android-x86-7.1-r3 android-x86-8.1-r2 android-x86-8.1-r3 android-x86-8.1-r4 android-x86-9.0-r1 android-x86-9.0-r2
Chih-Wei Huang [Fri, 22 Mar 2019 15:53:23 +0000 (23:53 +0800)]
Search more video device nodes

Since the newer kernel may create more than one device nodes for one
camera, the hardcoded device node path is not appropriate.

The patch searches all /dev/video[0-9] and configure up to 3 cameras
if possible. Besides, the facing and orientation could be configured
via the property hal.camera.[0-9].

5 years agoFix memory leaks
Chih-Wei Huang [Fri, 22 Mar 2019 07:29:19 +0000 (15:29 +0800)]
Fix memory leaks

5 years agoAvoid GNU old-style field designator extension
Chih-Wei Huang [Tue, 26 Feb 2019 10:08:29 +0000 (18:08 +0800)]
Avoid GNU old-style field designator extension

5 years agoFix implicit conversion from 'double' to 'int'
Chih-Wei Huang [Tue, 26 Feb 2019 10:01:40 +0000 (18:01 +0800)]
Fix implicit conversion from 'double' to 'int'

These parameters should be float.

5 years agoFix unused parameter errors
Chih-Wei Huang [Tue, 26 Feb 2019 09:59:11 +0000 (17:59 +0800)]
Fix unused parameter errors

5 years agoRemove unused variables
Chih-Wei Huang [Tue, 26 Feb 2019 09:58:58 +0000 (17:58 +0800)]
Remove unused variables

5 years agoFix invalid characters
Chih-Wei Huang [Tue, 26 Feb 2019 09:48:45 +0000 (17:48 +0800)]
Fix invalid characters

6 years agoIgnore invalid camera android-x86-8.1-r1
Chih-Wei Huang [Wed, 20 Jun 2018 10:04:58 +0000 (18:04 +0800)]
Ignore invalid camera

6 years agoCameraHardware: fix FPS problem
Michael Goffioul [Fri, 8 Jun 2018 20:02:21 +0000 (13:02 -0700)]
CameraHardware: fix FPS problem

The values reported by Camera.Parameters.getSupportedPreviewFpsRange()
are in actual FPS, while the API expects value to be multiplied by 1000.
This creates a problem in an app that is using Chrome/53 webview,
whereby the webcam is limited to 1fps. The patch fixes it.

7 years agoImprove log android-x86-7.1-r1 android-x86-7.1-r2
Chih-Wei Huang [Wed, 10 May 2017 05:10:08 +0000 (13:10 +0800)]
Improve log

8 years agoAdd more missing parameters for Camera2 marshmallow-x86 android-x86-6.0-r1 android-x86-6.0-r2 android-x86-6.0-r3
meijjaa [Thu, 31 Dec 2015 10:27:37 +0000 (11:27 +0100)]
Add more missing parameters for Camera2

9 years agoAdd missing parameters for Camera2 lollipop-x86
Edgardo Gho [Fri, 24 Apr 2015 08:25:40 +0000 (16:25 +0800)]
Add missing parameters for Camera2

9 years agoenable multiarch builds
Chih-Wei Huang [Thu, 6 Nov 2014 03:06:49 +0000 (11:06 +0800)]
enable multiarch builds

Convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
to support 64-bit targets.

9 years agofix building issues on Android 5.0
Chih-Wei Huang [Mon, 20 Oct 2014 10:19:43 +0000 (18:19 +0800)]
fix building issues on Android 5.0

11 years agochange hal name to avoid conflicting with Android 4.3 jb-x86 kitkat-x86 android-x86-4.4-r1 android-x86-4.4-r2 android-x86-4.4-r3
Chih-Wei Huang [Sun, 7 Jul 2013 07:26:00 +0000 (15:26 +0800)]
change hal name to avoid conflicting with Android 4.3

11 years agoCameraFactory: Fix reading camera facing parameter from cfg file
Alberto Panizzo [Sun, 7 Jul 2013 07:19:40 +0000 (09:19 +0200)]
CameraFactory: Fix reading camera facing parameter from cfg file

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
11 years agoV4L2Camera: Check that the camera accept the frame size as well not only the pixel...
Alberto Panizzo [Sat, 6 Jul 2013 16:27:43 +0000 (18:27 +0200)]
V4L2Camera: Check that the camera accept the frame size as well not only the pixel format

USB UVC cameras may support different frame size sets for
different pixel formats. So do not limitate to check that
the current format is supported and then set the frame size
but check that this frame size _with_ this pixel format works.

Real case is a camera that accepts only QCIF in YUYV but can do
VGA in MJPEG

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
11 years agoAllow to set camera orientation (not facing) from cfg file
Alberto Panizzo [Sat, 6 Jul 2013 16:23:53 +0000 (18:23 +0200)]
Allow to set camera orientation (not facing) from cfg file

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
11 years agochange LOGx to ALOGx for jb-x86
Chih-Wei Huang [Wed, 20 Feb 2013 07:46:19 +0000 (15:46 +0800)]
change LOGx to ALOGx for jb-x86

By the command: sed -i "s/\(LOG[A-Z]\)/A\1/" *.cpp

12 years agoAdd support for multiple cameras. ics-x86
Andres Rodriguez [Thu, 19 Apr 2012 15:38:00 +0000 (23:38 +0800)]
Add support for multiple cameras.

The camera layout can be specified in camera.cfg using the following format
$orientation $camerapath

Where orientation can be "front" or "back" and $camerapath is the path to the
V4L device to use as input.

12 years agoavoid hardcoding camera power file
Chih-Wei Huang [Tue, 7 Feb 2012 09:29:05 +0000 (17:29 +0800)]
avoid hardcoding camera power file

The camera power file name is read from the property camera.power_file.
If the property is not set, skip the power on/off steps.

12 years agoinitial import from WeTab ICS tree
Chih-Wei Huang [Tue, 7 Feb 2012 08:55:49 +0000 (16:55 +0800)]
initial import from WeTab ICS tree

Derived from git://github.com/rbraken/wetab-ICS-device-tree.git
by RvdB

Derived from git://github.com/nopy/android_device_toshiba_betelgeuse.git
by Nicolas Pino

With a lot of cleanup (vim mode: set expandtab ts=4 sw=4 ai; :%retab)