Remove redundancy scale calculation

This commit is contained in:
zhongwuzw 2019-01-29 19:42:09 +08:00
parent 5dab8f0973
commit ed8c80551a
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over
CGSize sourceResolution = CGSizeZero;
sourceResolution.width = CGImageGetWidth(sourceImageRef);
sourceResolution.height = CGImageGetHeight(sourceImageRef);
CGFloat sourceTotalPixels = sourceResolution.width * sourceResolution.height * image.scale * image.scale;
CGFloat sourceTotalPixels = sourceResolution.width * sourceResolution.height;
// Determine the scale ratio to apply to the input image
// that results in an output image of the defined size.
// see kDestImageSizeMB, and how it relates to destTotalPixels.