Update FORMATS.mdx
This commit is contained in:
parent
f9dbb6921c
commit
0bbda5b84b
@ -111,10 +111,9 @@ export const sortFormatsByResolution = (left: CameraDeviceFormat, right: CameraD
|
||||
let leftPoints = left.photoHeight * left.photoWidth;
|
||||
let rightPoints = right.photoHeight * right.photoWidth;
|
||||
|
||||
if (left.videoHeight != null && left.videoWidth != null && right.videoHeight != null && right.videoWidth != null) {
|
||||
leftPoints += left.videoWidth * left.videoHeight;
|
||||
rightPoints += right.videoWidth * right.videoHeight;
|
||||
}
|
||||
// we also care about video dimensions, not only photo.
|
||||
leftPoints += left.videoWidth * left.videoHeight;
|
||||
rightPoints += right.videoWidth * right.videoHeight;
|
||||
|
||||
// you can also add points for FPS, etc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user