mrousavy / vision-camera-resize-plugin

A VisionCamera Frame Processor plugin for fast buffer resizing and colorspace (YUV <> RGBA) conversions
https://mrousavy.com
MIT License
74 stars 17 forks source link

fix: Optimize iOS/Android codebases (type-safety and performance) #52

Closed mrousavy closed 1 month ago

mrousavy commented 1 month ago
  1. Improve Rotation typesafety by explicitly using the enum types, instead of unsafely casting to ints (codestyle)
  2. Use @throw instead of [NSException raise] (avoid return)
  3. Use [[unlikely]] for exceptions (performance)
  4. Use const FrameBuffer& for arguments to avoid copy (performance)