History log of /device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ff3faea86c4fa6a4ff266533783e98c5bfe40104 16-Sep-2014 Mansoor Aftab <maftab@codeaurora.org> Camera3: Fix invalid file description check

0 is a valid file descriptor. Fix the code for checking
valid file descriptor.

Change-Id: I65b206254eb63d888049b6daf650204b13afa444
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
b934a2b7256843915938ce3fe97bac096ecb815b 22-Apr-2014 Ivan Evlogiev <ivanevlogiev@codeaurora.org> QCamera2: Fix random wrong input for bracketing

- Set expected frame id to a future frame idx, large enough to
wait in bracketing cases when current frame metadata doesn't
contain information about next valid frame

Change-Id: I33181601f42e94766bdb171bf0245a98df9de2ad
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
ac60ceb3d854453ef06da396db70569c0c370d43 26-Apr-2014 Emilian Peev <epeevs@codeaurora.org> QCamera2: Fix a typo

The camera channel flash field is assigned instead
of getting compared.

Change-Id: I00735d4a5ebed21d2ddb25e31275f50ce15b697a
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
58c3effc262009fe2083249045cb652d609692ba 03-Apr-2014 Ranjith Kagathi Ananda <ranjith@codeaurora.org> Camera: Replace metadata buffer with a structure of structures

The earlier array of union of metadata structures required huge memory
due to some of the union members being large. This change replaces
such array with a super structure of metadata structures

Change-Id: Ie8681b1751e1074b22cfaa5bc678ba5cf9aef1d4
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
e12352052326b53bd0afa20158c29cd82a5a68ac 24-Apr-2014 Linux Build Service Account <lnxbuild@localhost> Merge "QCamera2: Fix metadata searching"
35806e6971febb15b09fb9e3f9db362a72777371 21-Apr-2014 Ivan Evlogiev <ivanevlogiev@codeaurora.org> QCamera2: Fix flash bracketing capture hang

- Flash bracketing flag needs to be cleared after nonLED frame is received
- Retro ZSL burst LED logic need to be disabled if flash bracketing is on

Change-Id: Id80425208b1d42a6af9febe8cf4dccf6c48ec749
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
39365bceb742d464c0a86add8bb6785cb49a95e1 19-Apr-2014 Ivan Evlogiev <ivanevlogiev@codeaurora.org> QCamera2: Fix metadata searching

- Initialize entire good_frame_idx_range structure
- All requested metadata entries need to be searched. Break is not
needed on the first found entry

Change-Id: I68c291cbbd0bde5ebdc56c1471c16064809d014b
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
2b39994fac5fe6e2999ec7fb8b5bf14c1fe4313e 17-Apr-2014 Linux Build Service Account <lnxbuild@localhost> Merge "QCamera2: Take pictures without zoom for optizoom input"
5049800bd357f6f9599e75af692d278e3ac20207 16-Apr-2014 Linux Build Service Account <lnxbuild@localhost> Merge "QCamera2: Klocwork issues clean up"
7ad7168522ea35ee5505000ea3a4f5b4e77e0206 15-Apr-2014 Ivan Evlogiev <ivanevlogiev@codeaurora.org> QCamera2: Take pictures without zoom for optizoom input

- Skip zsl buffers until metadata reports that zoom is set to 1x

Change-Id: Ibd316280e96dea3db78d83de935f58181299c61b
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
919946dff116866d6d53aab0f1543c356f4a36d2 08-Apr-2014 Susmitha Gummalla <vgummall@codeaurora.org> Add support for Burst mode flash feature

Burst Mode flash feature for retro active frames
FR 18412: Flash support in ZSL burst mode
FR 19823: Access to Zero Shutter Lag (ZSL) buffer
CRs-fixed: 644775

Change-Id: Ie02be00de4fa2f4b2b3e75f50219e464644a4446
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
e4b5570cd2e0b09b90b54e63836a3cc36292d2d6 10-Mar-2014 Dimitar Borisov <dboris@codeaurora.org> QCamera2: Klocwork issues clean up

-Klocwork issues clean up.

CRs-Fixed: 630236
Change-Id: I114457a9fb66570643bb3e9141a6817b1b630735
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
9b5ae13f52eb6f310f497c5b1b08f0f8f14d03ba 04-Apr-2014 Linux Build Service Account <lnxbuild@localhost> Merge "QCamera2: Fix port issues for Add support for AOST features."
69d949c40f667ab3ce0f4b486a4cf1bffedff0f4 02-Apr-2014 Linux Build Service Account <lnxbuild@localhost> Merge "QCamera2: Fix metada data buf leak for error handling"
06f3bf6ae823b3c6309d9ff4abbff8eaa81c8264 08-Nov-2013 Ajit Singh Solanki <ajits@codeaurora.org> QCamera2: Fix port issues for Add support for AOST features.

- Use same code as kk-3.5 for
Changes to support ubifocus, chromaflash & optizoom

(original change Id: I79f5110012237120e5c99fa23818507367ccf3d8)

