imshow stream video

asked 2013-11-23 08:38:58 -0500

thor88 gravatar image

updated 2013-11-23 11:40:24 -0500

Hi, I have a buffer,which contain a stream video; I want to show it. I use cvDecodeImage but don't work, infact it show only black image and no video. Can anyone help me please? It's very important forme. My code is:

u_int8_t *fReceiverBuffer; CvMat matbox = cvMat(480, 640, CV_8UC3, fReceiveBuffer); IplImage *mat=cvDecodeImage(&matbox,CV_LOAD_IMAGE_COLOR); cvShowImage("VideoClip2",mat); waitKey(30);

edit retag flag offensive close merge delete