issues
search
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
Improve Rotation typesafety by explicitly using the enum types, instead of unsafely casting to ints (codestyle)
Use
@throw
instead of
[NSException raise]
(avoid return)
Use
[[unlikely]]
for exceptions (performance)
Use
const FrameBuffer&
for arguments to avoid copy (performance)
@throw
instead of[NSException raise]
(avoid return)[[unlikely]]
for exceptions (performance)const FrameBuffer&
for arguments to avoid copy (performance)