Bläddra i källkod

图片资源整理

harry 3 år sedan
förälder
incheckning
847da1fafe

BIN
BFFramework/Assets/Resources/loading_pq.gif


BIN
BFFramework/Assets/Resources/stuckPoint_music_loading.gif


+ 1 - 1
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointEditerController.swift

@@ -1914,7 +1914,7 @@ extension PQStuckPointEditerController {
                                 material.asset == photo.asset
                             })
 // MARK: SanW-2021.11.15-不在导出到沙盒,直接用本地地址
-                            tempPhoto?.locationPath = fileName?.replacingOccurrences(of: "file:///", with: "")
+                            tempPhoto?.locationPath = fileName.replacingOccurrences(of: "file://", with: "")
 //                            if fileName.count > 0 {
 //                                createDirectory(path: photoLibraryDirectory)
 //                                let outFilePath = photoLibraryDirectory + fileName.md5 + ".mp4"

+ 1 - 1
BFFramework/Classes/Stuckpoint/View/PQStuckPointLoadingView.swift

@@ -17,7 +17,7 @@ class PQStuckPointLoadingView: UIView {
     /// 同步进度显示
     lazy var loadingView: AnimatedImageView = {
         let videoLoadingView = AnimatedImageView()
-        videoLoadingView.kf.setImage(with: URL(fileURLWithPath: Bundle.main.path(forResource: "stuckPoint_edit_loading", ofType: ".gif")!))
+        videoLoadingView.kf.setImage(with: URL(fileURLWithPath: (Bundle.current(moduleName: "BFFramework", isAssets: false)?.path(forResource: "stuckPoint_edit_loading", ofType: ".gif"))!))
         videoLoadingView.stopAnimating()
         return videoLoadingView
     }()

+ 6 - 3
BFFramework/Classes/Stuckpoint/ViewModel/PQGPUImagePlayerView.swift

@@ -517,9 +517,12 @@ public class PQGPUImagePlayerView: UIView {
 
             }
             
-            
-            for (index, filter) in cacheFilters.enumerated() {
-                FilterLog(2, message: " 初始化 config create currentSticker timelinein \(String(describing: filter.stickerInfo?.timelineIn)) timelineout \(String(describing: filter.stickerInfo?.timelineOut))  in :\(String(describing: filter.stickerInfo?.model_in)) out \(String(describing: filter.stickerInfo?.out))  index\(index)")
+            DispatchQueue.global().async {[weak self] in
+                if let strongSelf = self {
+                    for (index, filter) in strongSelf.cacheFilters.enumerated() {
+                        FilterLog(2, message: " 初始化 config create currentSticker timelinein \(String(describing: filter.stickerInfo?.timelineIn)) timelineout \(String(describing: filter.stickerInfo?.timelineOut))  in :\(String(describing: filter.stickerInfo?.model_in)) out \(String(describing: filter.stickerInfo?.out))  index\(index)")
+                    }
+                }
             }
             
             if(cacheFilters.first != nil){