AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Reanimated V2: A Frame Processor for Android Cameras
A frame processor is a workload. If you have your camera component and you want to add some kind of frame processing, it's in the Reanimated library. And before vision camera, so like, let's say a Reknev camera, this was not possible. So I implemented a feature where you can write a function called a frame processor. That gets called on every frame the camera sees. Each frame that's getting sent to you know, JavaScript, basically. You receive the frame as a parameter, which is mind blowing. It's real magic. In v3, fun fact, you can also convert the buffer to a JavaScript array buffer,. Which is obviously not really fast