Commit 1d27172b authored by Rohit Yadav's avatar Rohit Yadav

VideoPage: Implement setVideoFPS to set fps of a preset on VideoPage.

Values are based on information available over wikipedia.
parent 2863cd31
...@@ -134,24 +134,31 @@ VideoPage::updateVideoPresets() ...@@ -134,24 +134,31 @@ VideoPage::updateVideoPresets()
case PRESET_VideoCustom: break; case PRESET_VideoCustom: break;
case PRESET_480i: case PRESET_480i:
setVideoResolution( 720, 480 ); setVideoResolution( 720, 480 );
setVideoFPS( 30.0 );
break; break;
case PRESET_576i: case PRESET_576i:
setVideoResolution( 720, 576 ); setVideoResolution( 720, 576 );
setVideoFPS( 25.0 );
break; break;
case PRESET_480p: case PRESET_480p:
setVideoResolution( 720, 480 ); setVideoResolution( 720, 480 );
setVideoFPS( 29.97 );
break; break;
case PRESET_576p: case PRESET_576p:
setVideoResolution( 720, 576 ); setVideoResolution( 720, 576 );
setVideoFPS( 29.97 );
break; break;
case PRESET_720p: case PRESET_720p:
setVideoResolution( 1280, 720 ); setVideoResolution( 1280, 720 );
setVideoFPS( 29.97 );
break; break;
case PRESET_1080i: case PRESET_1080i:
setVideoResolution( 1920, 1080 ); setVideoResolution( 1920, 1080 );
setVideoFPS( 30.0 );
break; break;
case PRESET_1080p: case PRESET_1080p:
setVideoResolution( 1920, 1080 ); setVideoResolution( 1920, 1080 );
setVideoFPS( 29.97 );
break; break;
} }
} }
...@@ -182,3 +189,9 @@ VideoPage::setVideoResolution( int width, int height ) ...@@ -182,3 +189,9 @@ VideoPage::setVideoResolution( int width, int height )
ui.spinBoxVideoWidth->setValue( width ); ui.spinBoxVideoWidth->setValue( width );
ui.spinBoxVideoHeight->setValue( height ); ui.spinBoxVideoHeight->setValue( height );
} }
void
VideoPage::setVideoFPS( double fps )
{
ui.doubleSpinBoxVideoFPS->setValue( fps );
}
...@@ -75,6 +75,7 @@ class VideoPage : public QWizardPage ...@@ -75,6 +75,7 @@ class VideoPage : public QWizardPage
void setVideoFormEnabled( bool enabled ); void setVideoFormEnabled( bool enabled );
void setAudioFormEnabled( bool enabled ); void setAudioFormEnabled( bool enabled );
void setVideoResolution( int width, int height ); void setVideoResolution( int width, int height );
void setVideoFPS( double fps );
Ui::VideoPage ui; Ui::VideoPage ui;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment