Open RivenSkaye opened 4 months ago
Pushing the data reversed for RGB provides the correct colors and vertical alignment, only horizontally it's still flipped. And that should just be a matter of strides
It entirely fixes it for BGR and I really shouldn't forget to cargo clean in between experimenting
Platform: Windows 10 (x86_64) Toolchain: both msvc and gcc rustc:
Nokhwa version: 0.10.4 (latest on crates)
Currently Nokhwa only supports raw RGB, in that planar order too AFAICT. But some cameras only output in specific orders, as well as some video decoders (zimg, I think ffmpeg's raw format too?), and produce BGR or GBR for some reason. This is causing some... odd effects, to say the least. Screenshare pushed out as dummy cam:
RawRGB on bgr format:![test-1](https://github.com/l1npengtul/nokhwa/assets/14993038/d86018a0-3f3e-415c-a6cb-7f9fc991e561)
I'm also not sure if it's a known (or even related) issue with YUYV422, but uhhh:![test-04](https://github.com/l1npengtul/nokhwa/assets/14993038/97b1c8cf-0be6-4341-929b-08401461cac5)
And a clean frame from the same source:![AlterCam_Snapshot 2024-3-20 10-19-57-706](https://github.com/l1npengtul/nokhwa/assets/14993038/af795223-319e-4ac7-9cec-1f8ad8112d5d)