imshow stream video
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);