OSDN Git Service

CameraService: Create a dummy stream when 0 streams are requested.
authorEino-Ville Talvala <etalvala@google.com>
Wed, 27 Aug 2014 21:41:33 +0000 (14:41 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Thu, 28 Aug 2014 22:47:50 +0000 (15:47 -0700)
commit16a2ada049447c156648812b94d25be07869f284
treeef74c94c21a8ce5989cca904c87b36146993f58f
parent1754351d9199721e7e7943461689e399ef015260
CameraService: Create a dummy stream when 0 streams are requested.

A workaround for a camera device HAL v3.2 or older specification hole - it's
not acceptable to configure_streams with 0 output streams. However, we allow for
this at the public API level, to allow an application to release all output streams.

So in this case, create a dummy stream that doesn't actually do anything as a placeholder.

Bug: 17220694
Change-Id: Ib25242ffc2c9f2b2f619fd5fe6d652266579da85
services/camera/libcameraservice/Android.mk
services/camera/libcameraservice/device3/Camera3Device.cpp
services/camera/libcameraservice/device3/Camera3Device.h
services/camera/libcameraservice/device3/Camera3DummyStream.cpp [new file with mode: 0644]
services/camera/libcameraservice/device3/Camera3DummyStream.h [new file with mode: 0644]