Shuzhen Wang 9b71bc20c4 Camera: Avoid Metadata re-allocation during shrinkCaptureResult
If capture result metadata is to be shrinked, reserve enough space so
that CameraMetadata isn't re-allocated when std::vector expands.

If vector expansion happens, CameraMetadata is re-allocated, causing
camera_metadata_t being re-allocated as well.

Test: Camera CTS
Bug: 109672123
Change-Id: Idaf5bf409bdbbccf617614edc96c0478260b4c30
2018-06-05 23:13:54 -07:00
2018-04-11 09:56:09 -07:00
2018-03-27 16:30:34 -07:00
2018-05-18 10:10:32 -07:00
2018-05-18 10:10:32 -07:00
2018-05-18 10:10:32 -07:00
2017-05-02 16:45:27 -07:00
2017-11-28 17:19:46 -08:00
2016-08-30 11:28:36 -07:00
2016-08-30 11:28:36 -07:00
2017-06-12 13:20:12 -07:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%