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.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.travis.yml +5 -3
  4. data/README.md +12 -3
  5. data/bmff.gemspec +4 -2
  6. data/lib/bmff/box/protection_system_specific_header.rb +1 -0
  7. data/lib/bmff/box/segment_index.rb +42 -0
  8. data/lib/bmff/box/segment_type.rb +6 -0
  9. data/lib/bmff/box/subsegment_index.rb +30 -0
  10. data/lib/bmff/box/track_encryption.rb +3 -0
  11. data/lib/bmff/box.rb +3 -0
  12. data/lib/bmff/version.rb +1 -1
  13. data/test/bmff/box/test_audio_sample_entry.rb +1 -1
  14. data/test/bmff/box/test_base.rb +1 -1
  15. data/test/bmff/box/test_bit_rate.rb +1 -1
  16. data/test/bmff/box/test_chunk_large_offset.rb +1 -1
  17. data/test/bmff/box/test_chunk_offset.rb +1 -1
  18. data/test/bmff/box/test_clean_aperture.rb +1 -1
  19. data/test/bmff/box/test_colour_information.rb +1 -1
  20. data/test/bmff/box/test_compact_sample_size.rb +1 -1
  21. data/test/bmff/box/test_composition_offset.rb +1 -1
  22. data/test/bmff/box/test_composition_to_decode.rb +1 -1
  23. data/test/bmff/box/test_copyright.rb +1 -1
  24. data/test/bmff/box/test_data_entry_url.rb +1 -1
  25. data/test/bmff/box/test_data_entry_urn.rb +1 -1
  26. data/test/bmff/box/test_data_information.rb +1 -1
  27. data/test/bmff/box/test_data_reference.rb +1 -1
  28. data/test/bmff/box/test_degradation_priority.rb +1 -1
  29. data/test/bmff/box/test_edit.rb +1 -1
  30. data/test/bmff/box/test_edit_list.rb +1 -1
  31. data/test/bmff/box/test_file_type.rb +1 -1
  32. data/test/bmff/box/test_free_space.rb +1 -1
  33. data/test/bmff/box/test_handler.rb +1 -1
  34. data/test/bmff/box/test_hint_media_header.rb +1 -1
  35. data/test/bmff/box/test_hint_sample_entry.rb +1 -1
  36. data/test/bmff/box/test_level_assignment.rb +1 -1
  37. data/test/bmff/box/test_media.rb +1 -1
  38. data/test/bmff/box/test_media_data.rb +1 -1
  39. data/test/bmff/box/test_media_header.rb +1 -1
  40. data/test/bmff/box/test_media_information.rb +1 -1
  41. data/test/bmff/box/test_movie.rb +1 -1
  42. data/test/bmff/box/test_movie_extends.rb +1 -1
  43. data/test/bmff/box/test_movie_extends_header.rb +1 -1
  44. data/test/bmff/box/test_movie_fragment.rb +1 -1
  45. data/test/bmff/box/test_movie_fragment_header.rb +1 -1
  46. data/test/bmff/box/test_movie_fragment_random_access.rb +1 -1
  47. data/test/bmff/box/test_movie_fragment_random_access_offset.rb +1 -1
  48. data/test/bmff/box/test_movie_header.rb +1 -1
  49. data/test/bmff/box/test_null_media_header.rb +1 -1
  50. data/test/bmff/box/test_original_format.rb +1 -1
  51. data/test/bmff/box/test_padding_bits.rb +1 -1
  52. data/test/bmff/box/test_pixel_aspect_ratio.rb +1 -1
  53. data/test/bmff/box/test_progressive_download_info.rb +1 -1
  54. data/test/bmff/box/test_protection_sheme_info.rb +1 -1
  55. data/test/bmff/box/test_protection_system_specific_header.rb +29 -1
  56. data/test/bmff/box/test_sample_auxiliary_information_offsets.rb +1 -1
  57. data/test/bmff/box/test_sample_auxiliary_information_sizes.rb +1 -1
  58. data/test/bmff/box/test_sample_dependency_type.rb +1 -1
  59. data/test/bmff/box/test_sample_description.rb +1 -1
  60. data/test/bmff/box/test_sample_encryption.rb +1 -1
  61. data/test/bmff/box/test_sample_size.rb +1 -1
  62. data/test/bmff/box/test_sample_table.rb +1 -1
  63. data/test/bmff/box/test_sample_to_chunk.rb +1 -1
  64. data/test/bmff/box/test_segment_index.rb +110 -0
  65. data/test/bmff/box/test_segment_type.rb +30 -0
  66. data/test/bmff/box/test_shadow_sync_sample.rb +1 -1
  67. data/test/bmff/box/test_sheme_information.rb +1 -1
  68. data/test/bmff/box/test_sheme_type.rb +1 -1
  69. data/test/bmff/box/test_sound_media_header.rb +1 -1
  70. data/test/bmff/box/test_sub_sample_information.rb +1 -1
  71. data/test/bmff/box/test_subsegment_index.rb +43 -0
  72. data/test/bmff/box/test_sync_sample.rb +1 -1
  73. data/test/bmff/box/test_text_meta_data_sample_entry.rb +1 -1
  74. data/test/bmff/box/test_time_to_sample.rb +1 -1
  75. data/test/bmff/box/test_track.rb +1 -1
  76. data/test/bmff/box/test_track_encryption.rb +29 -1
  77. data/test/bmff/box/test_track_extends.rb +1 -1
  78. data/test/bmff/box/test_track_fragment.rb +1 -1
  79. data/test/bmff/box/test_track_fragment_base_media_decode_time.rb +1 -1
  80. data/test/bmff/box/test_track_fragment_header.rb +1 -1
  81. data/test/bmff/box/test_track_fragment_random_access.rb +1 -1
  82. data/test/bmff/box/test_track_group.rb +1 -1
  83. data/test/bmff/box/test_track_group_type.rb +1 -1
  84. data/test/bmff/box/test_track_header.rb +1 -1
  85. data/test/bmff/box/test_track_reference.rb +1 -1
  86. data/test/bmff/box/test_track_reference_type.rb +2 -2
  87. data/test/bmff/box/test_track_run.rb +1 -1
  88. data/test/bmff/box/test_track_selection.rb +1 -1
  89. data/test/bmff/box/test_uri.rb +1 -1
  90. data/test/bmff/box/test_uri_init.rb +1 -1
  91. data/test/bmff/box/test_uri_meta_sample_entry.rb +1 -1
  92. data/test/bmff/box/test_user_data.rb +1 -1
  93. data/test/bmff/box/test_video_media_header.rb +1 -1
  94. data/test/bmff/box/test_visual_sample_entry.rb +1 -1
  95. data/test/bmff/box/test_xml_meta_data_sample_entry.rb +1 -1
  96. data/test/bmff/test_binary_accessor.rb +1 -1
  97. data/test/bmff/test_file_container.rb +42 -1
  98. data/test/minitest_helper.rb +3 -0
  99. 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
