rays 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/rays.gemspec +1 -1
- data/src/ios/camera.mm +13 -6
- data/src/osx/camera.mm +2 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8efafd5f580c6cc07ff8055d96a71d5b4ab7d65146e5d43872f04860b2bf9b7f
|
4
|
+
data.tar.gz: 0f3332f88fd3e413374b65ef70d72a210fbad4faa234a92ebe43ff465d97e99f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b7cc4a91bf19910f0b846f761d0996d7c06a678a2297c2ac2768233fe56d193464f960300934d0d42496aa4882c67f5c6807285443ddad13a68d311ced3e4d
|
7
|
+
data.tar.gz: a02ba9f0b544539cbd8f826ef858a17704d1a07f8f4268e28aa4b2c95d1aa29ea17c2fa87d0a73241f8ccbe1cfdee6bee3887a974dd8c74375e4159f0b89a9e6
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.18
|
data/rays.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
s.required_ruby_version = '~> 2'
|
30
30
|
|
31
31
|
s.add_runtime_dependency 'xot', '~> 0.1.16'
|
32
|
-
s.add_runtime_dependency 'rucy', '~> 0.1.
|
32
|
+
s.add_runtime_dependency 'rucy', '~> 0.1.18'
|
33
33
|
|
34
34
|
s.files = `git ls-files`.split $/
|
35
35
|
s.executables = s.files.grep(%r{^bin/}) {|f| File.basename f}
|
data/src/ios/camera.mm
CHANGED
@@ -116,9 +116,9 @@ static int video_input_queue_index = 0;
|
|
116
116
|
return YES;
|
117
117
|
}
|
118
118
|
|
119
|
-
- (void)
|
119
|
+
- (void) updateOrientation
|
120
120
|
{
|
121
|
-
assert(
|
121
|
+
assert(NSThread.isMainThread);
|
122
122
|
|
123
123
|
switch (UIApplication.sharedApplication.statusBarOrientation)
|
124
124
|
{
|
@@ -126,11 +126,11 @@ static int video_input_queue_index = 0;
|
|
126
126
|
orientation = AVCaptureVideoOrientationPortraitUpsideDown;
|
127
127
|
break;
|
128
128
|
|
129
|
-
case
|
129
|
+
case UIInterfaceOrientationLandscapeLeft:
|
130
130
|
orientation = AVCaptureVideoOrientationLandscapeLeft;
|
131
131
|
break;
|
132
132
|
|
133
|
-
case
|
133
|
+
case UIInterfaceOrientationLandscapeRight:
|
134
134
|
orientation = AVCaptureVideoOrientationLandscapeRight;
|
135
135
|
break;
|
136
136
|
|
@@ -343,7 +343,13 @@ namespace Rays
|
|
343
343
|
AVCaptureDeviceDiscoverySession* discoverySession =
|
344
344
|
[AVCaptureDeviceDiscoverySession
|
345
345
|
discoverySessionWithDeviceTypes: @[
|
346
|
-
|
346
|
+
AVCaptureDeviceTypeBuiltInTripleCamera,
|
347
|
+
AVCaptureDeviceTypeBuiltInDualWideCamera,
|
348
|
+
AVCaptureDeviceTypeBuiltInDualCamera,
|
349
|
+
AVCaptureDeviceTypeBuiltInUltraWideCamera,
|
350
|
+
AVCaptureDeviceTypeBuiltInTelephotoCamera,
|
351
|
+
AVCaptureDeviceTypeBuiltInWideAngleCamera
|
352
|
+
]
|
347
353
|
mediaType: AVMediaTypeVideo
|
348
354
|
position: AVCaptureDevicePositionUnspecified];
|
349
355
|
NSArray<AVCaptureDevice*>* devices = discoverySession.devices;
|
@@ -414,7 +420,6 @@ namespace Rays
|
|
414
420
|
Camera::~Camera ()
|
415
421
|
{
|
416
422
|
stop();
|
417
|
-
if (self->video_input) [self->video_input release];
|
418
423
|
}
|
419
424
|
|
420
425
|
bool
|
@@ -432,6 +437,8 @@ namespace Rays
|
|
432
437
|
if (!self->video_input) return;
|
433
438
|
|
434
439
|
[self->video_input stop];
|
440
|
+
[self->video_input release];
|
441
|
+
self->video_input = nil;
|
435
442
|
}
|
436
443
|
|
437
444
|
bool
|
data/src/osx/camera.mm
CHANGED
@@ -355,7 +355,6 @@ namespace Rays
|
|
355
355
|
Camera::~Camera ()
|
356
356
|
{
|
357
357
|
stop();
|
358
|
-
if (self->video_input) [self->video_input release];
|
359
358
|
}
|
360
359
|
|
361
360
|
bool
|
@@ -373,6 +372,8 @@ namespace Rays
|
|
373
372
|
if (!self->video_input) return;
|
374
373
|
|
375
374
|
[self->video_input stop];
|
375
|
+
[self->video_input release];
|
376
|
+
self->video_input = nil;
|
376
377
|
}
|
377
378
|
|
378
379
|
bool
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xordog
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.
|
33
|
+
version: 0.1.18
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1.
|
40
|
+
version: 0.1.18
|
41
41
|
description: This library helps you to develop graphics application with OpenGL.
|
42
42
|
email: xordog@gmail.com
|
43
43
|
executables: []
|