|
@@ -549,7 +549,7 @@ public class PQGPUImagePlayerView: UIView {
|
|
|
|
|
|
|
|
|
func changeFilter(currTime: Float64) {
|
|
|
- let starts:CFTimeInterval = CFAbsoluteTimeGetCurrent()
|
|
|
+
|
|
|
BFLog(message: " 要查找的 currTime is \(currTime)")
|
|
|
|
|
|
self.cacheFilters.removeAll(where: {(filter) -> Bool in
|
|
@@ -564,17 +564,15 @@ public class PQGPUImagePlayerView: UIView {
|
|
|
|
|
|
})
|
|
|
|
|
|
- if(showIndex == nil){
|
|
|
-
|
|
|
+ guard let showIndex = showIndex else {
|
|
|
FilterLog(message: "缓存没有查找到?出现数据错误!!!!")
|
|
|
- for (index,bsFilter )in cacheFilters.enumerated() {
|
|
|
+
|
|
|
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- let showFilter: PQBaseFilter = cacheFilters[showIndex ?? 0]
|
|
|
+ let showFilter: PQBaseFilter = cacheFilters[showIndex]
|
|
|
|
|
|
FilterLog(message: "缓存操作 查找到命中的显示是为:\(currTime) 缓存数据timeline in :\(showFilter.stickerInfo?.timelineIn ?? 0.0)) timelineOut:\(showFilter.stickerInfo?.timelineOut ?? 0.0) in:\(showFilter.stickerInfo?.model_in ?? 0.0) out:\(showFilter.stickerInfo?.out ?? 0.0) 缓存数 \(cacheFilters.count) index: \(String(describing: showIndex))")
|
|
|
|