diff options
author | Mikael Persson <mikael.persson@intel.com> | 2015-11-26 12:34:29 +0100 |
---|---|---|
committer | Zhiquan Liu <zhiquan.liu@intel.com> | 2015-12-10 16:02:05 +0800 |
commit | f49f8b0bad0c6cd5db1b603233ad008c5bac4a60 (patch) | |
tree | 173819b517dad6d43598f0bd297e2bc173259adf /rs/java/android/renderscript/RenderScript.java | |
parent | cb299b858f4f073e2abd4ad45aa944dc0dfd0aa2 (diff) |
Camera2: create new streams if surface size has changed
When a new capture session is created, the old streams
are re-used if same surface and rotation. However, if the
surface has changed size, we must re-create the stream
to ensure HAL is configured properly, which includes
setting up proper sensor resolution.
This is an issue in e.g. CTS testNoiseReductionModes
and testEdgeModeControl, where a new preview with different
size can be setup without first stopping the previous one.
The same preview surface is used here, but with changed size.
Change-Id: I3b88a95209e83cf1cef0f4d1f791c87b0feb093f
Signed-off-by: Mikael Persson <mikael.persson@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions