From f4bd868418555189faac85e0af3f3ad64058836a Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 8 Jun 2018 23:03:56 +0100 Subject: VCE: Stub out VCE available methods for the UI. This will need to check for hardware and potentially driver. TBD --- libhb/vce_common.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libhb/vce_common.c (limited to 'libhb/vce_common.c') diff --git a/libhb/vce_common.c b/libhb/vce_common.c new file mode 100644 index 000000000..98b76d8c5 --- /dev/null +++ b/libhb/vce_common.c @@ -0,0 +1,34 @@ +/* vce_common.c + * + * Copyright (c) 2003-2018 HandBrake Team + * This file is part of the HandBrake source code. + * Homepage: . + * 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 -- cgit v1.2.3