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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b9970ac7078fc1ff19c2039b5d9c3714eeaaba98d5825e374639707231fe212
4
- data.tar.gz: 12d43f68907b92bc4fcc293273dfaf1353e17006654e245973d3866f31cac2de
3
+ metadata.gz: 8efafd5f580c6cc07ff8055d96a71d5b4ab7d65146e5d43872f04860b2bf9b7f
4
+ data.tar.gz: 0f3332f88fd3e413374b65ef70d72a210fbad4faa234a92ebe43ff465d97e99f
5
5
  SHA512:
6
- metadata.gz: 4f732d776a9cf8940d22dde937d72d25a38fda8c8842484d525ae105c0ce591dd20b6e10742418e708c60d22b29e44ab5129649538f7593ad834a38ee9cd54a4
7
- data.tar.gz: 42d6400febd65098c2ccc37bafde776ad0b42129996e7edbfc74f9d8862622e3439389fcbbbe3788f5f62c4298dad30d0981df45726874dfb41f47047d9d7117
6
+ metadata.gz: 04b7cc4a91bf19910f0b846f761d0996d7c06a678a2297c2ac2768233fe56d193464f960300934d0d42496aa4882c67f5c6807285443ddad13a68d311ced3e4d
7
+ data.tar.gz: a02ba9f0b544539cbd8f826ef858a17704d1a07f8f4268e28aa4b2c95d1aa29ea17c2fa87d0a73241f8ccbe1cfdee6bee3887a974dd8c74375e4159f0b89a9e6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.17
1
+ 0.1.18
@@ -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.16'
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}
@@ -116,9 +116,9 @@ static int video_input_queue_index = 0;
116
116
  return YES;
117
117
  }
118
118
 
119
- - (void) updateCaptureOrientation
119
+ - (void) updateOrientation
120
120
  {
121
- assert(Thread.isMainThread);
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 UIInterfaceOrientationPortraitLandscapeLeft:
129
+ case UIInterfaceOrientationLandscapeLeft:
130
130
  orientation = AVCaptureVideoOrientationLandscapeLeft;
131
131
  break;
132
132
 
133
- case UIInterfaceOrientationPortraitLandscapeRight:
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
- AVCaptureDeviceTypeBuiltInWideAngleCamera]
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
@@ -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.17
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-26 00:00:00.000000000 Z
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.16
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.16
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: []