31 Commits

Author SHA1 Message Date
Wu-cheng Li
a474856497 Remove antibanding because driver does not support them. 2009-07-31 13:28:46 +08:00
Chih-Chung Chang
ca745bed48 Fix 2026448: Missing jpeg-quality parameter in donut. 2009-07-31 11:29:38 +08:00
Wu-cheng Li
df37da0ff8 Correct the spelling of posterize. 2009-07-23 16:58:34 +08:00
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