I'm using the DaVinci Resolve IO Encode SDK (
https://resolve.cafe/developers/encodeplugin/).
Requesting 16-bit clrYUVp 4:2:0 (pIOPropColorModel=clrYUVp, pIOPropHSubsampling=2, pIOPropVSubsampling=2, pIOPropBitsPerSample=16) gives a broken image. Requesting 4:2:2 seems fine.
Here's a dump of both buffers of a single image:
https://drive.google.com/file/d/1Aq5lvL ... sp=sharingThe dump contains 4 files:
dump420.raw : dump of 16-bit clrYUVp 4:2:0
dump422.raw : dump of 16-bit clrYUVp 4:2:2
dump420_8.raw : data of dump420.raw with each 16-bit value converted to 8-bit (for easier viewing)
dump422_8.raw : data of dump422.raw with each 16-bit value converted to 8-bit (for easier viewing)
Attached is an image using a raw viewer. The 422 image is fine, Y plane first followed by U/V, but 420 is completely broken somehow.
Please advise.