Marc Rousavy

Results 1816 comments of Marc Rousavy

> not as of right now @valn1 I know, I'm talking about this proposal here.

Related: https://github.com/mrousavy/react-native-vision-camera/issues/2046

> From my understanding, `frame.image` is expected to be mirrored, since `mirrorMode` is configured as `MIRROR_MODE_AUTO` Not quite - actually mirroring an image is a computationally expensive task. Instead, the...

> The statement 'frame.image is expected to be mirrored' doesn't convey a proposal but reflects my prediction. my man is speaking in cursive 😂 ![](https://media.tenor.com/7UarUv_Z1QYAAAAC/gunna-fire.gif) Well to be honest, we...

Related: https://stackoverflow.com/questions/48406497/

Also related: https://developer.android.com/codelabs/android-camera2-preview#5

btw., I wrote an explanation on why rotation/orientation isn't as straight forward as it sounds here: https://github.com/mrousavy/react-native-vision-camera/pull/2807#issuecomment-2083079356

TL:DR; As of today, VisionCamera uses an OpenGL pipeline on Android. Downsides: - 💥 It crashes when you try to use another format than RGB. E.g. **if you pass `pixelFormat="yuv"`...

I found a temporary solution to the problem: https://github.com/mrousavy/react-native-vision-camera/pull/1874 Basically, I plug an ImageReader and an ImageWriter in-between the Camera and the OpenGL pipeline. The problem here is that this...

Lmao even ChatGPT says that in a perfect world Android would be able to handle frame resizing automatically in the GPU Encoder. (Same as iOS in AVAssetWriter) It even says...