Ticket #26246: patch-cvcap_qt.mm.diff
File patch-cvcap_qt.mm.diff, 1.4 KB (added by ajb78@…, 14 years ago) |
---|
-
src/highgui/cvcap_qt.mm
old new 99 99 CvCaptureCAM(int cameraNum = -1) ; 100 100 ~CvCaptureCAM(); 101 101 virtual bool grabFrame(); 102 virtual IplImage* retrieveFrame( );102 virtual IplImage* retrieveFrame(int); 103 103 virtual IplImage* queryFrame(); 104 104 virtual double getProperty(int property_id); 105 105 virtual bool setProperty(int property_id, double value); … … 142 142 CvCaptureFile(const char* filename) ; 143 143 ~CvCaptureFile(); 144 144 virtual bool grabFrame(); 145 virtual IplImage* retrieveFrame( );145 virtual IplImage* retrieveFrame(int); 146 146 virtual IplImage* queryFrame(); 147 147 virtual double getProperty(int property_id); 148 148 virtual bool setProperty(int property_id, double value); … … 291 291 return total <= timeOut; 292 292 } 293 293 294 IplImage* CvCaptureCAM::retrieveFrame( ) {294 IplImage* CvCaptureCAM::retrieveFrame(int) { 295 295 return [capture getOutput]; 296 296 } 297 297 … … 304 304 startCaptureDevice(camNum); 305 305 */ 306 306 } 307 return retrieveFrame( );307 return retrieveFrame(0); 308 308 } 309 309 310 310 void CvCaptureCAM::stopCaptureDevice() { … … 779 779 } 780 780 781 781 782 IplImage* CvCaptureFile::retrieveFrame( ) {782 IplImage* CvCaptureFile::retrieveFrame(int) { 783 783 return retrieveFramePixelBuffer(); 784 784 } 785 785 786 786 IplImage* CvCaptureFile::queryFrame() { 787 787 grabFrame(); 788 return retrieveFrame( );788 return retrieveFrame(0); 789 789 } 790 790 791 791 double CvCaptureFile::getFPS() {