Advertisement
undeadhip

Untitled

Mar 30th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if ([SKYVideoAnalyser sharedInstance].analysing && self.analysisQueue.operationCount < (NSUInteger)self.analysisQueue.maxConcurrentOperationCount)
  2. {
  3.                             [self.analysisQueue addOperationWithBlock:^{
  4.                                 SKYYUVFrameSource* source = [SKYYUVFrameSource new];
  5.                                 source.frame = *(_renderYUVFrame[_renderFrameIndex]);
  6.                                 double seconds = [[NSDate new] timeIntervalSinceDate:[SKYVideoAnalyser sharedInstance].analysisStartTime];
  7.                                 NSLog(@"analysing time: %f", seconds);
  8.                                 [[SKYVideoAnalyser sharedInstance] analyzeFrame:source atTime:CMTimeMake(seconds * 1000, 1000) sequential:YES];
  9.                             }];
  10.                         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement