From 3fbe32505b19b5f2abbe02b3073a04c53a4c233d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E6=96=87=E7=A7=80?= <1246341193@qq.com> Date: Mon, 8 Jan 2018 16:56:32 +0800 Subject: [PATCH] optimize big eyes and thin face function for kiwi in demo --- Example/PLShortVideoKitDemo/KiwiFaceSDK/KWRenderManager.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Example/PLShortVideoKitDemo/KiwiFaceSDK/KWRenderManager.m b/Example/PLShortVideoKitDemo/KiwiFaceSDK/KWRenderManager.m index dab6cef6..d0eb9a3a 100755 --- a/Example/PLShortVideoKitDemo/KiwiFaceSDK/KWRenderManager.m +++ b/Example/PLShortVideoKitDemo/KiwiFaceSDK/KWRenderManager.m @@ -209,14 +209,14 @@ - (void)loadRender { - (void)resetDistortionParams { if ([[Global sharedManager] isPixcelBufferRotateVertical]) { - self.smallFaceBigEyeFilter.y_scale = self.varHeight / self.varWidth; - + self.smallFaceBigEyeFilter.y_scale = self.varWidth / self.varHeight; + ((ETDistortionFilter *) self.distortionFilters[1]).y_scale = self.varHeight / self.varWidth; ((FatFaceDistortionFilter *) self.distortionFilters[2]).y_scale = self.varHeight / self.varWidth; ((SlimFaceDistortionFilter *) self.distortionFilters[3]).y_scale = self.varHeight / self.varWidth; ((PearFaceDistortionFilter *) self.distortionFilters[4]).y_scale = self.varHeight / self.varWidth; } else { - self.smallFaceBigEyeFilter.y_scale = self.varWidth / self.varHeight; + self.smallFaceBigEyeFilter.y_scale = self.varHeight / self.varWidth; ((ETDistortionFilter *) self.distortionFilters[1]).y_scale = self.varWidth / self.varHeight; ((FatFaceDistortionFilter *) self.distortionFilters[2]).y_scale = self.varWidth / self.varHeight;