remove old code using image_buffer in zm_packets

pull/3122/head
Isaac Connor 2020-12-30 21:23:29 -05:00
parent 6c696f4025
commit f61210c91f
1 changed files with 1 additions and 6 deletions

View File

@ -2441,16 +2441,11 @@ int Monitor::Capture() {
unsigned int index = image_count % image_buffer_count; unsigned int index = image_count % image_buffer_count;
ZMPacket *packet = new ZMPacket(); ZMPacket *packet = new ZMPacket();
//&image_buffer[index];
packet->timestamp = new struct timeval; packet->timestamp = new struct timeval;
gettimeofday(packet->timestamp, NULL); gettimeofday(packet->timestamp, nullptr);
//image_buffer[index].timestamp;
//packet->image_index = image_count;
//&image_buffer[index];
// Still need to lock it. When we add it to queue other threads can pounce on it // Still need to lock it. When we add it to queue other threads can pounce on it
packet->lock(); packet->lock();
//packet->reset();
Image* capture_image = image_buffer[index].image; Image* capture_image = image_buffer[index].image;
//Debug(1, "capture image: %d x %d linesize: %d", capture_image->Width(), capture_image->Height(), capture_image->LineSize()); //Debug(1, "capture image: %d x %d linesize: %d", capture_image->Width(), capture_image->Height(), capture_image->LineSize());
int captureResult = 0; int captureResult = 0;