fix: Fix pixelFormat
being native
when FP is set (#2450)
This commit is contained in:
parent
587f2b164b
commit
d64fc08e16
@ -470,7 +470,7 @@ export class Camera extends React.PureComponent<CameraProps, CameraState> {
|
||||
}
|
||||
|
||||
const shouldEnableBufferCompression = props.video === true && frameProcessor == null
|
||||
const pixelFormat = props.pixelFormat ?? (frameProcessor == null ? 'yuv' : 'native')
|
||||
const pixelFormat = props.pixelFormat ?? (frameProcessor != null ? 'yuv' : 'native')
|
||||
const torch = this.state.isRecordingWithFlash ? 'on' : props.torch
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user