From: Mohammed Sameer Date: Sun, 4 Aug 2013 04:29:31 +0000 (+0300) Subject: Added getter for current resolution X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=commitdiff_plain;h=6093d32f1c064e358804cc3136b94d8f0b926815 Added getter for current resolution --- diff --git a/lib/qtcamimagemode.cpp b/lib/qtcamimagemode.cpp index 09af7f7..6aae13b 100644 --- a/lib/qtcamimagemode.cpp +++ b/lib/qtcamimagemode.cpp @@ -143,3 +143,7 @@ void QtCamImageMode::setProfile(GstEncodingProfile *profile) { QtCamImageSettings *QtCamImageMode::settings() const { return d->settings; } + +QtCamImageResolution QtCamImageMode::currentResolution() { + return d->resolution; +} diff --git a/lib/qtcamimagemode.h b/lib/qtcamimagemode.h index 1e53449..47d51c1 100644 --- a/lib/qtcamimagemode.h +++ b/lib/qtcamimagemode.h @@ -45,6 +45,8 @@ public: bool setResolution(const QtCamImageResolution& resolution); + QtCamImageResolution currentResolution(); + void setProfile(GstEncodingProfile *profile); QtCamImageSettings *settings() const; diff --git a/lib/qtcamvideomode.cpp b/lib/qtcamvideomode.cpp index 67aa7bc..762c108 100644 --- a/lib/qtcamvideomode.cpp +++ b/lib/qtcamvideomode.cpp @@ -235,4 +235,8 @@ QtCamVideoSettings *QtCamVideoMode::settings() { return d->settings; } +QtCamVideoResolution QtCamVideoMode::currentResolution() { + return d->resolution; +} + #include "moc_qtcamvideomode.cpp" diff --git a/lib/qtcamvideomode.h b/lib/qtcamvideomode.h index 649c5ca..77a489e 100644 --- a/lib/qtcamvideomode.h +++ b/lib/qtcamvideomode.h @@ -49,6 +49,8 @@ public: bool setResolution(const QtCamVideoResolution& resolution); + QtCamVideoResolution currentResolution(); + void setProfile(GstEncodingProfile *profile); QtCamVideoSettings *settings();