|
@@ -581,30 +581,13 @@ public class PQGPUImagePlayerView: UIView {
|
|
|
|
|
|
movie!.removeAllTargets()
|
|
|
|
|
|
- if(showFilter.stickerInfo?.type == StickerType.IMAGE.rawValue && showGaussianBlur){
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ let stickerAspectRatio = String(format: "%.6f", (showFilter.stickerInfo?.width ?? 0.0 ) / (showFilter.stickerInfo?.height ?? 0.0))
|
|
|
+
|
|
|
+ let canverAspectRatio = String(format: "%.6f",(movie?.mShowVidoSize.width ?? 0.0) / (movie?.mShowVidoSize.height ?? 0.0))
|
|
|
+ if(showFilter.stickerInfo?.type == StickerType.IMAGE.rawValue && showGaussianBlur && Float(stickerAspectRatio) != Float(canverAspectRatio)){
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- sharedImageProcessingContext.runOperationAsynchronously{ [self] in
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
let blurStickerModel:PQEditVisionTrackMaterialsModel? = showFilter.stickerInfo?.copy() as? PQEditVisionTrackMaterialsModel
|
|
|
blurStickerModel?.canvasFillType = stickerContentMode.aspectFillStr.rawValue
|
|
|
|
|
@@ -622,7 +605,7 @@ public class PQGPUImagePlayerView: UIView {
|
|
|
iosb.addTarget(showFilter)
|
|
|
showFilter.addTarget(self.renderView as ImageConsumer, atTargetIndex: 0)
|
|
|
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
}else{
|
|
|
movie?.addTarget(showFilter, atTargetIndex: 0)
|