+ //jpg = cvEncodeImage(".jpg", frame,p);
+ /*pass buf to client, write to file on client*/
+ //fwrite(jpg->data.ptr,1,jpg->rows*jpg->cols, fp);
+
+ //decjpg = cvDecodeImage(jpg, CV_LOAD_IMAGE_COLOR);
+ //cvShowImage( "Display window", decjpg );
+
+ //cvWaitKey(0);