Add support for 10-bit packed formats
Add support for preview processing and capturing 10-bit packed images. This also adds support for GBRG, GRBG and RGGB (both 8 and 10-bit) debayering and enables storing the correct TIFFTAG_CFAPATTERN
for them. Tested on the Xiaomi Mi Note 2, with the Sony IMX318 sensor of RGGB10P format.
This includes commits from the ppp
branch that were needed to make Megapixels launch on the Mi Note 2. They were clang-format
ted to make build:debian
succeed.