Revert "Revert "camera2-legacy: Workaround max jpeg/preview size AR mismatch""
This reverts commit fd258c22. Restoring the original workaround because it breaks CTS test case CaptureRequestTest#testDigitalZoom. Please note that this change would re-introduce known issue on some platforms. [b/19197450] RecordingTest#testBasicRecording fails if max preview/video size aspect ratio is different than max picture size aspect ratio. Original commit message: Filter out the largest preview sizes (from the stream configuration map) until we find one whose aspect ratio matches the max jpeg aspect ratio. Keep all other (smaller) preview sizes. Bug: 17589233 Change-Id: I7200dc04c8d56936af3cb3f685e76268e87fbf6e
Loading
Please register or sign in to comment