Skip to content

Data Format and Quality issues on Mac #12

@valenotary

Description

@valenotary
  • 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?
    • image
    • 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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions