cleanup putting packetqueue in the monitor. It should be in the camera
This commit is contained in:
parent
35d4650a1f
commit
55c6e5a6db
|
@ -314,7 +314,7 @@ int cURLCamera::PostCapture()
|
||||||
return( 0 );
|
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");
|
Error("Capture and Record not implemented for the cURL camera type");
|
||||||
// Nothing to do here
|
// Nothing to do here
|
||||||
|
|
|
@ -212,7 +212,7 @@ int LibvlcCamera::Capture( Image &image )
|
||||||
}
|
}
|
||||||
|
|
||||||
// Should not return -1 as cancels capture. Always wait for image if available.
|
// 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())
|
while(!mLibvlcData.newImage.getValueImmediate())
|
||||||
mLibvlcData.newImage.getUpdatedValue(1);
|
mLibvlcData.newImage.getUpdatedValue(1);
|
||||||
|
|
|
@ -70,7 +70,7 @@ public:
|
||||||
int PrimeCapture();
|
int PrimeCapture();
|
||||||
int PreCapture();
|
int PreCapture();
|
||||||
int Capture( Image &image );
|
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();
|
int PostCapture();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -305,7 +305,6 @@ Monitor::Monitor(
|
||||||
Rgb p_signal_check_colour,
|
Rgb p_signal_check_colour,
|
||||||
bool p_embed_exif,
|
bool p_embed_exif,
|
||||||
Purpose p_purpose,
|
Purpose p_purpose,
|
||||||
zm_packetqueue p_packetqueue,
|
|
||||||
int p_n_zones,
|
int p_n_zones,
|
||||||
Zone *p_zones[]
|
Zone *p_zones[]
|
||||||
) : id( p_id ),
|
) : id( p_id ),
|
||||||
|
@ -2256,7 +2255,6 @@ Debug( 1, "Got %d for v4l_captures_per_frame", v4l_captures_per_frame );
|
||||||
signal_check_colour,
|
signal_check_colour,
|
||||||
embed_exif,
|
embed_exif,
|
||||||
purpose,
|
purpose,
|
||||||
packetqueue,
|
|
||||||
0,
|
0,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
@ -2444,7 +2442,6 @@ int Monitor::LoadRemoteMonitors( const char *protocol, const char *host, const c
|
||||||
RGB_WHITE,
|
RGB_WHITE,
|
||||||
embed_exif,
|
embed_exif,
|
||||||
purpose,
|
purpose,
|
||||||
packetqueue,
|
|
||||||
0,
|
0,
|
||||||
0
|
0
|
||||||
|
|
||||||
|
@ -3102,7 +3099,6 @@ int Monitor::Capture()
|
||||||
|
|
||||||
int index = image_count%image_buffer_count;
|
int index = image_count%image_buffer_count;
|
||||||
Image* capture_image = image_buffer[index].image;
|
Image* capture_image = image_buffer[index].image;
|
||||||
zm_packetqueue* packetqueue = NULL;
|
|
||||||
|
|
||||||
if ( (deinterlacing & 0xff) == 4) {
|
if ( (deinterlacing & 0xff) == 4) {
|
||||||
if ( FirstCapture != 1 ) {
|
if ( FirstCapture != 1 ) {
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
class Monitor;
|
class Monitor;
|
||||||
#include "zm_camera.h"
|
#include "zm_camera.h"
|
||||||
#include "zm_utils.h"
|
#include "zm_utils.h"
|
||||||
#include "zm_packetqueue.h"
|
|
||||||
|
|
||||||
#include "zm_image_analyser.h"
|
#include "zm_image_analyser.h"
|
||||||
|
|
||||||
|
@ -370,7 +369,6 @@ public:
|
||||||
Rgb p_signal_check_colour,
|
Rgb p_signal_check_colour,
|
||||||
bool p_embed_exif,
|
bool p_embed_exif,
|
||||||
Purpose p_purpose,
|
Purpose p_purpose,
|
||||||
zm_packetqueue packetqueue,
|
|
||||||
int p_n_zones=0,
|
int p_n_zones=0,
|
||||||
Zone *p_zones[]=0
|
Zone *p_zones[]=0
|
||||||
);
|
);
|
||||||
|
|
|
@ -90,7 +90,7 @@ public:
|
||||||
virtual int PreCapture() = 0;
|
virtual int PreCapture() = 0;
|
||||||
virtual int Capture( Image &image ) = 0;
|
virtual int Capture( Image &image ) = 0;
|
||||||
virtual int PostCapture() = 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
|
#endif // ZM_REMOTE_CAMERA_H
|
||||||
|
|
|
@ -378,7 +378,7 @@ int RemoteCameraRtsp::Capture( Image &image )
|
||||||
|
|
||||||
//Function to handle capture and store
|
//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;
|
AVPacket packet;
|
||||||
uint8_t* directbuffer;
|
uint8_t* directbuffer;
|
||||||
int frameComplete = false;
|
int frameComplete = false;
|
||||||
|
|
|
@ -86,7 +86,7 @@ public:
|
||||||
int PreCapture();
|
int PreCapture();
|
||||||
int Capture( Image &image );
|
int Capture( Image &image );
|
||||||
int PostCapture();
|
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
|
#endif // ZM_REMOTE_CAMERA_RTSP_H
|
||||||
|
|
Loading…
Reference in New Issue