Skip to content

Commit

Permalink
Merge pull request #31 from HeraShowFeng/optimize_kiwi
Browse files Browse the repository at this point in the history
iOS optimize big eyes and thin face function for kiwi in demo
  • Loading branch information
lawder authored Jan 8, 2018
2 parents 6d207af + 3fbe325 commit 97d4827
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Example/PLShortVideoKitDemo/KiwiFaceSDK/KWRenderManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 97d4827

Please sign in to comment.