mrousavy / vision-camera-resize-plugin

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

feat: Modular Transform Pipeline #72

Open thomas-coldwell opened 2 months ago

thomas-coldwell commented 2 months ago

This PR removes the resize method exported by the plugin in favour of a transform method which instead takes a series of transform operations that can be ordered in whatever way by the user to transform the Frame.

This allows for a more flexible configuration and extensibility as each transform now operates on the buffer individually so any new operations can be inserted easily and operations such as rotate can now be applied before or after ops like resize to allow transforms that were previously not possible.

bglgwyng commented 1 month ago

Does this PR include Preserve Aspect Ratio Option on Android? It seems there's a modification in cropARGBBuffer.