iOS的相机引擎:PBJVision

jopen 10年前

PBJVision是一个iOS的相机引擎,功能触摸记录视频,慢动作视频和照片拍摄。该库支持的功能,如重影,闪光/喷灯的使用,白色平衡调节,焦距调节,曝光调节和图像镜像。暂停和恢复视频捕获。

开始/暂停/恢复录制。

- (void)_handleLongPressGestureRecognizer:(UIGestureRecognizer *)gestureRecognizer  {      switch (gestureRecognizer.state) {        case UIGestureRecognizerStateBegan:          {              if (!_recording)                  [[PBJVision sharedInstance] startVideoCapture];              else                  [[PBJVision sharedInstance] resumeVideoCapture];              break;          }        case UIGestureRecognizerStateEnded:        case UIGestureRecognizerStateCancelled:        case UIGestureRecognizerStateFailed:          {              [[PBJVision sharedInstance] pauseVideoCapture];              break;          }        default:          break;      }  }

项目主页:http://www.open-open.com/lib/view/home/1418215945948