yuv_ffi 0.1.1
yuv_ffi: ^0.1.1 copied to clipboard
High-performance YUV/BGRA image processing for Flutter via native C/FFI.
0.1.1 #
- Added comprehensive conversion/transform tests with a real test asset (
test/assets/test_pattern_512.png), including flips, crop, rotations, grayscale/blackwhite/negate, conversion round-trips, serialization, and blur smoke tests. - Added widget tests for
YuvImageWidget(frame builder delegation, size propagation, error builder behavior) using asset-based image bytes. - Updated Web/unsupported backend from throwing stubs to safe no-op placeholders in
lib/src/yuv/impl/yuv_stub.dartto keep API usage non-crashing. - Documented current Web status as stub-only in
README.mdandAGENTS.md. - Improved
YuvImageWidgetimage loading path and builder delegation behavior; strengthened provider error handling and stream/descriptor cleanup. - Added API documentation comments (dartdoc) for public image types, enums, planes, and widgets.
- Polished
example/app:- fixed persisted file path mismatch (
image.yuv), - added safe async navigation handling (
mountedcheck), - improved camera stream re-subscription lifecycle handling,
- optimized
FaceRectPainter.shouldRepaint, - replaced debug
printcalls withdebugPrint.
- fixed persisted file path mismatch (
- Analyzer configuration keeps generated bindings excluded (
lib/src/functions/bindings/yuv_ffi_bingings.dart).
0.1.0 #
- Initial public release.
- Native C/FFI image processing for
i420,nv21(project-specific UV layout), andbgra8888. - Added conversions, crop/rotate/flip, grayscale/negate/blackwhite, and blur operations.
- Added serialization helpers and Flutter widget export.