[vlc-devel] commit: Qt: add the hw-accel to simple preferences (Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Dec 4 07:21:45 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Nov 27 18:50:14 2009 +0100| [4efcb1880f91195c6e14014c8577548205bcc062] | committer: Jean-Baptiste Kempf 

Qt: add the hw-accel to simple preferences

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4efcb1880f91195c6e14014c8577548205bcc062
---

 modules/gui/qt4/components/simple_preferences.cpp |    2 +-
 modules/gui/qt4/ui/sprefs_input.ui                |   45 ++++++++++-----------
 2 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index cbf3e77..435529b 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -429,8 +429,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             CONFIG_GENERIC( "prefer-system-codecs", Bool, NULL, systemCodecBox );
 #else
             ui.systemCodecBox->hide();
-            ui.systemCodecLabel->hide();
 #endif
+            CONFIG_GENERIC( "ffmpeg-hw", Bool, NULL, hwAccelBox );
             optionWidgets.append( ui.DVDDevice );
             optionWidgets.append( ui.cachingCombo );
             CONFIG_GENERIC( "ffmpeg-skiploopfilter", IntegerList, ui.filterLabel, loopFilterBox );
diff --git a/modules/gui/qt4/ui/sprefs_input.ui b/modules/gui/qt4/ui/sprefs_input.ui
index 2564df3..5b55413 100644
--- a/modules/gui/qt4/ui/sprefs_input.ui
+++ b/modules/gui/qt4/ui/sprefs_input.ui
@@ -8,7 +8,7 @@
     <x>0</x>
     <y>0</y>
     <width>687</width>
-    <height>489</height>
+    <height>548</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -227,22 +227,6 @@
       <string>Codecs</string>
      </property>
      <layout class="QGridLayout" name="gridLayout">
-      <item row="2" column="0">
-       <widget class="QLabel" name="ppLabel">
-        <property name="minimumSize">
-         <size>
-          <width>250</width>
-          <height>0</height>
-         </size>
-        </property>
-        <property name="text">
-         <string>Video quality post-processing level</string>
-        </property>
-        <property name="buddy">
-         <cstring>PostProcLevel</cstring>
-        </property>
-       </widget>
-      </item>
       <item row="7" column="0">
        <widget class="QLabel" name="filterLabel">
         <property name="text">
@@ -289,17 +273,33 @@
         </item>
        </layout>
       </item>
-      <item row="1" column="0">
-       <widget class="QLabel" name="systemCodecLabel">
+      <item row="2" column="0">
+       <widget class="QLabel" name="ppLabel">
+        <property name="minimumSize">
+         <size>
+          <width>250</width>
+          <height>0</height>
+         </size>
+        </property>
         <property name="text">
-         <string>System codecs (better quality)</string>
+         <string>Video quality post-processing level</string>
+        </property>
+        <property name="buddy">
+         <cstring>PostProcLevel</cstring>
         </property>
        </widget>
       </item>
-      <item row="1" column="1">
+      <item row="3" column="0">
+       <widget class="QCheckBox" name="hwAccelBox">
+        <property name="text">
+         <string>Use GPU acceleration (experimental)</string>
+        </property>
+       </widget>
+      </item>
+      <item row="4" column="0" colspan="2">
        <widget class="QCheckBox" name="systemCodecBox">
         <property name="text">
-         <string>Use host codecs if available</string>
+         <string>Use system codecs if available (better quality, but dangerous)</string>
         </property>
        </widget>
       </item>
@@ -317,7 +317,6 @@
   <tabstop>PostProcLevel</tabstop>
   <tabstop>AviRepair</tabstop>
   <tabstop>live555TransportRTSP_TCPRadio</tabstop>
-  <tabstop>systemCodecBox</tabstop>
  </tabstops>
  <resources/>
  <connections/>




More information about the vlc-devel mailing list