Thanks for the diagram. It looks like that shows that the 6 MSBs are duplicated. While this post (that I also linked in the original post) only has 4 MSBs repeated.
I tried decoding both ways. Either way I still get an image that is very color inaccurate compared to the nvarguscamearsrc. So it seems something still isn’t quite right.
For the images I sent as an attachment in my last post, were you able to convert the raw frame to match the nvarguscamerasrc? If so, can you share some sample code for that color conversion?
How does nvarguscamerasrc convert to RGB? Can you share some sample code for how to correctly convert the raw frame?