You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I just use frame.data().data_u32() to try to preview the image retrieved from the camera, The colors are not accurate -- when I started fiddling with the byte order, I came to the conclusion that the buffer data on my M3 mac was being returned in BGRA format. I believe maybe the buffer preparation code is not taking platform endianness into account?
Even when I got the data format correct after fiddling, I noticed that the image is a lot darker than what the camera can perceive (Attaching a screenshot as a sample). Could the AVFoundation camera code be losing data, or is this expected?
I've tried artificially brightening the image via bitmasking, it remedies the issue a little bit but curious why it is just darker than normal...
frame.data().data_u32()to try to preview the image retrieved from the camera, The colors are not accurate -- when I started fiddling with the byte order, I came to the conclusion that the buffer data on my M3 mac was being returned in BGRA format. I believe maybe the buffer preparation code is not taking platform endianness into account?AVFoundationcamera code be losing data, or is this expected?