tracksperanto 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -1
- data/Manifest.txt +3 -0
- data/lib/import/boujou.rb +57 -0
- data/lib/tracksperanto.rb +1 -1
- data/test/import/samples/boujou_txt_export.txt +2885 -0
- data/test/import/test_boujou_import.rb +31 -0
- metadata +6 -2
@@ -0,0 +1,31 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../helper'
|
2
|
+
|
3
|
+
class BoujouImportTest < Test::Unit::TestCase
|
4
|
+
DELTA = 0.1
|
5
|
+
|
6
|
+
def test_introspects_properly
|
7
|
+
i = Tracksperanto::Import::Boujou
|
8
|
+
assert_equal "Boujou feature tracks export", i.human_name
|
9
|
+
assert !i.autodetects_size?
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_parsing_from_fixture
|
13
|
+
fixture = File.open(File.dirname(__FILE__) + '/samples/boujou_txt_export.txt')
|
14
|
+
|
15
|
+
parser = Tracksperanto::Import::Boujou.new
|
16
|
+
parser.width = 2560
|
17
|
+
parser.height = 1200
|
18
|
+
|
19
|
+
trackers = parser.parse(fixture)
|
20
|
+
assert_equal 20, trackers.length
|
21
|
+
|
22
|
+
tracker1 = trackers[1]
|
23
|
+
|
24
|
+
assert_equal "tracker1", tracker1.name
|
25
|
+
assert_equal 132, tracker1.length
|
26
|
+
|
27
|
+
kf = tracker1[0]
|
28
|
+
assert_in_delta 306.906, kf.abs_x, DELTA
|
29
|
+
assert_in_delta 40.79, kf.abs_y, DELTA
|
30
|
+
end
|
31
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tracksperanto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julik Tarkhanov
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-26 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- lib/export/shake_text.rb
|
64
64
|
- lib/export/syntheyes.rb
|
65
65
|
- lib/import/base.rb
|
66
|
+
- lib/import/boujou.rb
|
66
67
|
- lib/import/equalizer3.rb
|
67
68
|
- lib/import/equalizer4.rb
|
68
69
|
- lib/import/flame_stabilizer.rb
|
@@ -125,6 +126,7 @@ files:
|
|
125
126
|
- test/import/samples/018.nk
|
126
127
|
- test/import/samples/3de_export_cube.txt
|
127
128
|
- test/import/samples/3de_export_v3.txt
|
129
|
+
- test/import/samples/boujou_txt_export.txt
|
128
130
|
- test/import/samples/flyover2DP_syntheyes.txt
|
129
131
|
- test/import/samples/four_tracks_in_one_matchmove.shk
|
130
132
|
- test/import/samples/four_tracks_in_one_stabilizer.shk
|
@@ -149,6 +151,7 @@ files:
|
|
149
151
|
- test/import/samples/two_tracks_in_one_tracker.shk
|
150
152
|
- test/import/test_3de_import.rb
|
151
153
|
- test/import/test_3de_import3.rb
|
154
|
+
- test/import/test_boujou_import.rb
|
152
155
|
- test/import/test_flame_import.rb
|
153
156
|
- test/import/test_match_mover_import.rb
|
154
157
|
- test/import/test_maya_live_import.rb
|
@@ -213,6 +216,7 @@ test_files:
|
|
213
216
|
- test/export/test_syntheyes_export.rb
|
214
217
|
- test/import/test_3de_import.rb
|
215
218
|
- test/import/test_3de_import3.rb
|
219
|
+
- test/import/test_boujou_import.rb
|
216
220
|
- test/import/test_flame_import.rb
|
217
221
|
- test/import/test_match_mover_import.rb
|
218
222
|
- test/import/test_maya_live_import.rb
|