So, I am sending gray jpg images over a network. I compress them in memory using jpge: https://code.google.com/p/jpeg-compressor/, and then pass them over the network. When I go to display them using opencv or write them to file, I get the same problem:
The first image is being captured and displayed, and then only a small upper section of every image after that is being displayed. Based on my intuition and debugging: normally, a 100 x 100 gray pixel image would be a 100 * 100 = 10000 bytes. After jpg compression, it is much less (depending on the quality I set it to), so let's say it is then 5000 bytes after compression, it then updates half the image.
Any idea why this is happening?
Also, it is weird because the first image is displayed in it's entirety, but the top area that does change is slightly lighter gray.