commit | f7da096db8655531c2f2b7bddccd1064b1021155 | [log] [tgz] |
---|---|---|
author | Zhijun He <zhijunhe@google.com> | Thu Apr 24 13:27:56 2014 -0700 |
committer | Zhijun He <zhijunhe@google.com> | Fri Apr 25 18:12:52 2014 -0700 |
tree | ae0c3ba796b2da3f069c1f13dc23c49f1838f695 | |
parent | 67ee990d324229ab0565ce632bd5a04297e16a01 [diff] |
Camera3: scale the max jpeg buffer size based on resolutions The max jpeg buffer size was always the android.jpeg.maxSize, regardless of the actual jpeg capture size. This creates a huge memory waste especially for smaller size jpeg capture. Now the max jpeg buffer is linearly scaled based on the resolution. Bug: 14288983 Change-Id: I8a971b8e2f4fc7fec0154547bdb688579af71a47