60 Commits

Author SHA1 Message Date
Wu-cheng Li
a21ec0f3d3 Make sure shutter callback is called before raw callback. 2009-07-21 15:16:33 +08:00
Wu-cheng Li
3e4574a187 Remove unsupported white balance and effect options. 2009-07-20 18:26:19 +08:00
Wu-cheng Li
bcb33e4db8 1. Remove the zoom and brightness.
2. Set default value of antibanding, effect, and white-balance at initialization.
3. Do not set the parameter if it is not found.
2009-07-17 16:25:16 +08:00
Chih-Chung Chang
bb05604b8d Fix 1956740: startPreview failed
The problem is even after release() is done, the singleton
variable is not cleared, so a new openCameraHardware()
call could return an instance which is already released.

The singleton variable is cleared in the destructor, so
we wait until that happens in openCameraHardware().
2009-07-13 19:50:11 +08:00
James Dong
dbdbc0d26c The antibanding (60Hz) broke the bar code scanner.
bug 1962986
2009-07-10 17:24:24 -07:00
Dave Sparks
12b41c417f Add timestamps to video frames to improve A/V sync.
Bug 1927069.
2009-07-08 15:58:41 -07:00
Wu-cheng Li
04b2c40f3c Change the timing of shutter callback. 2009-07-03 16:33:45 +08:00
Iliyan Malchev
ad48d0f080 libcamera: set antibanding to 60Hz, use cropping information on snapshot
-- Set the antibanding to 60Hz for the US (Should be 50Hz for the
   rest of the world.)
-- Save the cropping info returned when taking a picture and then
   pass it to the JPEG encoder.  This enables digital zoom for JPEG
   images (cropping and upsampling).

Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-06-30 16:10:20 -07:00
Iliyan Malchev
3c05a4483c libcamera: dlopen() libqcamera in the AF thread
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-06-29 13:09:24 -07:00
Wu-cheng Li
9db8a0fc26 Add preview size 384x288. 2009-06-25 19:56:47 +08:00
Iliyan Malchev
3ba00f29ba libcamera fixes
-- general cleanup: made a bunch of functions static to
   QualcommCameraHardware.cpp, not class members; got rid of unnecessary
   private member variables.  The only functions that remain as members
   are native_set_dimension() and native_jpeg_encode()
-- removed kRawFrameHeaderSize; aDSP frame offsets are zero now;
-- simplify reg_unreg_buf
-- Removed PreviewPmemPool and RawPmemPool, which do not need to be
   specialized on top of PmemPool.  We use PmemPool instead.
-- use PmemPool to both create pmem pools and register them with the driver
-- takePicture runs in a separate thread
-- the destructor keeps a singleton lock
-- PmemPool calls dup() on the camera-control file descriptor to guard against
   release() calling close() on it before PmemPool has a chance to deregister
   pmem from the camera driver.
-- got rid of hal_mmap() and hal_munmap() entirely and created a PmemHeap to
   manage thumbnails.
-- removed support for CAPTURE_RAW.  The CameraService can already do this.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-06-23 19:10:08 -07:00
Wu-cheng Li
321cfafbf5 Add location to exif. 2009-06-22 17:04:45 +08:00
Wu-cheng Li
2c2e8580d6 Add picture size values and fix effect values. 2009-06-17 19:03:42 +08:00
Wu-cheng Li
e610e2518d Get the values returned from CAMERA_GET_PARM_ZOOM correctly. 2009-06-16 19:46:34 +08:00
Chih-Chung Chang
105a7f6c76 Enable more debug message to debug the Camera startPreview bug. 2009-06-16 17:15:48 +08:00
Iliyan Malchev
9e7909b439 libcamera2: update to match new libqcamera.so
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-06-15 15:22:17 -07:00
Chih-Chung Chang
4f48dacada Add set rotation function. 2009-06-15 17:00:23 +08:00
Chih-Chung Chang
93cde78899 Accept parameter "jpeg-thumbnail-quality" to specify thumbnail quality. 2009-06-15 15:32:20 +08:00
Wu-cheng Li
2e8a9ddd4c Cancel autofocus in stopPreview. 2009-06-12 21:57:55 +08:00
James Dong
c11ce4c954 Fix deadlock in camera hal when auto focus failed 2009-06-10 19:59:25 -07:00
Iliyan Malchev
32b7f2804e libcamera: avoid a race condition on starting and stopping a recording
precondition: preview is running
-- call startRecording()
-- a preview frame arrives, causing the record callback to be called, and then
   blocks on mRecordWait.wait()
-- call stopRecording(), which sets mReleasedRecordingFrame and signals
   mRecordWait;
-- call startRecording(), which clears mReleasedRecordingFrame;
-- receivePreviewFrame() wakes up, checks mReleasedRecordingFrame, and
   blocks again on mRecordWait.wait(), without having notified the client.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-06-10 18:40:32 -07:00
