History log of /device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a75f9321647eeed4702216ecfcadf1c184fd24fd 19-Jun-2014 Gjorgji Rosikopulos <grosik@codeaurora.org> QCamera: Do not memset the native_handle to 0

after having created with native_handle_create.
This can potentially wipe-out numFds and numInts
which will lead to an assertion check in consumer (video)

Change-Id: Ifae8808d786a8532c3182aa510cfe70d5a0bc441
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
b06c7daf0b23826b0a28f162374a2ac4f15d3f8b 17-Jun-2014 Shuzhen Wang <shuzhenw@quicinc.com> Revert "rename heap_mask -> heap_id_mask"

This reverts commit 8bc17ce276d010e95461c0cbb7901da11faa16db.
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
ed4edc9c115690ff477784caf9207b0e79dbaed0 30-Apr-2014 Mitchel Humpherys <mitchelh@codeaurora.org> rename heap_mask -> heap_id_mask

The Ion API is changing yet again. heap_mask has been renamed in Ion to
heap_id_mask. Rename ours.

Change-Id: I52d488236fc839f551fffa8db32453f618b369e0
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
f27f756ab8b614eed41e277e7c5abad37d89d534 24-Apr-2014 Sagar Gore <sgore@codeaurora.org> QCamera: Fix for AEC fluctuation in video recording.

Flag to indicate color transform to video encoder was not initialized.
Added 709 flag by default. Video frames/recorded video will be of 709.

Change-Id: I023212b0339a5b56f65e5db361a2b70d4775a471
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
683033d93e48733b87a7bdcee6861c192c332a76 19-Feb-2014 Ranjith Kagathi Ananda <ranjith@codeaurora.org> QCamera2/HAL: Adds run-time enabling of debug logs

- replaces all ALOGV, ALOGI to CDBG
- replaces all ALOGD to CDBG_HIGH
- All [KPI Perf] logs are changed to CDBG_HIGH
- adds the property "persist.camera.logs". This chooses debug
log level and this will not affect the error logs
- property is read when the HAL is initialized (target is reboot)
as well as when "adb shell dumpsys media.camera" is called
- 0: turns off CDBG and CDBG_HIGH logs
- 1: turns-on CDBG_HIGH logs
- 2: turns-on CDBG_HIGH and CDBG logs
- Default log level is set to 1, CDBG_HIGH is logged by default
- Change non-error log messages to CDBG or CDBG_HIGH.

Change-Id: I5ec546412cd67f1ed5bab08750a315d4d248cf87
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
75d7c814de1a61bcad3c84b51788b15806a90fff 01-Apr-2014 Susmitha Gummalla <vgummall@codeaurora.org> QCamera2: Add RDI secure mode support

Add RDI support for secure and non secure modes
Change-Id: I0b85904a4abaaca4d1afbda1cbd04ddf945aca4c
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
14f792f44f92db50b361bcb52a4103907c29291f 31-Oct-2013 Emilian Peev <epeevs@codeaurora.org> QCamera2: Adds memory pools for stream buffers

- This change will add the necessary functionality
for caching stream buffers in memory pools for
each stream type. The buffers will be re-used
as long as the camera client doesn't trigger
internal preview restart by updating the
use case(zsl vs. non-zsl), picture size etc.

CRs-Fixed: 571777
Change-Id: I6097662ef2206016f512a3406ce1860fce44d5ef
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
aab7a594e43df6b147de7b9eaf4e64695539acac 23-Jan-2014 Mitchel Humpherys <mitchelh@codeaurora.org> camera: decouple from Ion handle type

The underlying type of Ion user handles could be different across
various combinations of kernel and camera branches. Don't make any
assumptions about its type.

Change-Id: Ib54ee1dc07f39c18f39d8eb09a82c5c9781ee763
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
c2898733d180462de64e9ed72278502bda011807 18-Oct-2013 Ivan Evlogiev <ivanevlogiev@codeaurora.org> QCamera2: Allocate complete gralloc buffers

- Gralloc (Preview and postview) buffers need to be allocated
with size that includes stride and scanline

Change-Id: I6eb08b9f0175d57582023bc2d5680aedb893242e
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
9df8dc6eed79170f9e83d6936ac0c3183eb52699 17-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Add ZSL snapshot support

1. Fill out supported hardware level in static medatada.
2. Use BLOB stream's size as the size for ZSL stream.

Change-Id: I452ce07b53bcb030b5d36a9bdded3526c442137c
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
cef1b26b65f3717a46f44bda6e438eac635e0a16 16-Sep-2013 Mohit Setia <msetia@codeaurora.org> QCamera2 : memory leak with memory buffer allocations and deallocation

native_handle_t struct allocated not freed in deallocation is fixed.

Change-Id: I136c15470a2ccadbd5267a0d888e58eb147f5460
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
75ffc435240c613b20cf14dd6546b291a71908ee 23-Jul-2013 Guruprasad Gaonkar <ggaonk@codeaurora.org> Changes to fix bug related to buffer count.