Change-Id: I5147fed528965b4443ccf6b0e79dd278c9b45bce
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
72896feef945d21a10ea338917cced184e9296d6 27-Mar-2014 Ivan Evlogiev <ivanevlogiev@codeaurora.org> QCamera2: Fix metada data buf leak for error handling

- Metadata buffer need to be queued back in case handle
metadata returns an error

Change-Id: Icc59a37615c2591a3db014d63fe581aa69056f05
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
cc41f7496e2fb2226da2cf642c64309f85a61c50 13-Mar-2014 Emilian Peev <epeevs@codeaurora.org> QCamera2: Add support for flash during longshot

If longshot is used a custom new parameter is
propagated to backend. Apart from this zsl
snapshot is enabled during longshot sequence
when burst is done in ZSL mode.

CRs-Fixed: 608017
Change-Id: I3945fc1dbfcabad80bdd60455609be42d29c19cc
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
05ea762c548adf22b1ac4cb766b03113bc2be840 20-Nov-2013 Emilian Peev <epeevs@codeaurora.org> QCamera2: Adds support for offline reprocessing

- Offline reprocessing is used for regular
capture. During this processing the capture
channel can be stopped and deleted on backend
side.
- Adds internal preview restart custom parameter

CRs-Fixed: 571775
Change-Id: I711b2648fe9c9c8ee5b09d555fcd6545215cce41
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
be5a6eed2155fcfcdf8bb1c22eb928201690723d 17-Dec-2013 Emilian Peev <epeevs@codeaurora.org> QCamera2: Fixes incorrect channel start error handling

- If the channel start fails for some reason
the command&callback thread are not released
as well as the queue used for bundling. This
leads not only to resource leaks but also
to possible deadlocks afterwards when the
channel objects are re-used.

Change-Id: I0666fda25ff76fc50cb27ffc834a279b3e5f2251
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
76e02c50e52e8dcefe538fd3ffb8f31b9358bb28 08-Nov-2013 Ajit Singh Solanki <ajits@codeaurora.org> QCamera2: Add support for AOST features.

changes to support ubifocus, chromaflash & optizoom

Change-Id: Ie93a12414bb9047b3e88e5fc7582705f54469d92
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
a9846db9616208f1a1a99dd4d75f9e824c715dc1 12-Nov-2013 Tanmaya Godbole <tgodbole@codeaurora.org> QCamera: Fixes for Snaphshot

Remove the check for whether metadata is valid.
This check does not apply to HAL 1.0

Change-Id: I33f91d237b8c18e84a7869ec92917c9695441706
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
fa5b9081898b92a6774872c8ecf0e4b3979c7297 29-Oct-2013 Tanmaya Godbole <tgodbole@codeaurora.org> Metadata structure changes

Consolidate all the metadata information for HAL1 and HAL3 into
a single structure.

Change-Id: Ibd8eba853c8e53e9b1198c69a991fbed02feaff2
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
d6b8ec68388356464fc16557f793192dc0a5777e 06-Sep-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Name HAL threads

Name the HAL threads to make debugging easier

Bug: 10609699
Change-Id: Ifd8e448c101f346cdbad7a8229d657a4cbf0d7c0
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
15bac52205a1aed31f90f4706f60abc9ccdb14e5 13-Aug-2013 Suresh Vankadara <svankada@codeaurora.org> QCamera2: Add support to meta valid flag

Based on this flag HAL process the meta data
to avoid mismatch of frames and meta data.

Change-Id: I390fc0d039820f217a14b0a2672f6a033e2c0a31
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
888a9fe0b0a4d975dc0d8204c0f836194c09c9e0 24-May-2013 Muhua Li <muhual@codeaurora.org> QCamera2: call stop_zsl_snapshot after all frames sent to HAL

Move the logic to start/stop zsl snapshot into mm-camera-interface,
after all requested frames are sent to HAL, mm-camera-interface will
issue stop_zsl_snapshot to backend to reduce delay.

Change-Id: I57d3357921c9840d96e025d6938ce6cef0ffa2a1
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
48a039e9e81767eda9f95e36363df0b1ed59ea62 05-Apr-2013 Emilian Peev <epeevs@codeaurora.org> QCamera2: Adds API for setting notify mode dynamically

- The channel notify mode is currently only configurable
during initialization. This patch adds API for setting
it on-the-fly.

Change-Id: Ie1c0d8f40fe1ceec699377aef1f2fc35737a920e
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
2bee0d2c0906aab180d929c197bda2a484ba1e24 11-Mar-2013 Muhua Li <muhual@codeaurora.org> Camera2: change logic to calc num of buffers needed per stream

change logic to calculation number of buffers needed per stream
so that it can meet reprocess need as well as not allocating too
much buffers.

CRs-Fixed: 460212

Change-Id: I8df81bf2b16b64c6ba148d8d6c28e335453e6cb3
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
e13fe59aed8f0e2becea84beb1f0f6bf28d8ee78 06-Mar-2013 Emilian Peev <epeevs@codeaurora.org> QCamera2: Modify buffer bundle logic

