videoio(avfoundation): add getCaptureDomain()
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Wed, 31 Mar 2021 09:35:11 +0000 (09:35 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Wed, 31 Mar 2021 09:35:11 +0000 (09:35 +0000)
modules/videoio/src/cap_avfoundation.mm
modules/videoio/src/cap_avfoundation_mac.mm

index 063e38bb54bf47df248e0086918fa31f00fbbe6a..1ff612e23149274ebff365c53936ebdde2547eb3 100644 (file)
@@ -96,7 +96,7 @@ class CvCaptureCAM : public CvCapture {
         virtual double getProperty(int property_id) const;
         virtual bool setProperty(int property_id, double value);
         virtual int didStart();
-
+        int getCaptureDomain() /*const*/ CV_OVERRIDE { return cv::CAP_AVFOUNDATION; }
     private:
         AVCaptureSession            *mCaptureSession;
         AVCaptureDeviceInput        *mCaptureDeviceInput;
@@ -137,6 +137,7 @@ public:
     virtual double getProperty(int property_id) const;
     virtual bool setProperty(int property_id, double value);
     virtual int didStart();
+    int getCaptureDomain() /*const*/ CV_OVERRIDE { return cv::CAP_AVFOUNDATION; }
 private:
     AVAsset                  *mAsset;
     AVAssetTrack             *mAssetTrack;
index 6a52727d2782d6024ed96e4c2f5e6d7b07591f37..55872539adab88b95a15fc150d9267842d4a2f1a 100644 (file)
@@ -99,7 +99,7 @@ public:
     virtual double getProperty(int property_id) const;
     virtual bool setProperty(int property_id, double value);
     virtual int didStart();
-
+    int getCaptureDomain() /*const*/ CV_OVERRIDE { return cv::CAP_AVFOUNDATION; }
 
 private:
     AVCaptureSession            *mCaptureSession;
@@ -141,7 +141,7 @@ public:
     virtual double getProperty(int property_id) const;
     virtual bool setProperty(int property_id, double value);
     virtual int didStart();
-
+    int getCaptureDomain() /*const*/ CV_OVERRIDE { return cv::CAP_AVFOUNDATION; }
 
 private:
     AVAsset                  *mAsset;