nitro_camera 0.0.1
nitro_camera: ^0.0.1 copied to clipboard
High-performance vision-camera-style plugin built on the Nitro FFI bridge — photo/video capture, code scanning, frame processing, and GPU filters with zero method-channel overhead.
0.0.1 #
- Initial Release
- Export split:
nitro_camera.dartnow exports a curated surface only. The raw FFI layer (NitroCamera, FFI structs, codec extensions) moved topackage:nitro_camera/native.dart; the FPS HUD moved topackage:nitro_camera/debug.dart. - Typed device model:
CameraDeviceInfo.position/lensTypeareCameraPosition/CameraLensTypeenums;hardwareLevelisHardwareLevel;physicalDevicesisList<PhysicalDeviceType>;extensionsisList<CameraExtension>;CameraDeviceFormat.autoFocusSystemisAutoFocusSystem;videoStabilizationModesisList<VideoStabilizationMode>.DevicePositionint constants removed. - Typed errors: failures throw
CameraExceptionsubtypes (PermissionException,DeviceException,SessionException,CaptureException,RecorderException) carrying stabledomain/codestrings, instead of bareStateErrors. Malformed native payloads now throw (session/malformed-payload) instead of parsing to a silent empty list.
Fixed #
CameraController.frameStreamdelivered frames from other open sessions (multi-cam / the device-switch window); it is now filtered to its session.PreviewMode.platformViewrendered nothing off-Android; it now falls back to the texture path (no iOS platform view is registered).PinchToZoomDetectorclamped to a hardcoded 1–8× instead of the device's actual zoom range.- Unknown wire indices from a newer native layer (permission status, event
type, lens type, position) are clamped/skipped instead of crashing with a
RangeError; unknown session events are dropped from typed event streams.
Internal #
CameraController.initializeWithTexture,CameraConfiguration.toNativeConfigandPhotoCaptureOptions.toNativeare annotated@internal.