OSDN Git Service

Camera2: On stopping preview, wait until captures are completed.
authorEino-Ville Talvala <etalvala@google.com>
Fri, 5 Oct 2012 19:03:10 +0000 (12:03 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Mon, 8 Oct 2012 05:06:15 +0000 (22:06 -0700)
commite049384cdd0f728c45955d65cae754c46aac18cf
treef88834b61cb119a10285a5324e772ccf6fca7f58
parent2b5232dd49d006a08c35ba865a6801acdb15483c
Camera2: On stopping preview, wait until captures are completed.

If preview is stopped while a still capture or a video snapshot is
underway, wait until the capture completes before stopping preview.

Also use the same behavior for disconnect - do not shut down the
camera device until captures are complete.

This works around HAL implementations which report to be done
(get_in_progress_count returns 0) even when a capture is still
outstanding.

Bug: 7276954

Change-Id: I66290acf1740cc330eadecbcded0c59fa9c5d2fd
services/camera/libcameraservice/Camera2Client.cpp
services/camera/libcameraservice/camera2/CaptureSequencer.cpp
services/camera/libcameraservice/camera2/CaptureSequencer.h
services/camera/libcameraservice/camera2/JpegProcessor.cpp