Camera: Fix max video size for external camera
Similar to https://r.android.com/2148797, fix the frame duration comparison formula to filter >=30fps resolutions. Bug: 262577978, 237230436 Test: android.hardware.camera2.cts.RobustnessTest#testVerifyMandatoryOutputCombinationTables Change-Id: I6aedfbbdf2b3840746f32f4b05c8c158fc3d70c3
This commit is contained in:
@@ -2429,7 +2429,7 @@ public final class MandatoryStreamCombination {
|
||||
long minFrameDuration = mStreamConfigMap.getOutputMinFrameDuration(
|
||||
android.media.MediaRecorder.class, sz);
|
||||
// Give some margin for rounding error
|
||||
if (minFrameDuration > (1e9 / 30.1)) {
|
||||
if (minFrameDuration < (1e9 / 29.9)) {
|
||||
Log.i(TAG, "External camera " + mCameraId + " has max video size:" + sz);
|
||||
return sz;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user