Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
d1492eef
Commit
d1492eef
authored
Sep 14, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7181 from valeriyvan:ioscleanup
parents
ab3814f9
69c7eea6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
28 deletions
+2
-28
cap_ios.h
modules/videoio/include/opencv2/videoio/cap_ios.h
+0
-26
cap_ios_video_camera.mm
modules/videoio/src/cap_ios_video_camera.mm
+2
-2
No files found.
modules/videoio/include/opencv2/videoio/cap_ios.h
View file @
d1492eef
...
...
@@ -41,27 +41,9 @@
@interface
CvAbstractCamera
:
NSObject
{
AVCaptureSession
*
captureSession
;
AVCaptureConnection
*
videoCaptureConnection
;
AVCaptureVideoPreviewLayer
*
captureVideoPreviewLayer
;
UIDeviceOrientation
currentDeviceOrientation
;
BOOL
cameraAvailable
;
BOOL
captureSessionLoaded
;
BOOL
running
;
BOOL
useAVCaptureVideoPreviewLayer
;
AVCaptureDevicePosition
defaultAVCaptureDevicePosition
;
AVCaptureVideoOrientation
defaultAVCaptureVideoOrientation
;
NSString
*
const
defaultAVCaptureSessionPreset
;
int
defaultFPS
;
UIView
*
parentView
;
int
imageWidth
;
int
imageHeight
;
}
@property
(
nonatomic
,
strong
)
AVCaptureSession
*
captureSession
;
...
...
@@ -121,14 +103,6 @@
dispatch_queue_t
videoDataOutputQueue
;
CALayer
*
customPreviewLayer
;
BOOL
grayscaleMode
;
BOOL
recordVideo
;
BOOL
rotateVideo
;
AVAssetWriterInput
*
recordAssetWriterInput
;
AVAssetWriterInputPixelBufferAdaptor
*
recordPixelBufferAdaptor
;
AVAssetWriter
*
recordAssetWriter
;
CMTime
lastSampleTime
;
}
...
...
modules/videoio/src/cap_ios_video_camera.mm
View file @
d1492eef
...
...
@@ -190,7 +190,7 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
break; // leave the layer in its last known orientation
}
switch (defaultAVCaptureVideoOrientation) {
switch (
self.
defaultAVCaptureVideoOrientation) {
case AVCaptureVideoOrientationLandscapeRight:
rotation_angle += 180;
break;
...
...
@@ -256,7 +256,7 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
break; // leave the layer in its last known orientation
}
switch (defaultAVCaptureVideoOrientation) {
switch (
self.
defaultAVCaptureVideoOrientation) {
case AVCaptureVideoOrientationLandscapeRight:
rotation_angle += 180;
break;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment