VisionCamera Logo
  • Docs
  • API Reference
VisionCamera Logo
VisionCamera Logo
API Reference
react-native-vision-camera
react-native-vision-camera-barcode-scanner
react-native-vision-camera-location
react-native-vision-camera-resizer
ChannelOrderDataTypePixelLayoutResizerStateScaleMode
react-native-vision-camera-skia
react-native-vision-camera-resizerType aliases

ResizerState

type ResizerState = 
  | {
  error: undefined;
  resizer: undefined;
  state: "loading";
}
  | {
  error: undefined;
  resizer: Resizer;
  state: "ready";
}
  | {
  error: Error;
  resizer: undefined;
  state: "error";
}

PixelLayout

Represents how the individual channels per pixel are arranged in memory.

ScaleMode

The mode tells the GPU resize pipeline how to map the input image into the output bounds when the aspect ratio doesn't match.