Add support for 16+ bits YUV files (up to 32-bit) - #677
Conversation
for13to1
commented
Jul 21, 2026
- Extend BitDepthList to support 8-32 bit depth
- Add get_min_standard_bytes() for correct bytes-per-sample calculation
- Fix type overflows by upgrading to int64_t
- Fix setFormatFromCorrelation loop to test 24/32-bit formats
- Use bytesPerSample consistently instead of hardcoded (bps > 8) checks
- Extend BitDepthList to support 8-32 bit depth - Add get_min_standard_bytes() for correct bytes-per-sample calculation - Fix type overflows by upgrading to int64_t - Fix setFormatFromCorrelation loop to test 24/32-bit formats - Use bytesPerSample consistently instead of hardcoded (bps > 8) checks
|
This is quite a big change in the whole app and I doubt that it would be done with this PR. Additionally, this is not attached to a new feature request. I currently do not see any application for this. I have never encountered YUV files with >16 bit. Have you encountered any? If yes, could you please provide a use-case and a sample file? For now I will close this. Please reopen if there is a use-case. |
The matter is as follows: In #576, I mentioned supporting the opening of raw (Bayer or other CFA) by mapping it as YUV400 (they are all mono). |
|
I tried, but only the repository's maintainer can reopen it. @ChristianFeldmann |