|
@@ -40,6 +40,7 @@ open class PQImageFilter: PQBaseFilter {
|
|
} else {
|
|
} else {
|
|
if mSticker!.locationPath.count == 0 {
|
|
if mSticker!.locationPath.count == 0 {
|
|
FilterLog(2, message: "图片数据为空,创建失败")
|
|
FilterLog(2, message: "图片数据为空,创建失败")
|
|
|
|
+
|
|
return
|
|
return
|
|
}
|
|
}
|
|
var imageFilePath = mSticker?.locationPath ?? ""
|
|
var imageFilePath = mSticker?.locationPath ?? ""
|
|
@@ -109,19 +110,7 @@ open class PQImageFilter: PQBaseFilter {
|
|
FilterLog(2, message: "归16后大小 \(newImage!.size)")
|
|
FilterLog(2, message: "归16后大小 \(newImage!.size)")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
+
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
override open func renderFrame() {
|
|
override open func renderFrame() {
|
|
let inputFramebuffer: Framebuffer = inputFramebuffers[0]!
|
|
let inputFramebuffer: Framebuffer = inputFramebuffers[0]!
|
|
let inputSize = inputFramebuffer.sizeForTargetOrientation(.portrait)
|
|
let inputSize = inputFramebuffer.sizeForTargetOrientation(.portrait)
|