Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the method you're trying, should work fine with plain, uncompressed pixels.

what you get from the socket instead(is that mjpg or such ?) is probably a whole image, header, exif data, compressed pixels, etc.

read it into a std::vector, and feed that into imdecode instead