Revision 939
added passing of overhead camera image to client through PHP
fixed unfreed memory in server/vision/savetonetwork.c
savetonetwork.c | ||
---|---|---|
1 | 1 |
#include <stdio.h> |
2 | 2 |
#include "jpeglib.h" |
3 | 3 |
#include <cv.h> |
4 |
#include "vision.h" |
|
5 | 4 |
#include "memdst.h" |
6 | 5 |
|
7 | 6 |
int write_JPEG_to_mem (unsigned char *storage, int length, IplImage *_img, int quality) |
... | ... | |
41 | 40 |
jpeg_finish_compress(&cinfo); |
42 | 41 |
jpeg_destroy_compress(&cinfo); |
43 | 42 |
|
43 |
cvReleaseImage(&img); |
|
44 |
|
|
44 | 45 |
return numBytes; |
45 | 46 |
} |
46 | 47 |
|
Also available in: Unified diff