mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-28 02:56:45 +08:00
no include ipp by default
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/******************************************************************************
|
||||
ImageConverter: Base class for image resizing & color model convertion
|
||||
Copyright (C) 2012-2013 Wang Bin <wbsecg1@gmail.com>
|
||||
Copyright (C) 2012-2014 Wang Bin <wbsecg1@gmail.com>
|
||||
|
||||
* This file is part of QtAV
|
||||
|
||||
@@ -35,7 +35,9 @@ extern void RegisterImageConverterIPP_Man();
|
||||
void ImageConverter_RegisterAll()
|
||||
{
|
||||
RegisterImageConverterFF_Man();
|
||||
#if QTAV_HAVE(IPP)
|
||||
RegisterImageConverterIPP_Man();
|
||||
#endif //QTAV_HAVE(IPP)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/******************************************************************************
|
||||
ImageConverterIPP: Image resizing & color model convertion using Intel IPP
|
||||
Copyright (C) 2012-2013 Wang Bin <wbsecg1@gmail.com>
|
||||
Copyright (C) 2012-2014 Wang Bin <wbsecg1@gmail.com>
|
||||
|
||||
* This file is part of QtAV
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <QtAV/QtAV_Compat.h>
|
||||
#include "prepost.h"
|
||||
|
||||
#ifdef IPP_LINK
|
||||
#if QTAV_HAVE(IPP)
|
||||
#include <ipp.h>
|
||||
#else
|
||||
|
||||
@@ -68,7 +68,7 @@ bool ImageConverterIPP::convert(const quint8 *const srcSlice[], const int srcStr
|
||||
{
|
||||
DPTR_D(ImageConverterIPP);
|
||||
//color convertion, no scale
|
||||
#ifdef IPP_LINK
|
||||
#if QTAV_HAVE(IPP)
|
||||
struct {
|
||||
const quint8 *data[3];
|
||||
int linesize[3];
|
||||
|
||||
+3
-3
@@ -52,10 +52,11 @@ config_avresample {
|
||||
SOURCES += AudioResamplerLibav.cpp
|
||||
LIBS += -lavresample
|
||||
}
|
||||
ipp-link {
|
||||
DEFINES += IPP_LINK
|
||||
config_ipp {
|
||||
DEFINES += QTAV_HAVE_IPP=1
|
||||
ICCROOT = $$(IPPROOT)/../compiler
|
||||
INCLUDEPATH += $$(IPPROOT)/include
|
||||
SOURCES += ImageConverterIPP.cpp
|
||||
message("QMAKE_TARGET.arch" $$QMAKE_TARGET.arch)
|
||||
*64|contains(QMAKE_TARGET.arch, x86_64)|contains(TARGET_ARCH, x86_64) {
|
||||
IPPARCH=intel64
|
||||
@@ -162,7 +163,6 @@ SOURCES += \
|
||||
GraphicsItemRenderer.cpp \
|
||||
ImageConverter.cpp \
|
||||
ImageConverterFF.cpp \
|
||||
ImageConverterIPP.cpp \
|
||||
QPainterRenderer.cpp \
|
||||
OSD.cpp \
|
||||
OSDFilter.cpp \
|
||||
|
||||
Reference in New Issue
Block a user