History log of /device/huawei/angler/camera/QCamera2/HAL3/QCamera3Channel.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
141074b6e800c04368736c6223986ace644807ff 22-Jun-2017 Shuzhen Wang <shuzhenwang@google.com> QCamera2: HAL3: Unmap reprocess input buffers early

Currently reprocess input buffers are unmapped upon JPEG encode
completion. This is problematic because after HAL returns input buffer
after CPP processing, it doesn't own the buffer any more.

The sequence of events leading to the issue:
1) Reprocess request 1 enters, input buffer FD is N
2) HAL caches the input buffer
3) CPP runs on input buffer, returns buffer to framework.
Cache entry remains. JPEG encoding starts
4) Framework frees buffer; FD N is now reusable
5) Reprocess request 2 enters, new buffer also gets FD N
6) HAL finds buffer in cache
7) CPP tries to run, but uses stale cache entry, crashes
8) (if no crash) JPEG encoding completes, cache cleaned up

Bug: 62721870
Test: Camera CTS
Change-Id: I22a06fad9ead03af917e547a9ee4d49d8db2e2d0
/device/huawei/angler/camera/QCamera2/HAL3/QCamera3Channel.cpp
22307c00110918964c901c7f559d3407f6e63d9e 26-Apr-2017 Emilian Peev <epeev@google.com> QCamera3: Try to recover from offline reprocess failures

Offline reprocessing failures should return appropriate status
to camera service otherwise the request will not complete and
camera will go in a bad state.

Bug: 37559776
Test: Complete Camera/Camera2 CTS
Change-Id: Ifbc59f05836a9cab2c80dd7865555478c96888f5
/device/huawei/angler/camera/QCamera2/HAL3/QCamera3Channel.cpp
7bc472a4db6cdb5faa159c886a2a91e54b3c48b3 06-May-2016 Gaoxiang Chen <gaochen@qti.qualcomm.com> QCamera2: HAL3: fix CTS testDynamicBlackWhiteLevel

Fix CTS issue: testDynamicBlackWhiteLevel.

Bug: 27224930
Change-Id: Ibe529d10f95c7ab48389eab59f7d2cf13383068f
/device/huawei/angler/camera/QCamera2/HAL3/QCamera3Channel.cpp
3f32354d646d971939986d4e3b789db059d60a64 08-Mar-2016 Shuzhen Wang <shuzhenwang@google.com> QCamera2: HAL3: Remove unhelpful error message

Bug: 27074407
Change-Id: I2a29fdffc477afa97893a9cc64d6ce984468727d
/device/huawei/angler/camera/QCamera2/HAL3/QCamera3Channel.cpp
a1c8eae6b44a1ae2f0214fee6201b34cba0161b9 29-Feb-2016 Ed Tam <etam@google.com> Migrate hardware/qcom/camera to device/huawei/angler/camera

