Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I managed to make it work.

According to this source file the encoder puts a header at the beginning of the file. According to libpng, the first bytes of any png are 89 50 4e 47 0d 0a 1a 0a. By inspection, I found that the first 12 bytes are the header of compressed_depth_image_transport and the rest is a valid png file.