OSDN Git Service

Send a warmup burst to the camera before attaching the preview.
authorPaul Rohde <codelogic@google.com>
Tue, 14 Apr 2015 23:54:18 +0000 (16:54 -0700)
committerPaul Rohde <codelogic@google.com>
Wed, 15 Apr 2015 16:09:48 +0000 (09:09 -0700)
commit5f1f618eb3df6b9a2f8554e97e8410467b642653
treeded5e1dc24fcbc8ae902688a1ac4027e789c48fe
parent417e1941bdb3738c0037032adfbc015ccc395064
Send a warmup burst to the camera before attaching the preview.

This reduces startup jank by submitting a warmup burst of n
frames to the camera before the preview surface is attached to
the camera. This ensures the large internal buffers are
allocated by the HAL before the preview stream is attached. The
change will delay the preview by n frames in exchange for a
smoother preview once the preview is actually shown.

Bug: 19076469

Change-Id: I5abb8b49a64c35686c014001a45239f4eccfe34d
src/com/android/camera/one/v2/SimpleOneCameraFactory.java
src/com/android/camera/one/v2/ZslOneCameraFactory.java
src/com/android/camera/one/v2/commands/BasicPreviewCommandFactory.java [moved from src/com/android/camera/one/v2/commands/zsl/BasicPreviewCommandFactory.java with 56% similarity]
src/com/android/camera/one/v2/commands/PreviewCommand.java
src/com/android/camera/one/v2/commands/PreviewCommandFactory.java [moved from src/com/android/camera/one/v2/commands/zsl/PreviewCommandFactory.java with 76% similarity]
src/com/android/camera/one/v2/commands/ZslPreviewCommand.java [new file with mode: 0644]
src/com/android/camera/one/v2/commands/ZslPreviewCommandFactory.java [new file with mode: 0644]
src/com/android/camera/one/v2/commands/zsl/ZslPreviewCommand.java [deleted file]
src/com/android/camera/one/v2/commands/zsl/ZslPreviewCommandFactory.java [deleted file]
src/com/android/camera/one/v2/common/BasicCameraFactory.java