300b5fd QCamera2: HAL3: Enable realtime time stamp
318a6ed mm_camera: Retry opening camera for ENODEV error am: 4cca666914 am: 5d1ee9e99c
5d1ee9e mm_camera: Retry opening camera for ENODEV error am: 4cca666914
4cca666 mm_camera: Retry opening camera for ENODEV error
8583485 QCamera2: HAL3: replace abort with exit am: eeeffc0d6b am: 1cd2b06ca0
1cd2b06 QCamera2: HAL3: replace abort with exit am: eeeffc0d6b
eeeffc0 QCamera2: HAL3: replace abort with exit
bfd70a8 QCamera2: HAL3: Restart daemon and mediaserver when buffer is lost. am: ecc5ece9ef am: fc3f16d449
fc3f16d QCamera2: HAL3: Restart daemon and mediaserver when buffer is lost. am: ecc5ece9ef
ecc5ece QCamera2: HAL3: Restart daemon and mediaserver when buffer is lost.
fa73947 Disable clang compiler to unblock angler system build.
04b65a2 Camera3: add dynamic whilte level support
34cca27 Camera3: add dynamic black level support
dc3db11 Workaround for adp8064
3e0b0ac am bac3bdfb: am 2b922024: Merge "QCamera3: Fail unsupported stream configurations" into mnc-dr-dev
bac3bdf am 2b922024: Merge "QCamera3: Fail unsupported stream configurations" into mnc-dr-dev
2b92202 Merge "QCamera3: Fail unsupported stream configurations" into mnc-dr-dev
01a698d am f90265de: am 27d6d35f: QCamera2/HAL3: Read v4l2_buffer error and notify accordingly
f90265d am 27d6d35f: QCamera2/HAL3: Read v4l2_buffer error and notify accordingly
0fe6077 QCamera3: Fail unsupported stream configurations
27d6d35 QCamera2/HAL3: Read v4l2_buffer error and notify accordingly
e7f64bd am 488104b2: am 3fdd6065: QCamera2/HAL3: Recover offline metabuffers on flush
488104b am 3fdd6065: QCamera2/HAL3: Recover offline metabuffers on flush
3fdd606 QCamera2/HAL3: Recover offline metabuffers on flush
43fa335 am 6bb7fcd7: am 1bf1f3c7: Camera3: Send reprocess shutter notify and input buf after pproc
3487b72 am 65858bf0: am a7586e9c: Camera3: Do not allow dropped metadata
6bb7fcd am 1bf1f3c7: Camera3: Send reprocess shutter notify and input buf after pproc
65858bf am a7586e9c: Camera3: Do not allow dropped metadata
638509e am f563e374: am ab2f8e4b: Adding libgoog processing for raw images.
f563e37 am ab2f8e4b: Adding libgoog processing for raw images.
1bf1f3c Camera3: Send reprocess shutter notify and input buf after pproc
a7586e9 Camera3: Do not allow dropped metadata
ab2f8e4 Adding libgoog processing for raw images.
60261d3 am db284b8e: am 915a9902: Merge "Camera3: Proper cleanup in putStreamBufs for YUV channel" into mnc-dr-dev
288c014 am 096ba72a: am 40db3c9e: Merge "Camera3: Unmap buffers after stop reprocess stream" into mnc-dr-dev
7561e37 am d98d10a7: am 73640de4: Camera3: Add support for dynamic EIS ON/OFF
db284b8 am 915a9902: Merge "Camera3: Proper cleanup in putStreamBufs for YUV channel" into mnc-dr-dev
096ba72 am 40db3c9e: Merge "Camera3: Unmap buffers after stop reprocess stream" into mnc-dr-dev
d98d10a am 73640de4: Camera3: Add support for dynamic EIS ON/OFF
915a990 Merge "Camera3: Proper cleanup in putStreamBufs for YUV channel" into mnc-dr-dev
40db3c9 Merge "Camera3: Unmap buffers after stop reprocess stream" into mnc-dr-dev
73640de Camera3: Add support for dynamic EIS ON/OFF
a7c2b42 Camera3: Proper cleanup in putStreamBufs for YUV channel
9b1814d Camera3: Unmap buffers after stop reprocess stream
1e586e2 am aa0d1cb2: am e7c8e5de: Camera3: Decrease max_buffers hint for ISP for 4K recording
bb91b3c am 626c2221: am d2e378de: Camera3: disable the image description exif field
e40240e am 7bc704bf: am 248c5928: Camera3: Adding checks for stream handle
aa0d1cb am e7c8e5de: Camera3: Decrease max_buffers hint for ISP for 4K recording
e7c8e5d Camera3: Decrease max_buffers hint for ISP for 4K recording
626c222 am d2e378de: Camera3: disable the image description exif field

Change-Id: I9ab459884c89c7642983b98e579d95f50b52b492
Signed-off-by: Ed Tam <etam@google.com>
/device/huawei/angler/camera/QCamera2/HAL3/QCamera3Channel.cpp