Enable ISV on FUGU

Enable ISV (Intel Smart Video) on Fugu.
1. config TARGET_HAS_ISV := true
2. build ISV module libisv_omx_core
3. copy ISV configure file to /etc/video_isv_profile.xml

Bug: 17383204
BZ: 227971

Change-Id: I44b75b790fb435e9d739521e70cdce35c23ac3ba
Signed-off-by: Xigui Wang <xigui.wang@intel.com>
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 1a1e522..c266b8a 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -131,6 +131,9 @@
 USE_MEDIASDK := true
 MFX_IPP := p8
 
+# Video Post Processing
+TARGET_HAS_ISV := true
+
 COMMON_GLOBAL_CFLAGS += -DGFX_BUF_EXT
 
 # Disable IMG RS GPU driver
diff --git a/device.mk b/device.mk
index 7625627..379ee8d 100644
--- a/device.mk
+++ b/device.mk
@@ -105,7 +105,9 @@
     frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
     device/asus/fugu/media_codecs.xml:system/etc/media_codecs.xml \
     device/asus/fugu/vp9_interpredict.binary:system/etc/vp9_interpredict.binary \
-    device/asus/fugu/mfx_omxil_core.conf:system/etc/mfx_omxil_core.conf
+    device/asus/fugu/mfx_omxil_core.conf:system/etc/mfx_omxil_core.conf \
+    device/asus/fugu/video_isv_profile.xml:system/etc/video_isv_profile.xml
+
 
 # psb video
 PRODUCT_PACKAGES += \
@@ -173,6 +175,8 @@
     libOMXVideoEncoderMPEG4 \
     libOMXVideoEncoderVP8
 
+#libISV
+PRODUCT_PACKAGES += libisv_omx_core
 
 # pvr
 PRODUCT_PACKAGES += \
diff --git a/video_isv_profile.xml b/video_isv_profile.xml
new file mode 100644
index 0000000..f800e0f
--- /dev/null
+++ b/video_isv_profile.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- Copyright (C) 2012 The Android Open Source Project
+     Copyright (c) 2014 Intel Corporation
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+
+<VideoPostProcessSettings>
+	<Filter name="ProcFilterNoiseReduction">
+		<enabled value="false"/>
+		<minResolution value="320x240"/>
+		<maxResolution value="640x480"/>
+	</Filter>
+
+	<Filter name="ProcFilterDeinterlacing">
+		<enabled value="false"/>
+		<minResolution value="0"/>
+		<maxResolution value="FFFFFFFF"/>
+	</Filter>
+
+	<Filter name="ProcFilterSharpening">
+		<enabled value="true"/>
+		<minResolution value="176x144"/>
+		<maxResolution value="1920x1080"/>
+	</Filter>
+
+	<Filter name="ProcFilterColorBalance">
+		<enabled value="false"/>
+		<minResolution value="176x144"/>
+		<maxResolution value="640x480"/>
+	</Filter>
+
+	<Filter name="ProcFilterDeblocking">
+		<enabled value="false"/>
+		<minResolution value="176x144"/>
+		<maxResolution value="320x240"/>
+	</Filter>
+
+	<Filter name="ProcFilterFrameRateConversion">
+		<enabled value="true"/>
+		<minResolution value="176x144"/>
+		<maxResolution value="1920x1080"/>
+		<FRCRate input="15" rate="2"/>
+		<FRCRate input="25" rate="2"/>
+		<FRCRate input="30" rate="2"/>
+		<FRCRate input="24" rate="2.5"/>
+	</Filter>
+
+	<Filter name="ProcFilterSkinToneEnhancement">
+		<enabled value="false"/>
+		<minResolution value="0"/>
+		<maxResolution value="FFFFFFFF"/>
+	</Filter>
+
+	<Filter name="ProcFilterTotalColorCorrection">
+		<enabled value="false"/>
+		<minResolution value="0"/>
+		<maxResolution value="FFFFFFFF"/>
+	</Filter>
+
+	<Filter name="ProcFilterNonLinearAnamorphicScaling">
+		<enabled value="false"/>
+		<minResolution value="0"/>
+		<maxResolution value="FFFFFFFF"/>
+	</Filter>
+
+	<Filter name="ProcFilterImageStabilization">
+		<enabled value="false"/>
+		<minResolution value="0"/>
+		<maxResolution value="FFFFFFFF"/>
+	</Filter>
+
+</VideoPostProcessSettings>