Merge branch '2.4'
This commit is contained in:
@@ -503,6 +503,9 @@ bool CvCaptureCAM::setProperty(int property_id, double value) {
|
||||
didOutputVideoFrame:(CVImageBufferRef)videoFrame
|
||||
withSampleBuffer:(QTSampleBuffer *)sampleBuffer
|
||||
fromConnection:(QTCaptureConnection *)connection {
|
||||
(void)captureOutput;
|
||||
(void)sampleBuffer;
|
||||
(void)connection;
|
||||
|
||||
CVBufferRetain(videoFrame);
|
||||
CVImageBufferRef imageBufferToRelease = mCurrentImageBuffer;
|
||||
@@ -519,6 +522,9 @@ bool CvCaptureCAM::setProperty(int property_id, double value) {
|
||||
- (void)captureOutput:(QTCaptureOutput *)captureOutput
|
||||
didDropVideoFrameWithSampleBuffer:(QTSampleBuffer *)sampleBuffer
|
||||
fromConnection:(QTCaptureConnection *)connection {
|
||||
(void)captureOutput;
|
||||
(void)sampleBuffer;
|
||||
(void)connection;
|
||||
cout << "Camera dropped frame!" << endl;
|
||||
}
|
||||
|
||||
|
@@ -48,6 +48,10 @@
|
||||
# pragma warning( disable: 4100 4244 4267 )
|
||||
#endif
|
||||
|
||||
#if defined __GNUC__ && defined __APPLE__
|
||||
# pragma GCC diagnostic ignored "-Wshadow"
|
||||
#endif
|
||||
|
||||
#include <ImfHeader.h>
|
||||
#include <ImfInputFile.h>
|
||||
#include <ImfOutputFile.h>
|
||||
|
@@ -45,6 +45,10 @@
|
||||
|
||||
#ifdef HAVE_OPENEXR
|
||||
|
||||
#if defined __GNUC__ && defined __APPLE__
|
||||
# pragma GCC diagnostic ignored "-Wshadow"
|
||||
#endif
|
||||
|
||||
#include <ImfChromaticities.h>
|
||||
#include <ImfInputFile.h>
|
||||
#include <ImfChannelList.h>
|
||||
|
@@ -136,7 +136,7 @@ static bool wasInitialized = false;
|
||||
}
|
||||
}*/
|
||||
|
||||
CV_IMPL int cvInitSystem( int argc, char** argv)
|
||||
CV_IMPL int cvInitSystem( int , char** )
|
||||
{
|
||||
//cout << "cvInitSystem" << endl;
|
||||
wasInitialized = true;
|
||||
@@ -159,7 +159,7 @@ CV_IMPL int cvInitSystem( int argc, char** argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
CVWindow *cvGetWindow(const char *name) {
|
||||
static CVWindow *cvGetWindow(const char *name) {
|
||||
//cout << "cvGetWindow" << endl;
|
||||
NSAutoreleasePool* localpool = [[NSAutoreleasePool alloc] init];
|
||||
NSString *cvname = [NSString stringWithFormat:@"%s", name];
|
||||
@@ -614,6 +614,7 @@ void cvSetModeWindow_COCOA( const char* name, double prop_value )
|
||||
@synthesize status;
|
||||
|
||||
- (void)cvSendMouseEvent:(NSEvent *)event type:(int)type flags:(int)flags {
|
||||
(void)event;
|
||||
//cout << "cvSendMouseEvent" << endl;
|
||||
NSPoint mp = [NSEvent mouseLocation];
|
||||
//NSRect visible = [[self contentView] frame];
|
||||
@@ -924,6 +925,7 @@ void cvSetModeWindow_COCOA( const char* name, double prop_value )
|
||||
}
|
||||
|
||||
- (void)sliderChanged:(NSNotification *)notification {
|
||||
(void)notification;
|
||||
int pos = [slider intValue];
|
||||
if(value)
|
||||
*value = pos;
|
||||
|
Reference in New Issue
Block a user