camera2: share one ImageReader if possible

Check if the regular and reprocess outputs have the same formats
and sizes. If they do, create only one ImageReader. This fixes
the issue caused by the limitation that two YUV MAXIMUM outputs
aren't guaranteed to work when configuring a reprocessible
capture session.

Bug: 20944956
Change-Id: I4076a8a82618d21a0faf615e391d416060d0c92f
1 file changed