[vlmc-devel] VideoPage: Implement setVideoFPS to set fps of a preset on VideoPage.
Rohit Yadav
git at videolan.org
Tue Aug 2 02:10:34 CEST 2011
vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Tue Aug 2 05:57:09 2011 +0530| [1d27172b45203f3e724f579a254de920a5a906e4] | committer: Rohit Yadav
VideoPage: Implement setVideoFPS to set fps of a preset on VideoPage.
Values are based on information available over wikipedia.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=1d27172b45203f3e724f579a254de920a5a906e4
---
src/Gui/wizard/VideoPage.cpp | 13 +++++++++++++
src/Gui/wizard/VideoPage.h | 1 +
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/Gui/wizard/VideoPage.cpp b/src/Gui/wizard/VideoPage.cpp
index 7175f2d..9a3a118 100644
--- a/src/Gui/wizard/VideoPage.cpp
+++ b/src/Gui/wizard/VideoPage.cpp
@@ -134,24 +134,31 @@ VideoPage::updateVideoPresets()
case PRESET_VideoCustom: break;
case PRESET_480i:
setVideoResolution( 720, 480 );
+ setVideoFPS( 30.0 );
break;
case PRESET_576i:
setVideoResolution( 720, 576 );
+ setVideoFPS( 25.0 );
break;
case PRESET_480p:
setVideoResolution( 720, 480 );
+ setVideoFPS( 29.97 );
break;
case PRESET_576p:
setVideoResolution( 720, 576 );
+ setVideoFPS( 29.97 );
break;
case PRESET_720p:
setVideoResolution( 1280, 720 );
+ setVideoFPS( 29.97 );
break;
case PRESET_1080i:
setVideoResolution( 1920, 1080 );
+ setVideoFPS( 30.0 );
break;
case PRESET_1080p:
setVideoResolution( 1920, 1080 );
+ setVideoFPS( 29.97 );
break;
}
}
@@ -182,3 +189,9 @@ VideoPage::setVideoResolution( int width, int height )
ui.spinBoxVideoWidth->setValue( width );
ui.spinBoxVideoHeight->setValue( height );
}
+
+void
+VideoPage::setVideoFPS( double fps )
+{
+ ui.doubleSpinBoxVideoFPS->setValue( fps );
+}
diff --git a/src/Gui/wizard/VideoPage.h b/src/Gui/wizard/VideoPage.h
index d7142ee..ac0388b 100644
--- a/src/Gui/wizard/VideoPage.h
+++ b/src/Gui/wizard/VideoPage.h
@@ -75,6 +75,7 @@ class VideoPage : public QWizardPage
void setVideoFormEnabled( bool enabled );
void setAudioFormEnabled( bool enabled );
void setVideoResolution( int width, int height );
+ void setVideoFPS( double fps );
Ui::VideoPage ui;
};
More information about the Vlmc-devel
mailing list