commit | 662c05ead2a1fa5b3a8baeb3b4f4eff23d2a032d | [log] [tgz] |
---|---|---|
author | Emilian Peev <epeev@google.com> | Tue May 16 10:00:04 2017 +0100 |
committer | Emilian Peev <epeev@google.com> | Thu May 18 13:20:15 2017 +0100 |
tree | 78659d38579d537f9d333751f541793f35247f07 | |
parent | 411e9c5e7e1976b9f92aeed589ac4252eef1af72 [diff] |
QCamera2: Allocate depth buffers dynamically 'depth_data' is always allocated as part of the metadata buffers. This is wasting memory in all cases where the depth channel is not part of the configured streams. To avoid this, allocate depth data buffers dynamically ony when a depth stream is present in the configuration. Bug: 38292566 Test: Manual using application, Complete Camera/Camera2 CTS. Change-Id: I1fbdb263551fa6fb0222346e0f5bbc3415ae8f2f