bmff 0.1.0 → 0.1.1
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.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.travis.yml +5 -3
- data/README.md +12 -3
- data/bmff.gemspec +4 -2
- data/lib/bmff/box/protection_system_specific_header.rb +1 -0
- data/lib/bmff/box/segment_index.rb +42 -0
- data/lib/bmff/box/segment_type.rb +6 -0
- data/lib/bmff/box/subsegment_index.rb +30 -0
- data/lib/bmff/box/track_encryption.rb +3 -0
- data/lib/bmff/box.rb +3 -0
- data/lib/bmff/version.rb +1 -1
- data/test/bmff/box/test_audio_sample_entry.rb +1 -1
- data/test/bmff/box/test_base.rb +1 -1
- data/test/bmff/box/test_bit_rate.rb +1 -1
- data/test/bmff/box/test_chunk_large_offset.rb +1 -1
- data/test/bmff/box/test_chunk_offset.rb +1 -1
- data/test/bmff/box/test_clean_aperture.rb +1 -1
- data/test/bmff/box/test_colour_information.rb +1 -1
- data/test/bmff/box/test_compact_sample_size.rb +1 -1
- data/test/bmff/box/test_composition_offset.rb +1 -1
- data/test/bmff/box/test_composition_to_decode.rb +1 -1
- data/test/bmff/box/test_copyright.rb +1 -1
- data/test/bmff/box/test_data_entry_url.rb +1 -1
- data/test/bmff/box/test_data_entry_urn.rb +1 -1
- data/test/bmff/box/test_data_information.rb +1 -1
- data/test/bmff/box/test_data_reference.rb +1 -1
- data/test/bmff/box/test_degradation_priority.rb +1 -1
- data/test/bmff/box/test_edit.rb +1 -1
- data/test/bmff/box/test_edit_list.rb +1 -1
- data/test/bmff/box/test_file_type.rb +1 -1
- data/test/bmff/box/test_free_space.rb +1 -1
- data/test/bmff/box/test_handler.rb +1 -1
- data/test/bmff/box/test_hint_media_header.rb +1 -1
- data/test/bmff/box/test_hint_sample_entry.rb +1 -1
- data/test/bmff/box/test_level_assignment.rb +1 -1
- data/test/bmff/box/test_media.rb +1 -1
- data/test/bmff/box/test_media_data.rb +1 -1
- data/test/bmff/box/test_media_header.rb +1 -1
- data/test/bmff/box/test_media_information.rb +1 -1
- data/test/bmff/box/test_movie.rb +1 -1
- data/test/bmff/box/test_movie_extends.rb +1 -1
- data/test/bmff/box/test_movie_extends_header.rb +1 -1
- data/test/bmff/box/test_movie_fragment.rb +1 -1
- data/test/bmff/box/test_movie_fragment_header.rb +1 -1
- data/test/bmff/box/test_movie_fragment_random_access.rb +1 -1
- data/test/bmff/box/test_movie_fragment_random_access_offset.rb +1 -1
- data/test/bmff/box/test_movie_header.rb +1 -1
- data/test/bmff/box/test_null_media_header.rb +1 -1
- data/test/bmff/box/test_original_format.rb +1 -1
- data/test/bmff/box/test_padding_bits.rb +1 -1
- data/test/bmff/box/test_pixel_aspect_ratio.rb +1 -1
- data/test/bmff/box/test_progressive_download_info.rb +1 -1
- data/test/bmff/box/test_protection_sheme_info.rb +1 -1
- data/test/bmff/box/test_protection_system_specific_header.rb +29 -1
- data/test/bmff/box/test_sample_auxiliary_information_offsets.rb +1 -1
- data/test/bmff/box/test_sample_auxiliary_information_sizes.rb +1 -1
- data/test/bmff/box/test_sample_dependency_type.rb +1 -1
- data/test/bmff/box/test_sample_description.rb +1 -1
- data/test/bmff/box/test_sample_encryption.rb +1 -1
- data/test/bmff/box/test_sample_size.rb +1 -1
- data/test/bmff/box/test_sample_table.rb +1 -1
- data/test/bmff/box/test_sample_to_chunk.rb +1 -1
- data/test/bmff/box/test_segment_index.rb +110 -0
- data/test/bmff/box/test_segment_type.rb +30 -0
- data/test/bmff/box/test_shadow_sync_sample.rb +1 -1
- data/test/bmff/box/test_sheme_information.rb +1 -1
- data/test/bmff/box/test_sheme_type.rb +1 -1
- data/test/bmff/box/test_sound_media_header.rb +1 -1
- data/test/bmff/box/test_sub_sample_information.rb +1 -1
- data/test/bmff/box/test_subsegment_index.rb +43 -0
- data/test/bmff/box/test_sync_sample.rb +1 -1
- data/test/bmff/box/test_text_meta_data_sample_entry.rb +1 -1
- data/test/bmff/box/test_time_to_sample.rb +1 -1
- data/test/bmff/box/test_track.rb +1 -1
- data/test/bmff/box/test_track_encryption.rb +29 -1
- data/test/bmff/box/test_track_extends.rb +1 -1
- data/test/bmff/box/test_track_fragment.rb +1 -1
- data/test/bmff/box/test_track_fragment_base_media_decode_time.rb +1 -1
- data/test/bmff/box/test_track_fragment_header.rb +1 -1
- data/test/bmff/box/test_track_fragment_random_access.rb +1 -1
- data/test/bmff/box/test_track_group.rb +1 -1
- data/test/bmff/box/test_track_group_type.rb +1 -1
- data/test/bmff/box/test_track_header.rb +1 -1
- data/test/bmff/box/test_track_reference.rb +1 -1
- data/test/bmff/box/test_track_reference_type.rb +2 -2
- data/test/bmff/box/test_track_run.rb +1 -1
- data/test/bmff/box/test_track_selection.rb +1 -1
- data/test/bmff/box/test_uri.rb +1 -1
- data/test/bmff/box/test_uri_init.rb +1 -1
- data/test/bmff/box/test_uri_meta_sample_entry.rb +1 -1
- data/test/bmff/box/test_user_data.rb +1 -1
- data/test/bmff/box/test_video_media_header.rb +1 -1
- data/test/bmff/box/test_visual_sample_entry.rb +1 -1
- data/test/bmff/box/test_xml_meta_data_sample_entry.rb +1 -1
- data/test/bmff/test_binary_accessor.rb +1 -1
- data/test/bmff/test_file_container.rb +42 -1
- data/test/minitest_helper.rb +3 -0
- metadata +52 -25
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 10c8b0e773e8239d7e89d3dc556312a3303b3a48
|
|
4
|
+
data.tar.gz: 16f0efad8d17e9053342cf99ff0267331ef1b38a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 4bb6286083af9fd9363a33d209f5b06732ebaa6a461cec6d38c15c0121c94506823e18d6a2866def6a93d96596eb759f09a78ca9dbbf65fd5b2c60b936c01aef
|
|
7
|
+
data.tar.gz: 558ccc77bc94f157052daa5702058eb4193749826626444d871f3430d8d65faa6cdbdd08bcc9d7b32200c1b7bc91ac90a20f57c8ff8e735ab9dacf48ba06ae96
|
data/.coveralls.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
service_name: travis-ci
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -5,6 +5,7 @@ You can parse BMFF file.
|
|
|
5
5
|
And you may be able to parse a file related to BMFF like MP4.
|
|
6
6
|
|
|
7
7
|
[](https://travis-ci.org/zuku/bmff)
|
|
8
|
+
[](https://coveralls.io/r/zuku/bmff?branch=master)
|
|
8
9
|
[](http://badge.fury.io/rb/bmff)
|
|
9
10
|
|
|
10
11
|
## Installation
|
|
@@ -162,12 +163,20 @@ end
|
|
|
162
163
|
|Sub Track Sample Group Box | stsg |Not yet | \ 8.14.6
|
|
163
164
|
|Restricted Scheme Information Box | rinf |Not yet | \ 8.15.3
|
|
164
165
|
|Stereo Video Box | stvi |Not yet | \ 8.15.4.2
|
|
165
|
-
|Segment Type Box | styp |
|
|
166
|
-
|Segment Index Box | sidx |
|
|
167
|
-
|Subsegment Index Box | ssix |
|
|
166
|
+
|Segment Type Box | styp |OK | \ 8.16.2
|
|
167
|
+
|Segment Index Box | sidx |OK | \ 8.16.3
|
|
168
|
+
|Subsegment Index Box | ssix |OK | \ 8.16.4
|
|
168
169
|
|Producer Reference Time Box | prft |Not yet | \ 8.16.5
|
|
169
170
|
|
|
170
171
|
|
|
172
|
+
### ISO/IEC 23001-7:2012
|
|
173
|
+
|
|
174
|
+
|Box Name | Type | Status |
|
|
175
|
+
|:--------------------------------------------|:--------------:|:---------:|
|
|
176
|
+
|Protection System Specific Header Box | pssh |OK | \ 8.1
|
|
177
|
+
|Track Encryption Box | tenc |OK | \ 8.2
|
|
178
|
+
|
|
179
|
+
|
|
171
180
|
### Protected Interoperable File Format (PIFF) 1.1
|
|
172
181
|
|
|
173
182
|
|Box Name | UUID | Status |
|
data/bmff.gemspec
CHANGED
|
@@ -18,10 +18,12 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
spec.require_paths = ["lib"]
|
|
20
20
|
|
|
21
|
-
spec.required_ruby_version = '>=
|
|
21
|
+
spec.required_ruby_version = '>= 2.0.0'
|
|
22
22
|
|
|
23
23
|
spec.add_dependency "uuidtools"
|
|
24
24
|
|
|
25
|
-
spec.add_development_dependency "bundler", "~> 1.
|
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
|
26
26
|
spec.add_development_dependency "rake"
|
|
27
|
+
spec.add_development_dependency "minitest", ">= 5.0"
|
|
28
|
+
spec.add_development_dependency "coveralls"
|
|
27
29
|
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
# vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
|
|
3
|
+
|
|
4
|
+
class BMFF::Box::SegmentIndex < BMFF::Box::Full
|
|
5
|
+
attr_accessor :reference_id, :timescale, :earliest_presentation_time,
|
|
6
|
+
:first_offset, :reserved1, :reference_count,
|
|
7
|
+
:reference_type, :referenced_size,
|
|
8
|
+
:subsegment_duration,
|
|
9
|
+
:start_with_sap, :sap_type, :sap_delta_time
|
|
10
|
+
register_box "sidx"
|
|
11
|
+
|
|
12
|
+
def parse_data
|
|
13
|
+
super
|
|
14
|
+
@reference_id = io.get_uint32
|
|
15
|
+
@timescale = io.get_uint32
|
|
16
|
+
if version == 0
|
|
17
|
+
@earliest_presentation_time = io.get_uint32
|
|
18
|
+
@first_offset = io.get_uint32
|
|
19
|
+
else
|
|
20
|
+
@earliest_presentation_time = io.get_uint64
|
|
21
|
+
@first_offset = io.get_uint64
|
|
22
|
+
end
|
|
23
|
+
@reserved1 = io.get_uint16
|
|
24
|
+
@reference_count = io.get_uint16
|
|
25
|
+
@reference_type = []
|
|
26
|
+
@referenced_size = []
|
|
27
|
+
@subsegment_duration = []
|
|
28
|
+
@start_with_sap = []
|
|
29
|
+
@sap_type = []
|
|
30
|
+
@sap_delta_time = []
|
|
31
|
+
@reference_count.times do
|
|
32
|
+
tmp = io.get_uint32
|
|
33
|
+
@reference_type << ((tmp & 0x80000000) > 0)
|
|
34
|
+
@referenced_size << (tmp & 0x7FFFFFFF)
|
|
35
|
+
@subsegment_duration << io.get_uint32
|
|
36
|
+
tmp = io.get_uint32
|
|
37
|
+
@start_with_sap << ((tmp & 0x80000000) > 0)
|
|
38
|
+
@sap_type << ((tmp >> 28) & 0x07)
|
|
39
|
+
@sap_delta_time << (tmp & 0x0FFFFFFF)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
# vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
|
|
3
|
+
|
|
4
|
+
class BMFF::Box::SubsegmentIndex < BMFF::Box::Full
|
|
5
|
+
attr_accessor :subsegment_count, :range_count, :ranges
|
|
6
|
+
register_box "ssix"
|
|
7
|
+
|
|
8
|
+
class Range
|
|
9
|
+
attr_accessor :level, :range_size
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def parse_data
|
|
13
|
+
super
|
|
14
|
+
@subsegment_count = io.get_uint32
|
|
15
|
+
@range_count = []
|
|
16
|
+
@ranges = []
|
|
17
|
+
@subsegment_count.times do
|
|
18
|
+
tmp = io.get_uint32
|
|
19
|
+
@range_count << tmp
|
|
20
|
+
range = Range.new
|
|
21
|
+
range.level = []
|
|
22
|
+
range.range_size = []
|
|
23
|
+
tmp.times do
|
|
24
|
+
range.level << io.get_uint8
|
|
25
|
+
range.range_size << io.get_uint24
|
|
26
|
+
end
|
|
27
|
+
@ranges << range
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
class BMFF::Box::TrackEncryption < BMFF::Box::Full
|
|
5
5
|
attr_accessor :default_algorithm_id, :default_iv_size, :default_kid
|
|
6
|
+
register_box "tenc"
|
|
6
7
|
register_uuid_box "8974dbce-7be7-4c51-84f9-7148f9882554"
|
|
7
8
|
|
|
8
9
|
def parse_data
|
|
@@ -11,4 +12,6 @@ class BMFF::Box::TrackEncryption < BMFF::Box::Full
|
|
|
11
12
|
@default_iv_size = io.get_uint8
|
|
12
13
|
@default_kid = io.get_uuid
|
|
13
14
|
end
|
|
15
|
+
|
|
16
|
+
alias :default_is_encrypted :default_algorithm_id
|
|
14
17
|
end
|
data/lib/bmff/box.rb
CHANGED
|
@@ -87,6 +87,9 @@ require "bmff/box/protection_scheme_info"
|
|
|
87
87
|
require "bmff/box/original_format"
|
|
88
88
|
require "bmff/box/scheme_type"
|
|
89
89
|
require "bmff/box/scheme_information"
|
|
90
|
+
require "bmff/box/segment_type"
|
|
91
|
+
require "bmff/box/segment_index"
|
|
92
|
+
require "bmff/box/subsegment_index"
|
|
90
93
|
|
|
91
94
|
# UUID boxes
|
|
92
95
|
require "bmff/box/protection_system_specific_header"
|
data/lib/bmff/version.rb
CHANGED
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxAudioSampleEntry <
|
|
8
|
+
class TestBMFFBoxAudioSampleEntry < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
data/test/bmff/box/test_base.rb
CHANGED
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxBase <
|
|
8
|
+
class TestBMFFBoxBase < Minitest::Test
|
|
9
9
|
def test_parse_largesize
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxBitRate <
|
|
8
|
+
class TestBMFFBoxBitRate < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxChunkLargeOffset <
|
|
8
|
+
class TestBMFFBoxChunkLargeOffset < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxChunkOffset <
|
|
8
|
+
class TestBMFFBoxChunkOffset < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxCleanAperture <
|
|
8
|
+
class TestBMFFBoxCleanAperture < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxColourInformation <
|
|
8
|
+
class TestBMFFBoxColourInformation < Minitest::Test
|
|
9
9
|
def test_parse_nclx
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxCompactSampleSize <
|
|
8
|
+
class TestBMFFBoxCompactSampleSize < Minitest::Test
|
|
9
9
|
def test_parse_filed_size_4
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxCompositionOffset <
|
|
8
|
+
class TestBMFFBoxCompositionOffset < Minitest::Test
|
|
9
9
|
def test_parse_v0
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxCompositionToDecode <
|
|
8
|
+
class TestBMFFBoxCompositionToDecode < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxCopyright <
|
|
8
|
+
class TestBMFFBoxCopyright < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxDataEntryUrl <
|
|
8
|
+
class TestBMFFBoxDataEntryUrl < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxDataEntryUrn <
|
|
8
|
+
class TestBMFFBoxDataEntryUrn < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxDataInformation <
|
|
8
|
+
class TestBMFFBoxDataInformation < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxDataReference <
|
|
8
|
+
class TestBMFFBoxDataReference < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
data/test/bmff/box/test_edit.rb
CHANGED
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxEdit <
|
|
8
|
+
class TestBMFFBoxEdit < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxEditList <
|
|
8
|
+
class TestBMFFBoxEditList < Minitest::Test
|
|
9
9
|
def test_parse_v0
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxFileType <
|
|
8
|
+
class TestBMFFBoxFileType < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxFreeSpace <
|
|
8
|
+
class TestBMFFBoxFreeSpace < Minitest::Test
|
|
9
9
|
def test_parse_free
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxHandler <
|
|
8
|
+
class TestBMFFBoxHandler < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxHintMediaHeader <
|
|
8
|
+
class TestBMFFBoxHintMediaHeader < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxHintSampleEntry <
|
|
8
|
+
class TestBMFFBoxHintSampleEntry < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxLevelAssignment <
|
|
8
|
+
class TestBMFFBoxLevelAssignment < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
data/test/bmff/box/test_media.rb
CHANGED
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMedia <
|
|
8
|
+
class TestBMFFBoxMedia < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMediaData <
|
|
8
|
+
class TestBMFFBoxMediaData < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMediaHeader <
|
|
8
|
+
class TestBMFFBoxMediaHeader < Minitest::Test
|
|
9
9
|
def test_parse_v0
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMediaInformation <
|
|
8
|
+
class TestBMFFBoxMediaInformation < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
data/test/bmff/box/test_movie.rb
CHANGED
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMovie <
|
|
8
|
+
class TestBMFFBoxMovie < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMovieExtends <
|
|
8
|
+
class TestBMFFBoxMovieExtends < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMovieExtendsHeader <
|
|
8
|
+
class TestBMFFBoxMovieExtendsHeader < Minitest::Test
|
|
9
9
|
def test_parse_v0
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMovieFragment <
|
|
8
|
+
class TestBMFFBoxMovieFragment < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMovieFragmentHeader <
|
|
8
|
+
class TestBMFFBoxMovieFragmentHeader < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMovieFragmentRandomAccess <
|
|
8
|
+
class TestBMFFBoxMovieFragmentRandomAccess < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMovieFragmentRandomAccessOffset <
|
|
8
|
+
class TestBMFFBoxMovieFragmentRandomAccessOffset < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxMovieHeader <
|
|
8
|
+
class TestBMFFBoxMovieHeader < Minitest::Test
|
|
9
9
|
def test_parse_v0
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxNullMediaHeader <
|
|
8
|
+
class TestBMFFBoxNullMediaHeader < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxOriginalFormat <
|
|
8
|
+
class TestBMFFBoxOriginalFormat < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxPaddingBits <
|
|
8
|
+
class TestBMFFBoxPaddingBits < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxPixelAspectRatio <
|
|
8
|
+
class TestBMFFBoxPixelAspectRatio < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxProgressiveDownloadInfo <
|
|
8
|
+
class TestBMFFBoxProgressiveDownloadInfo < Minitest::Test
|
|
9
9
|
def test_parse
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|
|
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
|
|
|
5
5
|
require 'bmff/box'
|
|
6
6
|
require 'stringio'
|
|
7
7
|
|
|
8
|
-
class TestBMFFBoxProtectionSchemeInfo <
|
|
8
|
+
class TestBMFFBoxProtectionSchemeInfo < Minitest::Test
|
|
9
9
|
def test_parse_only_original_format
|
|
10
10
|
io = StringIO.new("", "r+:ascii-8bit")
|
|
11
11
|
io.extend(BMFF::BinaryAccessor)
|