]> granicus.if.org Git - handbrake/commitdiff
VCE: Stub out VCE available methods for the UI. This will need to check for hardware...
authorsr55 <sr55.hb@outlook.com>
Fri, 8 Jun 2018 22:03:56 +0000 (23:03 +0100)
committersr55 <sr55.hb@outlook.com>
Fri, 8 Jun 2018 22:03:56 +0000 (23:03 +0100)
libhb/vce_common.c [new file with mode: 0644]
libhb/vce_common.h [new file with mode: 0644]

diff --git a/libhb/vce_common.c b/libhb/vce_common.c
new file mode 100644 (file)
index 0000000..98b76d8
--- /dev/null
@@ -0,0 +1,34 @@
+/* vce_common.c
+ *
+ * Copyright (c) 2003-2018 HandBrake Team
+ * This file is part of the HandBrake source code.
+ * Homepage: <http://handbrake.fr/>.
+ * It may be used under the terms of the GNU General Public License v2.
+ * For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
+ */
+
+#ifdef USE_VCE
+
+int hb_vce_h264_available()
+{
+    return 1;
+}
+
+int hb_vce_h265_available()
+{
+    return 1;
+}
+
+#else
+
+int hb_vce_h264_available()
+{
+    return 0;
+}
+
+int hb_vce_h265_available()
+{
+    return 0;
+}
+
+#endif // USE_QSV
diff --git a/libhb/vce_common.h b/libhb/vce_common.h
new file mode 100644 (file)
index 0000000..93accea
--- /dev/null
@@ -0,0 +1,11 @@
+/* vce_common.h
+ *
+ * Copyright (c) 2003-2018 HandBrake Team
+ * This file is part of the HandBrake source code.
+ * Homepage: <http://handbrake.fr/>.
+ * It may be used under the terms of the GNU General Public License v2.
+ * For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
+ */
+
+int            hb_vce_h264_available();
+int            hb_vce_h265_available();