Commit d3ad0ff1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: spref small rework of video and codecs part

Move the skip-frame pref from video to codecs
parent 6e4f7493
...@@ -216,7 +216,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -216,7 +216,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_BOOL( "overlay", overlay ); CONFIG_BOOL( "overlay", overlay );
CONFIG_BOOL( "video-on-top", alwaysOnTop ); CONFIG_BOOL( "video-on-top", alwaysOnTop );
CONFIG_BOOL( "video-deco", windowDecorations ); CONFIG_BOOL( "video-deco", windowDecorations );
CONFIG_BOOL( "skip-frames", skipFrames );
CONFIG_GENERIC( "vout", Module, ui.voutLabel, outputModule ); CONFIG_GENERIC( "vout", Module, ui.voutLabel, outputModule );
CONFIG_BOOL( "video-wallpaper", wallpaperMode ); CONFIG_BOOL( "video-wallpaper", wallpaperMode );
...@@ -455,6 +454,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -455,6 +454,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
optionWidgets.append( ui.DVDDevice ); optionWidgets.append( ui.DVDDevice );
optionWidgets.append( ui.cachingCombo ); optionWidgets.append( ui.cachingCombo );
CONFIG_GENERIC( "ffmpeg-skiploopfilter", IntegerList, ui.filterLabel, loopFilterBox ); CONFIG_GENERIC( "ffmpeg-skiploopfilter", IntegerList, ui.filterLabel, loopFilterBox );
CONFIG_BOOL( "skip-frames", skipFrames );
CONFIG_GENERIC( "sout-x264-tune", StringList, ui.x264Label, tuneBox ); CONFIG_GENERIC( "sout-x264-tune", StringList, ui.x264Label, tuneBox );
CONFIG_GENERIC( "sout-x264-preset", StringList, ui.x264Label, presetBox ); CONFIG_GENERIC( "sout-x264-preset", StringList, ui.x264Label, presetBox );
CONFIG_GENERIC( "sout-x264-profile", StringList, ui.x264profileLabel, profileBox ); CONFIG_GENERIC( "sout-x264-profile", StringList, ui.x264profileLabel, profileBox );
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>680</width> <width>737</width>
<height>537</height> <height>635</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
...@@ -70,76 +70,41 @@ ...@@ -70,76 +70,41 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="1"> <item row="7" column="1" colspan="2">
<widget class="QComboBox" name="loopFilterBox"/> <widget class="QComboBox" name="loopFilterBox"/>
</item> </item>
<item row="10" column="0"> <item row="13" column="0">
<widget class="QLabel" name="x264Label"> <widget class="QLabel" name="x264Label">
<property name="text"> <property name="text">
<string>x264 profile and level selection</string> <string>x264 profile and level selection</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>profileBox</cstring>
<cstring>levelBox</cstring> <cstring>levelBox</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="10" column="1"> <item row="13" column="1">
<widget class="QComboBox" name="profileBox"/> <widget class="QComboBox" name="profileBox"/>
</item> </item>
<item row="10" column="2"> <item row="13" column="2">
<widget class="QLineEdit" name="levelBox"/> <widget class="QLineEdit" name="levelBox"/>
</item> </item>
<item row="9" column="0"> <item row="12" column="0">
<widget class="QLabel" name="x264profileLabel"> <widget class="QLabel" name="x264profileLabel">
<property name="text"> <property name="text">
<string>x264 preset and tuning selection</string> <string>x264 preset and tuning selection</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>presetBox</cstring>
<cstring>tuneBox</cstring> <cstring>tuneBox</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="9" column="1"> <item row="12" column="1">
<widget class="QComboBox" name="presetBox"/> <widget class="QComboBox" name="presetBox"/>
</item> </item>
<item row="9" column="2"> <item row="12" column="2">
<widget class="QComboBox" name="tuneBox"/> <widget class="QComboBox" name="tuneBox"/>
</item> </item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QSpinBox" name="PostProcLevel">
<property name="alignment">
<set>Qt::AlignRight</set>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>26</number>
</property>
<property name="value">
<number>6</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="ppLabel"> <widget class="QLabel" name="ppLabel">
<property name="minimumSize"> <property name="minimumSize">
...@@ -163,13 +128,46 @@ ...@@ -163,13 +128,46 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0"> <item row="8" column="0" colspan="3">
<widget class="QCheckBox" name="skipFrames">
<property name="text">
<string>Skip frames</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="PostProcLevel">
<property name="alignment">
<set>Qt::AlignRight</set>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>26</number>
</property>
<property name="value">
<number>6</number>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QCheckBox" name="systemCodecBox"> <widget class="QCheckBox" name="systemCodecBox">
<property name="text"> <property name="text">
<string>Use system codecs if available (better quality, but dangerous)</string> <string>Use system codecs if available (better quality, but dangerous)</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="11" column="0" colspan="3">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
...@@ -353,7 +351,6 @@ ...@@ -353,7 +351,6 @@
<tabstop>live555TransportHTTPRadio</tabstop> <tabstop>live555TransportHTTPRadio</tabstop>
<tabstop>live555TransportRTSP_TCPRadio</tabstop> <tabstop>live555TransportRTSP_TCPRadio</tabstop>
<tabstop>cachingCombo</tabstop> <tabstop>cachingCombo</tabstop>
<tabstop>PostProcLevel</tabstop>
<tabstop>hwAccelBox</tabstop> <tabstop>hwAccelBox</tabstop>
<tabstop>loopFilterBox</tabstop> <tabstop>loopFilterBox</tabstop>
</tabstops> </tabstops>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>820</width> <width>816</width>
<height>626</height> <height>626</height>
</rect> </rect>
</property> </property>
...@@ -57,14 +57,14 @@ ...@@ -57,14 +57,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1" colspan="2"> <item row="7" column="1" colspan="2">
<widget class="QComboBox" name="outputModule"> <widget class="QComboBox" name="outputModule">
<property name="maxVisibleItems"> <property name="maxVisibleItems">
<number>15</number> <number>15</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="7" column="0">
<widget class="QLabel" name="voutLabel"> <widget class="QLabel" name="voutLabel">
<property name="text"> <property name="text">
<string>Output</string> <string>Output</string>
...@@ -84,17 +84,14 @@ ...@@ -84,17 +84,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0" colspan="2"> <item row="3" column="0">
<widget class="QCheckBox" name="skipFrames"> <widget class="QCheckBox" name="hwYUVBox">
<property name="text"> <property name="text">
<string>Skip frames</string> <string>Use hardware YUV-&gt;RGB conversions</string>
</property>
<property name="checked">
<bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="2"> <item row="2" column="2">
<widget class="QCheckBox" name="windowDecorations"> <widget class="QCheckBox" name="windowDecorations">
<property name="text"> <property name="text">
<string>Window decorations</string> <string>Window decorations</string>
...@@ -104,13 +101,6 @@ ...@@ -104,13 +101,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="2">
<widget class="QCheckBox" name="hwYUVBox">
<property name="text">
<string>Use hardware YUV-&gt;RGB conversions</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
...@@ -303,10 +293,14 @@ ...@@ -303,10 +293,14 @@
<tabstop>fullscreen</tabstop> <tabstop>fullscreen</tabstop>
<tabstop>overlay</tabstop> <tabstop>overlay</tabstop>
<tabstop>alwaysOnTop</tabstop> <tabstop>alwaysOnTop</tabstop>
<tabstop>skipFrames</tabstop> <tabstop>windowDecorations</tabstop>
<tabstop>hwYUVBox</tabstop>
<tabstop>outputModule</tabstop> <tabstop>outputModule</tabstop>
<tabstop>wallpaperMode</tabstop> <tabstop>wallpaperMode</tabstop>
<tabstop>dXdisplayDevice</tabstop> <tabstop>dXdisplayDevice</tabstop>
<tabstop>deinterlaceBox</tabstop>
<tabstop>deinterlaceModeBox</tabstop>
<tabstop>arLine</tabstop>
<tabstop>snapshotsDirectory</tabstop> <tabstop>snapshotsDirectory</tabstop>
<tabstop>snapshotsDirectoryBrowse</tabstop> <tabstop>snapshotsDirectoryBrowse</tabstop>
<tabstop>snapshotsPrefix</tabstop> <tabstop>snapshotsPrefix</tabstop>
......
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