#pragma once
class imgVideoCapture{
	int id;
	VideoCapture cap;
	Mat mat;
	uchar* rgbBytes;
	int byteSize=0;
}
map<id,ImgVideoCapture*>mapVideoCapture;
PROCESSING_API uchar* getVideoCaptureBytes(int id){
   if(mapVideoCapture.count(id)!=0){
	   return mapVideoCapture[id]->rgbBytes;
	}
}
public class RTSPOpt{
	int id;
	//打开视频
	.......
	
	//获得rtsp的rgb数据
	public byte[] GetRGBBytes(){
		return Processing.getVideoCaptureBytes(id);
	}
}
GetRGBBytes()获取RGB信息,就会有这个问题。怎么解决或者怎么改不知道为啥,C++开发没测试这个东西,他那里也有问题