Iliyan Malchev
ed604c67ee libcamera: default brightness to 5 when not specified by camera
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-06-10 18:33:50 -07:00
Iliyan Malchev
f5e21dce16 remove floats from libcamera2
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-06-10 16:46:51 -07:00
Iliyan Malchev
59b25b06c8 libcamera2: update the frame offset after we call the recording callback
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-06-10 15:32:57 -07:00
James Dong
366cd7e1e3 Restore the support for SQVGA (bug 1901755) 2009-06-05 17:59:32 -07:00
Iliyan Malchev
88dbb2fc3f disable libcamera and enable libcamera2
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-06-04 16:22:56 -07:00
Iliyan Malchev
0a1f577673 Update reflects changes in type names in msm_camera.h.
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-06-04 13:36:10 -07:00
Iliyan Malchev
5b08cc9343 Add new implementation of libcamera (as libcamera2) (disabled)
libcamera2 uses code under vendor/qcom/proprietary/mm-camera, which is the
(Qualcomm proprietary) user-space component of the new camera framework.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-05-26 16:45:50 -07:00
Eric Laurent
99637cc77c Fix issue 1846343 - part 1
This change is the first part of a fix for issue 1846343, :
- Added new enum values for input sources in AudioRecord and MediaRecorder for voice uplink, downlink and uplink+downlink sources.
- renamed streamType to inputSource in all native functions handling audio record.

A second change is required in opencore author driver and android audio input to completely fix the issue.
2009-05-25 00:06:07 -07:00
Dave Sparks
320ac6ec5a Remove deprecated openInputStream factory method 2009-05-19 18:57:42 -07:00
Dave Sparks
d091bce7c1 Modify openInputStream function to add inputSource type
Continuation of bug 1846343
2009-05-19 14:37:08 -07:00
Wu-cheng Li
2d4298783a Add high ISO setting.
modified:   libcamera/QualcommCameraHardware.cpp
	modified:   libcamera/camera_ifc.h

b1815094
2009-04-28 00:52:09 +08:00
Iliyan Malchev
e15b9f94b5 remove yuv420sp2rgb from hardware/msm7k
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-04-23 13:46:40 -07:00
Jean-Baptiste Queru
905b6f858d merge cupcake into donut 2009-04-22 17:56:59 -07:00
Wu-cheng Li
667988af9c Change the severity of debug messages.
modified:   QualcommCameraHardware.cpp
2009-04-22 16:27:04 +08:00
Wu-cheng Li
d50a4671a7 Disable debug messages.
http://b/1786334
2009-04-21 17:04:04 +08:00
Ray Chen
a9c06e35b2 Add brightness control and adjust brightness formula for better effect. 2009-04-16 12:40:31 +08:00
Wu-cheng Li
a5e4e9b955 AI 145679: Add picture size settings.
BUG=1761248

Automated import of CL 145679
2009-04-09 23:46:14 -07:00
Wu-cheng Li
ea1911c38a AI 144213: Initial implementation of effect settings.
BUG=1753515

Automated import of CL 144213
2009-04-02 02:38:09 -07:00
Wu-cheng Li
85f77fe0fa AI 144187: Initial implementation of manual white-balance setting.
BUG=1742461

Automated import of CL 144187
2009-04-02 01:39:36 -07:00
Mathias Agopian
800452873e AI 143161: am: CL 142857 Add some bluring to the animation. This requires a new kernel which will be checked-in later, at which point the blur effect will automatically be enabled.
Original author: mathias
  Merged from: //branches/cupcake/...

Automated import of CL 143161
2009-03-27 15:40:04 -07:00
Wu-cheng Li
c4989dc74f AI 143154: am: CL 142838 Fix that the colors of preview and captured images are different.
After testing, setting auto-focus (AF) and white-balance (WB) change
  the color.
  AF will be enabled during AF start (camera_af_start()). There is no
  need to enable autofocus in setParameters. So, it is removed.
  WB is "AUTO" by default. If WB setting is unchanged, do not set it
  again.
  Original author: wuchengli
  Merged from: //branches/cupcake/...

Automated import of CL 143154
2009-03-27 15:16:26 -07:00
Mathias Agopian
76c233c0a8 Automated import from //branches/cupcake/...@142857,142857 2009-03-25 21:43:45 -07:00
Wu-cheng Li
d69d9ec304 Automated import from //branches/cupcake/...@142838,142838 2009-03-25 19:27:41 -07:00
Joe Onorato
df9d04690c Automated import from //branches/donutburger/...@142828,142828 2009-03-25 18:22:18 -07:00
Joe Onorato
f1d217583e Automated import from //branches/cupcake/...@142827,142827 2009-03-25 18:19:11 -07:00
Iliyan Malchev
7a78677677 Automated import from //branches/donutburger/...@142425,142425 2009-03-24 22:41:38 -07:00
Iliyan Malchev
4d1aca918c Automated import from //branches/donutburger/...@142268,142268 2009-03-24 22:19:38 -07:00
Eric Laurent
fa8f6a0733 Automated import from //branches/donutburger/...@141204,141204 2009-03-24 19:49:29 -07:00
Iliyan Malchev
b3c5336084 Automated import from //branches/cupcake/...@142424,142424 2009-03-24 19:40:56 -07:00