Use yuv and fix FR to use batch 4
This commit is contained in:
@@ -848,12 +848,12 @@ int RSTPTestCVClient() {
|
||||
int index = 0;
|
||||
while (true) {
|
||||
index++;
|
||||
std::cout << "Index=" << index << std::endl;
|
||||
if ((index == 200) || (index == 800) || (index == 1200)) { StopRTSP(&rtspClient); }
|
||||
if ((index == 400) || (index == 1000) || (index == 1500)) { StartRTSP(&rtspClient); }
|
||||
//std::cout << "Index=" << index << std::endl;
|
||||
//if ((index == 200) || (index == 800) || (index == 1200)) { StopRTSP(&rtspClient); }
|
||||
//if ((index == 400) || (index == 1000) || (index == 1500)) { StartRTSP(&rtspClient); }
|
||||
//if ((index == 1800) || (index == 2200) || (index == 2500)) { StartRTSP(&rtspClient); }
|
||||
//if ((index == 2000) || (index == 2300) || (index == 2700)) { StartRTSP(&rtspClient); }
|
||||
if (index > 20000) break;
|
||||
//if (index > 20000) break;
|
||||
auto start = std::chrono::system_clock::now();
|
||||
cv::Mat* image = nullptr; // ✅ Use a pointer to hold the allocated image
|
||||
GetRTSPCVImage(&rtspClient, width, height, pts,&image);
|
||||
|
||||
Reference in New Issue
Block a user