Are you seeing this on a Pi 5? There's been no change in endianness, but Pi 5s left-justify the values within the uint16. That is to say, when reading RAW12 on a Pi 4, you will get 4 zero bits at the top of each word, whereas on a Pi 5 the zero bits will be at the bottom.
If using Picamera2, the "raw" part of the camera config will tell you the pixel format in the raw buffer, and the "sensor" part will tell you what you're getting from the sensor. There's more on this ins the "Raw Stream Configuration" (page 23) of the manual.
If using Picamera2, the "raw" part of the camera config will tell you the pixel format in the raw buffer, and the "sensor" part will tell you what you're getting from the sensor. There's more on this ins the "Raw Stream Configuration" (page 23) of the manual.
Statistics: Posted by therealdavidp — Tue Jan 14, 2025 7:07 am