diff options
author | sr55 <[email protected]> | 2018-06-08 23:03:56 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-06-08 23:03:56 +0100 |
commit | f4bd868418555189faac85e0af3f3ad64058836a (patch) | |
tree | 975be3cb0553b8a895b8fad6050f25d34b1ff9ec /libhb | |
parent | 41cd137d25fbb2f80d6a9951057459580cdedc37 (diff) |
VCE: Stub out VCE available methods for the UI. This will need to check for hardware and potentially driver. TBD
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/vce_common.c | 34 | ||||
-rw-r--r-- | libhb/vce_common.h | 11 |
2 files changed, 45 insertions, 0 deletions
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: <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 index 000000000..93acceaac --- /dev/null +++ b/libhb/vce_common.h @@ -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(); |