summaryrefslogtreecommitdiffstats
path: root/libhb/qsv_memory.h
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-04-17 10:33:04 -0600
committerJohn Stebbins <[email protected]>2019-04-17 11:25:13 -0600
commit76e9755eb71c500ba6a69c97c959f118873e5389 (patch)
treefef14dcd242551161bc077009537037b44d43fd6 /libhb/qsv_memory.h
parentb2cb27773a0cc1b84c847afec0b370e59236258d (diff)
qsv: use HB_PROJECT_FEATURE_QSV instead of USE_QSV
Diffstat (limited to 'libhb/qsv_memory.h')
-rw-r--r--libhb/qsv_memory.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/qsv_memory.h b/libhb/qsv_memory.h
index 397f95931..9397306f0 100644
--- a/libhb/qsv_memory.h
+++ b/libhb/qsv_memory.h
@@ -29,6 +29,10 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef QSV_MEMORY_H
#define QSV_MEMORY_H
+#include "project.h"
+
+#if HB_PROJECT_FEATURE_QSV
+
#include "mfx/mfxplugin.h"
#include "qsv_libav.h"
@@ -52,4 +56,5 @@ typedef struct{
int qsv_nv12_to_yuv420(struct SwsContext* sws_context,hb_buffer_t* dst, mfxFrameSurface1* src,mfxCoreInterface *core);
int qsv_yuv420_to_nv12(struct SwsContext* sws_context,mfxFrameSurface1* dst, hb_buffer_t* src);
+#endif // HB_PROJECT_FEATURE_QSV
#endif // QSV_MEMORY_H