Snap for 4459973 from 6e8afead53 to pi-release

Change-Id: I5bc9d303cdb316b4b2983364dabc107cda65f87c
This commit is contained in:
android-build-team Robot 2017-11-19 08:21:44 +00:00
commit e72b89fc5a

View file

@ -413,6 +413,11 @@ int V4L2Camera::setupStreams(camera3_stream_configuration_t* stream_config) {
for (uint32_t i = 0; i < stream_config->num_streams; ++i) {
stream = stream_config->streams[i];
// Override HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED format.
if (stream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) {
stream->format = HAL_PIXEL_FORMAT_RGBA_8888;
}
// Max buffers as reported by the device.
stream->max_buffers = max_buffers;