Ask Your Question

Revision history [back]

Convert a Blackmagic Intensity Shuttle USB 3.0 Frame (10bppYUV format) into an OpenCV Mat object

I have to work with a Blackmagic Intensity Shuttle USB 3.0 device. I am, therefore, using the DeckLink SDK in order to set up the device and grab frames. I do this with success, establishing the option that allows the device to set himself to its "preferred output mode", that happens to be 1080i59.94 (I don't really care so much about the framerate yet). I obtain properly the IDeckLinkVideoInputFrame object, but I haven't been able to find a proper way to convert it to a Mat object. There seem to be nice ways to create the Mat object from raw frame data when it is 8bpp YUV or RGBA data, but I haven't been able to do it when the frame comes in 10bpp. Any idea or hint?

I need to create a Mat object to incorporate the data grabbed from this device into a pipeline that was developed some time ago, so, unfortunately, stop using OpenCV is not an option. Also, I use OpenCV 3.4.0 on C++11.

Thanks.