depix 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +2 -0
- data/Rakefile +2 -1
- data/lib/depix.rb +1 -1
- data/lib/depix/reader.rb +1 -1
- data/test/samples/from_nuke_no_TC_meta.dpx +0 -0
- data/test/samples/gluetools_file_header.dpx +0 -0
- data/test/test_depix.rb +8 -1
- metadata +48 -21
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -18,6 +18,8 @@ test/samples/E012_P001_L000002_lin.0001.dpx
|
|
18
18
|
test/samples/E012_P001_L000002_lin.0002.dpx
|
19
19
|
test/samples/E012_P001_L000002_log.0001.dpx
|
20
20
|
test/samples/E012_P001_L000002_log.0002.dpx
|
21
|
+
test/samples/from_nuke_no_TC_meta.dpx
|
21
22
|
test/samples/northlight_tc_mode_mismatch.dpx
|
23
|
+
test/samples/gluetools_file_header.dpx
|
22
24
|
test/test_depix.rb
|
23
25
|
test/test_dict.rb
|
data/Rakefile
CHANGED
@@ -6,8 +6,9 @@ Hoe.spec('depix') do |p|
|
|
6
6
|
p.version = Depix::VERSION
|
7
7
|
p.developer('Julik Tarkhanov', 'me@julik.nl')
|
8
8
|
p.rubyforge_name = 'guerilla-di'
|
9
|
-
p.extra_deps << ['timecode'
|
9
|
+
p.extra_deps << ['timecode']
|
10
10
|
p.remote_rdoc_dir = 'depix'
|
11
|
+
p.clean_globs = %w( **/.DS_Store )
|
11
12
|
end
|
12
13
|
|
13
14
|
task :describe_structs do
|
data/lib/depix.rb
CHANGED
data/lib/depix/reader.rb
CHANGED
@@ -44,7 +44,7 @@ module Depix
|
|
44
44
|
raise InvalidHeader
|
45
45
|
end
|
46
46
|
|
47
|
-
raise InvalidHeader, "Unknown version tag #{result.version}" unless result.version =~ /V(\d)\.(\d+)/
|
47
|
+
raise InvalidHeader, "Unknown version tag #{result.version}" unless result.version =~ /V(\d)\.(\d+)/i
|
48
48
|
|
49
49
|
template = is_be ? DPX.pattern : make_le(DPX.pattern)
|
50
50
|
struct.consume!(data.unpack(struct.pattern))
|
Binary file
|
Binary file
|
data/test/test_depix.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/../lib/depix'
|
2
2
|
require 'test/unit'
|
3
|
+
require "fileutils"
|
3
4
|
|
4
5
|
SAMPLE_DPX = File.dirname(__FILE__) + '/samples/E012_P001_L000002_lin.0001.dpx'
|
5
6
|
|
@@ -113,6 +114,12 @@ class ReaderTest < Test::Unit::TestCase
|
|
113
114
|
|
114
115
|
end
|
115
116
|
|
117
|
+
def test_parsing_gluetools_file
|
118
|
+
# This file comes from GlueTools
|
119
|
+
dpx = Depix.from_file(File.dirname(__FILE__) + "/samples/gluetools_file_header.dpx")
|
120
|
+
assert_equal "03:09:00:17", dpx.time_code.to_s
|
121
|
+
end
|
122
|
+
|
116
123
|
def test_parse_with_timecode_mismatch
|
117
124
|
# This file has mismatching framerates in the film and television headers
|
118
125
|
dpx = Depix.from_file(File.dirname(__FILE__) + "/samples/northlight_tc_mode_mismatch.dpx")
|
@@ -147,8 +154,8 @@ class EditorTest < Test::Unit::TestCase
|
|
147
154
|
|
148
155
|
def test_commit
|
149
156
|
temp_path = SAMPLE_DPX + ".test"
|
157
|
+
FileUtils.cp(SAMPLE_DPX, temp_path)
|
150
158
|
begin
|
151
|
-
FileUtils.cp(SAMPLE_DPX, temp_path)
|
152
159
|
e = Depix::Editor.new(temp_path)
|
153
160
|
e.flame_reel = "E013"
|
154
161
|
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: depix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 25
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 5
|
10
|
+
version: 1.1.5
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Julik Tarkhanov
|
@@ -9,42 +15,55 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2010-
|
18
|
+
date: 2010-10-20 00:00:00 +02:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: timecode
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
23
32
|
version: "0"
|
24
|
-
|
25
|
-
|
26
|
-
version: 0.2.0
|
27
|
-
version:
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
28
35
|
- !ruby/object:Gem::Dependency
|
29
36
|
name: rubyforge
|
30
|
-
|
31
|
-
|
32
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
33
40
|
requirements:
|
34
41
|
- - ">="
|
35
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 7
|
44
|
+
segments:
|
45
|
+
- 2
|
46
|
+
- 0
|
47
|
+
- 4
|
36
48
|
version: 2.0.4
|
37
|
-
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id002
|
38
51
|
- !ruby/object:Gem::Dependency
|
39
52
|
name: hoe
|
40
|
-
|
41
|
-
|
42
|
-
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
43
56
|
requirements:
|
44
57
|
- - ">="
|
45
58
|
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
|
59
|
+
hash: 21
|
60
|
+
segments:
|
61
|
+
- 2
|
62
|
+
- 6
|
63
|
+
- 1
|
64
|
+
version: 2.6.1
|
65
|
+
type: :development
|
66
|
+
version_requirements: *id003
|
48
67
|
description: Read and write DPX file metadata
|
49
68
|
email:
|
50
69
|
- me@julik.nl
|
@@ -78,7 +97,9 @@ files:
|
|
78
97
|
- test/samples/E012_P001_L000002_lin.0002.dpx
|
79
98
|
- test/samples/E012_P001_L000002_log.0001.dpx
|
80
99
|
- test/samples/E012_P001_L000002_log.0002.dpx
|
100
|
+
- test/samples/from_nuke_no_TC_meta.dpx
|
81
101
|
- test/samples/northlight_tc_mode_mismatch.dpx
|
102
|
+
- test/samples/gluetools_file_header.dpx
|
82
103
|
- test/test_depix.rb
|
83
104
|
- test/test_dict.rb
|
84
105
|
has_rdoc: true
|
@@ -92,21 +113,27 @@ rdoc_options:
|
|
92
113
|
require_paths:
|
93
114
|
- lib
|
94
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
95
117
|
requirements:
|
96
118
|
- - ">="
|
97
119
|
- !ruby/object:Gem::Version
|
120
|
+
hash: 3
|
121
|
+
segments:
|
122
|
+
- 0
|
98
123
|
version: "0"
|
99
|
-
version:
|
100
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
101
126
|
requirements:
|
102
127
|
- - ">="
|
103
128
|
- !ruby/object:Gem::Version
|
129
|
+
hash: 3
|
130
|
+
segments:
|
131
|
+
- 0
|
104
132
|
version: "0"
|
105
|
-
version:
|
106
133
|
requirements: []
|
107
134
|
|
108
135
|
rubyforge_project: guerilla-di
|
109
|
-
rubygems_version: 1.3.
|
136
|
+
rubygems_version: 1.3.7
|
110
137
|
signing_key:
|
111
138
|
specification_version: 3
|
112
139
|
summary: Read and write DPX file metadata
|