When initalizing ISP with the buffer count, HAL needs to update
display minimum buffer count as well. So before configuring
we need to have total buffer count.

Change-Id: I9cf6c79dabf2460c376eef8de92c860dea5bc81b
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
940cc4e1a3afbf4ed668a27c8eaaead8e9b7fc2b 03-May-2013 Guruprasad Gaonkar <ggaonk@codeaurora.org> QCamera2: change logic to allow allocating stream buffers in 2 steps

Add logic to allow allocating stream buffers in 2 steps if needed to
reduce camera launch time.

Change-Id: I80b518940801256606c58b75f6bd30b1562bbc3a
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
d5e284f2d06eb34d834fbc1deaed31711f8b8db1 10-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera2: Add GRALLOC_USAGE_HW_CAMERA_WRITE usage flag

Add GRALLOC_USAGE_HW_CAMERA_WRITE flag while requesting
buffers from gralloc. This is needed for gralloc to know
which color space to use.

Change-Id: I67e7fa57f7a09a918f261849f5d3295d8351c0d6
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
d8fe6a00e6ba5ce4f5a12543957712defdc061ba 17-Apr-2013 Muhua Li <muhual@codeaurora.org> QCamera2: add configurable cache flag for ION allocation

To avoid high CPU overhead during 1080p 30FPS video encoding which
takes longer time to clean cached memory for every frame, add a
configurable cache flag when allocating ION memory. For video buffers,
if system prop "persist.camera.mem.usecache" is 0, then uncached ION
memory will be used. By default, it's using cached memory.

CRs-Fixed: 476235

Change-Id: I3ee0fee4dda980cc9e2c2f6bd220e632aa9d8770
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
5b3adc47ad3ac893faf8253b4c2852a0fdb95fca 11-Apr-2013 Emilian Peev <epeevs@codeaurora.org> QCamera2: Relaxes ION fd check

- This change will allow the ION fd value
to be equal to zero. The context in which
we execute the ION allocation can sometimes
close the STDIN stream and descriptors with
value 0 are possible and valid.

Change-Id: Ica28235392f7b1ceeb32ccaf7345b43e38a2eac8
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
a6335d5d98dde2e606af45ad2de6dba8f1fd6cc4 15-Mar-2013 Linux Build Service Account <lnxbuild@localhost> Merge "QCamera2: Adds ability to disable debug logs at build time"
7681064d6721ced1752bd5ed9108fbb51b457b37 12-Mar-2013 Linux Build Service Account <lnxbuild@localhost> Merge "QCamera2: Switch ION heaps"
77e92b071f7205f74322e3afe3d60814e7bd22ce 12-Mar-2013 Emilian Peev <epeevs@codeaurora.org> QCamera2: Adds ability to disable debug logs at build time

- This patch allows to disable all
debug logs at build time via compile
time macro.

Change-Id: I69df260edf5a5197c41ad8fa89729079e2b5e4dc
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
77c5437bf1b42906d13e21df7bd3d38d0db9f342 07-Mar-2013 Muhua Li <muhual@codeaurora.org> Camera2: fix some memory bugs found by Klocwork

Fix some bugs in HAL as pointed out by Klocwork.

Change-Id: Iac88ba8839ed511c7616e7cc5f412673c9fd1126
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
2f98adc7abe38cddd621285ce216eff52632e83d 07-Mar-2013 Emilian Peev <epeevs@codeaurora.org> QCamera2: Switch ION heaps

- 'ION_CP_MM_HEAP_ID' should be used only for
secure use cases. This patch will remove
all occurrences of this ION heap type.

Change-Id: I09637d329c2f567d22f6760a2fab169eb6dffb6e
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
55b05e005cbc77effc3f4670938bdfb0b59abba7 04-Mar-2013 Emilian Peev <epeevs@codeaurora.org> QCamera2: Releases allocated video heap memory

- 'QCameraVideoMemory' is using the base class
'allocate()' method for allocating video heap memory
but it calls 'dealloc()' instead of 'deallocate()'
when memory is released. This will leave the heap
memory buffers in place and create a memory leak
on each start-/stopRecording session.

Change-Id: I71273338a09f6a00a618fede6e15a21923131ab7
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
5b49cce1b63f9f45165c814bcbd5ae3a8e828d07 21-Jan-2013 Muhua Li <muhual@codeaurora.org> Camera2: Add comment to functions

Add function comments to follow coding style

Change-Id: I9061460d5367ae18b5c96089d2557ffe4a11ca72
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
cf16c40a22907dcb68dbde124cc03ed1aec698bd 24-Jan-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera2: Eliminate use of Genlock APIs

Genlock API's are now deprecated, therefore removing
all references to the API's and shared libraries

Change-Id: I91feada2dd37a20aff6b47f9fd40dcc9b20514f9
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
26d7636c40b82c085ab3c358ef623596ce607760 23-Jan-2013 Muhua Li <muhual@codeaurora.org> Camera2: fix raw snapshot

