Added getter for current resolution
authorMohammed Sameer <msameer@foolab.org>
Sun, 4 Aug 2013 04:29:31 +0000 (07:29 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sun, 4 Aug 2013 04:29:31 +0000 (07:29 +0300)
lib/qtcamimagemode.cpp
lib/qtcamimagemode.h
lib/qtcamvideomode.cpp
lib/qtcamvideomode.h

index 09af7f7..6aae13b 100644 (file)
@@ -143,3 +143,7 @@ void QtCamImageMode::setProfile(GstEncodingProfile *profile) {
 QtCamImageSettings *QtCamImageMode::settings() const {
   return d->settings;
 }
+
+QtCamImageResolution QtCamImageMode::currentResolution() {
+  return d->resolution;
+}
index 1e53449..47d51c1 100644 (file)
@@ -45,6 +45,8 @@ public:
 
   bool setResolution(const QtCamImageResolution& resolution);
 
+  QtCamImageResolution currentResolution();
+
   void setProfile(GstEncodingProfile *profile);
 
   QtCamImageSettings *settings() const;
index 67aa7bc..762c108 100644 (file)
@@ -235,4 +235,8 @@ QtCamVideoSettings *QtCamVideoMode::settings() {
   return d->settings;
 }
 
+QtCamVideoResolution QtCamVideoMode::currentResolution() {
+  return d->resolution;
+}
+
 #include "moc_qtcamvideomode.cpp"
index 649c5ca..77a489e 100644 (file)
@@ -49,6 +49,8 @@ public:
 
   bool setResolution(const QtCamVideoResolution& resolution);
 
+  QtCamVideoResolution currentResolution();
+
   void setProfile(GstEncodingProfile *profile);
 
   QtCamVideoSettings *settings();