- A corner case is possible where the first buffer
arriving after streaming is enabled carries a
frame index that is invalid and possibly larger,
than the buffers that follow. This patch will
modify the bundling logic in such way that we
can handle this case by allowing the initial
buffer to get pushed back in the queue by
buffers that arrive later.

Change-Id: Iad3b2953aae4f1797bc9c5e4418d18b85dba2ac2
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
0a63e1f47eec0f3de7d72c59991cdde12a7d246e 01-Mar-2013 Emilian Peev <epeevs@codeaurora.org> QCamera2: Changes bundle matching logic

- Currently the mechanism for matching bundled
frames is relying on the fact that all frames
with matching frame ids will come synchronously.
This may not always be the case. This patch will
keep a limited amount of unmatched bundled frames
in the queue and allow matching of frames with
older ids.

Change-Id: Ic6ee9991b224185e94fa195fdedf6d153fd5ec5f
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
93887f485109893b9a612ca21b737e5c81362c5a 21-Feb-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera2: Enable LED in ZSL

If LED Flash needs to be fired for ZSL capture, prepareSnapshot
needs to be called for AEC estimation with Flash on to take place.
Add a new state in the state machine to handle this case.

Change-Id: I5882e568cb2bf84b9a4944023a9927e8ff3063cb
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
b833664a9464f741d9f6a98059c163e43535b8b9 05-Feb-2013 Muhua Li <muhual@codeaurora.org> Camera2: Enable Face Authentication

- Add API in HWI to register face image
- Add offline reprocess channel to register face image
- Add CAM_FORMAT_JPEG into image format, needed for offline
reprocess as input format
- Move crop info into metadata, and hence change ZoomDone
handling in metadata stream CB instead of in event handling

Change-Id: I99ed3efc013c85b9041f3de91099390bee09d245
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
de4db398090f2fdd29e435ad5160114052695ff3 26-Jan-2013 Muhua Li <muhual@codeaurora.org> Camera2: enable metadata stream

- Change stats type definition to include bayer/yuv stats.
- Enable metadata stream.

Change-Id: I930b562744121971247258d32dcdafda031251b9
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
205b6ac45d9bc4f7bb342f2a4329253ee7ff9afc 01-Feb-2013 Muhua Li <muhual@codeaurora.org> Camera2: snapshot and ZSL burst fix

- move HDR from AE bracketing setting because HDR is now one of
the scene modes
- remove bundle_id in stream_info data struct. There is a seperate
setParam to inform backend about the bundle information.
- change setNumOfSnapshot logic, to take into account both burst
mode and AE brancketing
- add flush_super_buf_queue API in mm-camera-interface in case of LED ZSL
or HDR, need to flush existing superbufs in queue in order to obtain
new frames after new setting take effect
- remove some log

Change-Id: I7b65a8f69737c1b240b4338368c64b2f5eb9466d
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
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/stack/mm-camera-interface/src/mm_camera_channel.c
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/stack/mm-camera-interface/src/mm_camera_channel.c
caa40ca90569900a549e51d669fc82b1982233ce 20-Dec-2012 Shuzhen Wang <shuzhenw@codeaurora.org> Camera2: Implement semaphore with mutex and condition.

POSIX semaphore is not used or well tested on Android.
Implement it using mutex and conditional variable instead.

Change-Id: I480aa69a682821674aa95ff58f40a3b90a8714bc
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
9376681fc1c945a9789cab5bbd0b3badbb7165de 26-Nov-2012 Muhua Li <muhual@codeaurora.org> QCamera2: This change contains following changes.

1. Add meta data stream to support histogram and face detection.
2. Run fromdos on all source files.
3. Add double padding capability in frame offset calculation.
4. change cam_intf.h to pass plane info to server.
5. change mm-camera-interface for data struct change in mapping
unmapping via domain socket.
6. add QCameraExif class to wrap HAL exif info.
7. seperate common data structs and types from cam_intf.h
into a new file cam_types.h to be shared by all modules.
8. Code cleanup
fix copyright marking, remove unnecessary ALOE,
comment out jpeg_open, use assignment instead of memcpy
9. QCameraParameters implementation
10. clean up parameter struct in cam_intf.h
11. merge impl in SockParm into QCameraParameters
12. Add bayer pattern in the bayer raw formats.

Change-Id: I30e804433139215cbcfea1f55c3aad8e79435208
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c
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/stack/mm-camera-interface/src/mm_camera_channel.c
40f2a8d5488cb10a1a6f30e20f1acb6eee372da0 09-Nov-2012 Mansoor Aftab <maftab@codeaurora.org> Camera2: Initial HAL & mm-camera-interface implementation for badger

Squash for following Gerrits/Patchsets:

167805/12
176514/6
176526/13
179071/8
179562/9
180420/1
174014/7

Change-Id: I52a638cea5cd8fa6ddd5ee132f20f9c46b7ba382
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c