cleanup putting packetqueue in the monitor. It should be in the camera

This commit is contained in:
Isaac Connor 2016-08-31 11:47:42 -04:00
parent 35d4650a1f
commit 55c6e5a6db
8 changed files with 8 additions and 14 deletions

View File

@ -314,7 +314,7 @@ int cURLCamera::PostCapture()
return( 0 );
}
int cURLCamera::CaptureAndRecord(Image &image, bool recording, char* event_directory)
int cURLCamera::CaptureAndRecord( Image &image, bool recording, char* event_directory )
{
Error("Capture and Record not implemented for the cURL camera type");
// Nothing to do here

View File

@ -212,7 +212,7 @@ int LibvlcCamera::Capture( Image &image )
}
// Should not return -1 as cancels capture. Always wait for image if available.
int LibvlcCamera::CaptureAndRecord(Image &image, bool recording, char* event_directory, zm_packetqueue* packetqueue)
int LibvlcCamera::CaptureAndRecord(Image &image, bool recording, char* event_directory)
{
while(!mLibvlcData.newImage.getValueImmediate())
mLibvlcData.newImage.getUpdatedValue(1);

View File

@ -70,7 +70,7 @@ public:
int PrimeCapture();
int PreCapture();
int Capture( Image &image );
int CaptureAndRecord( Image &image, bool recording, char* event_directory, zm_packetqueue* packetqueue );
int CaptureAndRecord( Image &image, bool recording, char* event_directory );
int PostCapture();
};

View File

@ -304,10 +304,9 @@ Monitor::Monitor(
bool p_track_motion,
Rgb p_signal_check_colour,
bool p_embed_exif,
Purpose p_purpose,
zm_packetqueue p_packetqueue,
Purpose p_purpose,
int p_n_zones,
Zone *p_zones[]
Zone *p_zones[]
) : id( p_id ),
server_id( p_server_id ),
function( (Function)p_function ),
@ -2256,7 +2255,6 @@ Debug( 1, "Got %d for v4l_captures_per_frame", v4l_captures_per_frame );
signal_check_colour,
embed_exif,
purpose,
packetqueue,
0,
0
);
@ -2444,7 +2442,6 @@ int Monitor::LoadRemoteMonitors( const char *protocol, const char *host, const c
RGB_WHITE,
embed_exif,
purpose,
packetqueue,
0,
0
@ -3102,7 +3099,6 @@ int Monitor::Capture()
int index = image_count%image_buffer_count;
Image* capture_image = image_buffer[index].image;
zm_packetqueue* packetqueue = NULL;
if ( (deinterlacing & 0xff) == 4) {
if ( FirstCapture != 1 ) {

View File

@ -32,7 +32,6 @@
class Monitor;
#include "zm_camera.h"
#include "zm_utils.h"
#include "zm_packetqueue.h"
#include "zm_image_analyser.h"
@ -370,7 +369,6 @@ public:
Rgb p_signal_check_colour,
bool p_embed_exif,
Purpose p_purpose,
zm_packetqueue packetqueue,
int p_n_zones=0,
Zone *p_zones[]=0
);

View File

@ -90,7 +90,7 @@ public:
virtual int PreCapture() = 0;
virtual int Capture( Image &image ) = 0;
virtual int PostCapture() = 0;
virtual int CaptureAndRecord( Image &image, bool recording, char* event_directory, zm_packetqueue* packetqueue )=0;
virtual int CaptureAndRecord( Image &image, bool recording, char* event_directory )=0;
};
#endif // ZM_REMOTE_CAMERA_H

View File

@ -378,7 +378,7 @@ int RemoteCameraRtsp::Capture( Image &image )
//Function to handle capture and store
int RemoteCameraRtsp::CaptureAndRecord(Image &image, bool recording, char* event_file, zm_packetqueue* packetqueue) {
int RemoteCameraRtsp::CaptureAndRecord(Image &image, bool recording, char* event_file ) {
AVPacket packet;
uint8_t* directbuffer;
int frameComplete = false;

View File

@ -86,7 +86,7 @@ public:
int PreCapture();
int Capture( Image &image );
int PostCapture();
int CaptureAndRecord( Image &image, bool recording, char* event_directory, zm_packetqueue* packetqueue );
int CaptureAndRecord( Image &image, bool recording, char* event_directory );
};
#endif // ZM_REMOTE_CAMERA_RTSP_H