summaryrefslogtreecommitdiffstats
path: root/libhb/handbrake/qsv_common.h
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-09-11 19:09:22 -0700
committerJohn Stebbins <[email protected]>2019-09-12 10:25:54 -0700
commit0279a5584ad3644ec3bcca98f0b1b7fb547dd2a1 (patch)
tree67cef6fbf13778cee7e5f077470ae178f4e60de8 /libhb/handbrake/qsv_common.h
parent8a354a757bafb792b5189367e29cbda9a193f2b6 (diff)
libhb: make hb_buffer_t libhb private
hb_buffer_t conflicts with a harfbuzz typedef by the same name
Diffstat (limited to 'libhb/handbrake/qsv_common.h')
-rw-r--r--libhb/handbrake/qsv_common.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/libhb/handbrake/qsv_common.h b/libhb/handbrake/qsv_common.h
index 9f73d97fb..2277468b0 100644
--- a/libhb/handbrake/qsv_common.h
+++ b/libhb/handbrake/qsv_common.h
@@ -16,6 +16,13 @@ int hb_qsv_available();
#if HB_PROJECT_FEATURE_QSV
+// Public API
+int hb_qsv_impl_set_preferred(const char *name);
+void hb_qsv_force_workarounds(); // for developers only
+
+#ifdef __LIBHB__
+// Private API
+
#include "mfx/mfxvideo.h"
#include "mfx/mfxplugin.h"
#include "libavcodec/avcodec.h"
@@ -191,11 +198,9 @@ const char* hb_qsv_level_name (uint32_t codec_id, uint16_t level_id);
const char* hb_qsv_frametype_name(uint16_t qsv_frametype);
uint8_t hb_qsv_frametype_xlat(uint16_t qsv_frametype, uint16_t *out_flags);
-int hb_qsv_impl_set_preferred(const char *name);
const char* hb_qsv_impl_get_name(int impl);
const char* hb_qsv_impl_get_via_name(int impl);
-void hb_qsv_force_workarounds(); // for developers only
typedef struct QSVMid {
AVBufferRef *hw_frames_ref;
@@ -246,5 +251,6 @@ int hb_qsv_preset_is_zero_copy_enabled(const hb_dict_t *job_dict);
void hb_qsv_uninit_dec(AVCodecContext *s);
void hb_qsv_uninit_enc();
+#endif // __LIBHB__
#endif // HB_PROJECT_FEATURE_QSV
#endif // HANDBRAKE_QSV_COMMON_H