tracksperanto 3.3.10 → 3.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/README.rdoc +2 -2
- data/bin/tracksperanto +21 -21
- data/lib/tracksperanto.rb +1 -1
- data/test/import/test_flame_import.rb +9 -0
- data/tracksperanto.gemspec +2 -2
- metadata +3 -3
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
{<img src="https://secure.travis-ci.org/guerilla-di/tracksperanto.png" />}[http://travis-ci.org/guerilla-di/tracksperanto]
|
2
|
-
|
3
1
|
Tracksperanto is a universal 2D-track translator between many apps.
|
4
2
|
|
5
3
|
== Why Tracksperanto?
|
@@ -138,6 +136,8 @@ Consult the --help option to see what is available.
|
|
138
136
|
|
139
137
|
== Development
|
140
138
|
|
139
|
+
{<img src="https://secure.travis-ci.org/guerilla-di/tracksperanto.png" />}[http://travis-ci.org/guerilla-di/tracksperanto]
|
140
|
+
|
141
141
|
If you are interested in reusing Tracksperanto's code or adding modules to the software consult
|
142
142
|
the {short developer introduction}[https://github.com/guerilla-di/tracksperanto/blob/master/CONTRIBUTING.md]
|
143
143
|
|
data/bin/tracksperanto
CHANGED
@@ -74,51 +74,51 @@ def f(module_list)
|
|
74
74
|
"\n" + module_list.map{|e| "\t\t\t\t\t%s\n" % e }.join
|
75
75
|
end
|
76
76
|
|
77
|
-
op.on("
|
78
|
-
op.on("
|
79
|
-
op.on("
|
80
|
-
op.on("
|
77
|
+
op.on("-f", "--from TRANSLATOR", String, "Use the specific import translator, must be one of: #{f(readers)}") { |f| options[:importer] = f }
|
78
|
+
op.on("-w", "--width WIDTH_IN_PIXELS", Integer, "Absolute input comp width in pixels (will try to autodetect)") { |w| options[:width] = w }
|
79
|
+
op.on("-h", "--height HEIGHT_IN_PIXELS", Integer, "Absolute input comp height in pixels (will try to autodetect)") {|w| options[:height] = w }
|
80
|
+
op.on("-o", "--only EXPORTER_NAME", String, "Only export the selected format, format must be one of: #{f(writers)}") { |f| writer_class_name = f }
|
81
81
|
|
82
|
-
op.on("
|
82
|
+
op.on("-xs", "--xscale X_SCALING_FACTOR", Float, toold("Scaler"), &tool("Scaler", :x_factor))
|
83
83
|
|
84
|
-
op.on("
|
84
|
+
op.on("-pad", "--pad PAD_FRACTION_VALUES_COMMA_SEPARATED", String, toold("Pad")) do | pads|
|
85
85
|
left, right, top, bottom = pads.split(",").map{|e| e.to_f }
|
86
86
|
$tools.push(["Pad", {"left_pad" => left, "right_pad"=> right, "top_pad" => top, "bottom_pad" => bottom}])
|
87
87
|
end
|
88
88
|
|
89
|
-
op.on("
|
89
|
+
op.on("-u", "--undistort K_AND_KCUBE_COMMA_SEPARATED", String, "Remove lens distortion using the Syntheyes algorithm") do | coefficients |
|
90
90
|
k, kcube = coefficients.split(",").map{|e| e.to_f }
|
91
91
|
$tools.push(["LensDisto", {"k" => k, "kcube"=> kcube, "remove" => true}])
|
92
92
|
end
|
93
93
|
|
94
|
-
op.on("
|
94
|
+
op.on("-d", "--distort K_AND_KCUBE_COMMA_SEPARATED", String, "Add lens distortion using the Syntheyes algorithm") do | coefficients |
|
95
95
|
k, kcube = coefficients.split(",").map{|e| e.to_f }
|
96
96
|
$tools.push(["LensDisto", {"k" => k, "kcube"=> kcube, "remove" => false}])
|
97
97
|
end
|
98
98
|
|
99
|
-
op.on("
|
99
|
+
op.on("-crop", "--crop CROP_VALUES_COMMA_SEPARATED", String, toold("Crop")) do | pads|
|
100
100
|
left, right, top, bottom = pads.split(",").map{|e| e.to_i }
|
101
101
|
$tools.push(["Crop", {"left" => left, "right"=> right, "top" => top, "bottom" => bottom}])
|
102
102
|
end
|
103
103
|
|
104
|
-
op.on("
|
105
|
-
op.on("
|
104
|
+
op.on("-ys", "--yscale Y_SCALING_FACTOR", Float, toold("Scaler"), &tool("Scaler", :y_factor))
|
105
|
+
op.on("-xs", "--xscale X_SCALING_FACTOR", Float, toold("Scaler"), &tool("Scaler", :x_factor))
|
106
106
|
|
107
|
-
op.on("
|
108
|
-
op.on("
|
109
|
-
op.on("
|
110
|
-
op.on("
|
111
|
-
op.on("
|
112
|
-
op.on("
|
107
|
+
op.on("-t", "--trim", Float, toold("StartTrim"), &tool("StartTrim")) # Before slip!
|
108
|
+
op.on("-s", "--slip FRAMES", Integer, toold("Slipper"), &tool("Slipper", :slip))
|
109
|
+
op.on("-g", "--golden", toold("Golden"), &tool("Golden"))
|
110
|
+
op.on("-m", "--min-length LENGTH_IN_FRAMES", Integer, toold("LengthCutoff"), &tool("LengthCutoff", :min_length))
|
111
|
+
op.on("-p", "--prefix PREFIX", String, toold("Prefix"), &tool("Prefix", :prefix))
|
112
|
+
op.on("-as", "--autoslip", toold("MoveToFirst"), &tool("MoveToFirst"))
|
113
113
|
op.on("--lerp", toold("Lerp"), &tool("Lerp"))
|
114
114
|
op.on("--flip", toold("Flip"), &tool("Flip"))
|
115
115
|
op.on("--flop", toold("Flop"), &tool("Flop"))
|
116
116
|
|
117
117
|
# TODO - multiparameters
|
118
|
-
op.on("
|
119
|
-
op.on("
|
120
|
-
op.on("
|
121
|
-
op.on("
|
118
|
+
op.on("-rx", "--reformat-x NEW_PIX_WIDTH", Integer, "Reformat the comp to this width and scale all tracks to it", &tool("Reformat", :width))
|
119
|
+
op.on("-ry", "--reformat-y NEW_PIX_HEIGHT", Integer, "Reformat the comp to this height and scale all tracks to it", &tool("Reformat", :height))
|
120
|
+
op.on("-xm", "--xshift X_IN_PIXELS", Float, "Move the points left or right", &tool("Shift", :x_shift))
|
121
|
+
op.on("-ym", "--yshift Y_IN_PIXELS", Float, "Move the points up or down", &tool("Shift", :y_shift))
|
122
122
|
|
123
123
|
|
124
124
|
op.on("--list-exporters", "Show available export modules") do
|
data/lib/tracksperanto.rb
CHANGED
@@ -109,4 +109,13 @@ class TestFlameImport < Test::Unit::TestCase
|
|
109
109
|
assert_equal tracker_order, trackers.map(&:name)
|
110
110
|
end
|
111
111
|
|
112
|
+
# flame 2014 has a new stabilizer
|
113
|
+
def test_flame_2014_stabilizer_import
|
114
|
+
fixture = File.open(File.dirname(__FILE__) + '/samples/flame_stabilizer/stabilizer_2014_stp.stabilizer')
|
115
|
+
trackers = Tracksperanto::Import::FlameStabilizer.new(:io => fixture).to_a
|
116
|
+
assert_equal 2, trackers.length
|
117
|
+
assert_equal 56, trackers[0].length
|
118
|
+
assert_equal 56, trackers[1].length
|
119
|
+
end
|
120
|
+
|
112
121
|
end
|
data/tracksperanto.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "tracksperanto"
|
8
|
-
s.version = "3.3.
|
8
|
+
s.version = "3.3.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Julik Tarkhanov"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-10-08"
|
13
13
|
s.description = "Converts 2D track exports between different apps like Flame, MatchMover, PFTrack..."
|
14
14
|
s.email = "me@julik.nl"
|
15
15
|
s.executables = ["tracksperanto"]
|
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: 3.3.
|
4
|
+
version: 3.3.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -456,7 +456,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
456
456
|
version: '0'
|
457
457
|
segments:
|
458
458
|
- 0
|
459
|
-
hash: -
|
459
|
+
hash: -1946567942053195815
|
460
460
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
461
461
|
none: false
|
462
462
|
requirements:
|