@@ -1,10 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
3
  - 2.0.0
5
- - 2.1.1
4
+ - 2.1
5
+ - 2.2
6
+ before_install:
7
+ - sudo apt-get -qq update
8
+ - gem update bundler
6
9
  notifications:
7
10
  email:
8
11
  on_success: change
9
12
  on_failure: always
10
-
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
  [![Build Status](https://travis-ci.org/zuku/bmff.svg?branch=master)](https://travis-ci.org/zuku/bmff)
8
+ [![Coverage Status](https://coveralls.io/repos/zuku/bmff/badge.png?branch=master)](https://coveralls.io/r/zuku/bmff?branch=master)
8
9
  [![Gem Version](https://badge.fury.io/rb/bmff.svg)](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 |Not yet | \ 8.16.2
166
- |Segment Index Box | sidx |Not yet | \ 8.16.3
167
- |Subsegment Index Box | ssix |Not yet | \ 8.16.4
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 = '>= 1.9.0'
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.5"
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
@@ -3,6 +3,7 @@
3
3
 
4
4
  class BMFF::Box::ProtectionSystemSpecificHeader < BMFF::Box::Full
5
5
  attr_accessor :system_id, :data_size, :data
6
+ register_box "pssh"
6
7
  register_uuid_box "d08a4f18-10f3-4a82-b6c8-32d8aba183d3"
7
8
 
8
9
  def parse_data
@@ -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,6 @@
1
+ # coding: utf-8
2
+ # vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
3
+
4
+ class BMFF::Box::SegmentType < BMFF::Box::FileType
5
+ register_box "styp"
6
+ 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
@@ -1,3 +1,3 @@
1
1
  module BMFF
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
5
5
  require 'bmff/box'
6
6
  require 'stringio'
7
7
 
8
- class TestBMFFBoxAudioSampleEntry < MiniTest::Unit::TestCase
8
+ class TestBMFFBoxAudioSampleEntry < 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 TestBMFFBoxBase < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
8
+ class TestBMFFBoxDataReference < 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 TestBMFFBoxDegradationPriority < MiniTest::Unit::TestCase
8
+ class TestBMFFBoxDegradationPriority < Minitest::Test
9
9
  class DummyBox
10
10
  attr_accessor :box
11
11
  def find(type)
@@ -5,7 +5,7 @@ require_relative '../../minitest_helper'
5
5
  require 'bmff/box'
6
6
  require 'stringio'
7
7
 
8
- class TestBMFFBoxEdit < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
8
+ class TestBMFFBoxLevelAssignment < 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 TestBMFFBoxMedia < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
8
+ class TestBMFFBoxMediaInformation < 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 TestBMFFBoxMovie < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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 < MiniTest::Unit::TestCase
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)