react-native-vision-camera-resizerHybridObjects
ResizerFactory
interface ResizerFactory extends HybridObjectThe ResizerFactory creates instances of a Resizer.
Example
const factory = ...
const resizer = await factory.createResizer({
width: 192,
height: 192,
channelOrder: 'rgb',
dataType: 'float32',
pixelLayout: 'planar'
})Methods
createResizer()
createResizer(options: ResizerOptions): Promise<Resizer>Creates a new Resizer with the given ResizerOptions.
isAvailable()
isAvailable(): booleanReturns whether the GPU-accelerated resizer pipeline is supported on this device.
- On iOS, this requires the Metal GPU framework, which is always available.
- On Android, this requires the Vulkan GPU framework and
AHardwareBuffer*extensions, which are only available on newer Android versions.