- change raw stream stride and scanline to take the values of stream
dimension width and height, as hardware is expecting these values.
- fix one typo that passes wrong param_type for scene_mode
- reuse data notify thread of postproc obj to send raw image data notify
to help keep track of recevied frames to return back to preview_stopped
state after raw snapshot is done.
- move cache ops before dump frame to file

Change-Id: Ief0457e0bef167fe5862c7cc310191d767dee650
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
3de90b6340b8c7dedb86a220f86bc43d372d668e 13-Jan-2013 Muhua Li <muhual@codeaurora.org> Camera2: Fix for E2E video

- Hardware configuration need stride/scanline information per planner,
because for some case, i.e., video using venus, Y and UV planner will
have different stride and scanline. So HAL need to pass the information
down to hardware
- When allocating memory, fallback memory type should also be provided,
GRALLOC_USAGE_PRIVATE_IOMMU_HEAP for gralloc and ION_IOMMU_HEAP_ID for
ion memory alloc
- Add API to pass Bundled steam IDs in parameters to reduce for loops
in hardware to check if streams are bundled
- Enable exif for jpeg encoding

Change-Id: Ic1c17eada65978154a9d99a1d9e93530416967a9
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
6ff7ab2315a70efa24b611d5365df1b0e99203d3 03-Jan-2013 Muhua Li <muhual@codeaurora.org> Camera2: E2E snapshot/video fix

- Add lock for query of CameraInfo
- Autofocus fix
- Add support for raw image capture
- Intergrate with mm-jpeg-interface

Change-Id: Iaf0187ac85d3aa328a6a77378c9df8791c38f99f
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
6a57acb5e05a61c51a01a67557a93e8c2815b280 20-Dec-2012 Shuzhen Wang <shuzhenw@codeaurora.org> Camera2: Use qcamera namespace and fix license text.

Use a namespace other than android to avoid name conflict.

Change-Id: I0d74b25ef6ca3bfc7d21399762b6f030ecb89c16
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
2e8e1a44c174ba1cdaa3571b135b0a56084152af 15-Dec-2012 Ankit Premrajka <ankitp@codeaurora.org> Camera2: Fix E2E preview

- add handling of send_command in previewStopped state
- fix double free in getBufs
- update parameters
- fix a race condition in mm-camera-stream

Change-Id: I91035a1e934fb9926277ed521464ac751a110b8a
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
c5bafeb72b56487c5a9ac91efda0c1b4c2d43607 11-Dec-2012 Muhua Li <muhual@codeaurora.org> Camera2: auto focus related changes and initDefaultParameters

- auto focus related change
- exif info
- initDefaultParameters
- Change getCapabilities and initCapabilities to static
function. We shouldn't bookkeep hardware instances
because service layer may close camera without factory
knowing about it.

Change-Id: Ic7b083d60178edcd3ae732e562d873a2bce802d5
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp
70b9a18a83c667fe749b6e1dd4b7f7188ee81f70 08-Nov-2012 Muhua Li <muhual@codeaurora.org> Camera2: This change is the squash of the following changes:

Camera2: Impl for channel, stream and state machine, getCapability
Channel is a container of one or more streams. Each stream has to
be contained in a channel. State machine handles state transition of
idle, preview, takePicture, recording, etc.
Change-Id: I1ad3176e195a426804deb7b0fb1e6d58001e81ed
Camera2: Improve implementation of QCameraMemory class.
1. Add QCameraAllocator abstract class, which QCamera2HWI
implements. The reference to the abstract class is passed
into channel/stream class so that they can allocate stream
specific stream info buffer and stream buffer.
2. After allocation of preview buffers, call cancel_buffer
on min_undequeued_buffers number of buffers.
3. Fix Typo.
4. Better name QCameraMemory classes.
Change-Id: I5d128ec1254b6c593de5234ac1778ea0ceb7bc51
HAL: add post processor
- add post processor class
- modify cam_intf.h
Change-Id: Ie09818eff7f20c2c826b43fe85564d638be36e44
Camera2: preview bringup.
- Add preview callback implementation.
- add stream_info_sync call flow in config stream.
- change mm-camera-interface header to expose offset to HAL.
- Implement frame offset calculation in mm-camera-interface.
- Fix QCameraMemory and its derived classes to handle mNumBuffers.
- Add all supported RAW formats supported by the ISP.
Change-Id: Ia4b435809240d01915e40406d6ff683c089e960a
HAL: enhance reprocess impl
- enahnce reprocess impl.
- fix a bug in mm_camera when lock is not released when
mapping/unmapping buf.
- fix a bug in test app when memset is called after value is set.
Change-Id: I22f0db99d8d7a83aa33e9f52b6400562b039ff3c

Change-Id: I7db22ba490e3e2426341db00ea90abea1501beb5
/device/moto/shamu/camera/QCamera2/HAL/QCameraMem.cpp