-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump package version to 0.3.10 * Add meta box Add a skeleton implementation of 'meta'. This makes the read/write editlist.mp4 test fail. This is because The meta subboxes are not yet implemented. When neither reader nor writer for meta were implemented, the test for reading/writing editlist.mp4 worked, but as soon as meta is added as a reader, the subboxes have to be implemented too to not fail this test. Rather than adding the additional boxes, we remove 'meta' from editlist.mp4. * Add grpl box * Add utf8string datatype * Add prsl box * Add the prsl box, unit tests, and an mp4 file for testing * Implement FDIS version of prsl * Make the interleaving tag is optional and contingent on a flag * Use new test content * Add labl box * Implement FDIS version of labl * read is_group_label from the flags instead of as a separate field * represent is_group_label as boolean * Add 'elng' box * Add 'ardi' box * Add 'kind' box * Add 'imda' box * Update bundles
- Loading branch information
Showing
15 changed files
with
235 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// ISO/IEC 14496-12:202x - 12.2.8 Audio rendering indication box | ||
ISOBox.prototype._boxProcessors['ardi'] = function() { | ||
this._procFullBox(); | ||
this._procField('audio_rendering_indication', 'uint', 8); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// ISO/IEC 14496-12:202x - 8.4.6 Extended language tag | ||
ISOBox.prototype._boxProcessors['elng'] = function() { | ||
this._procFullBox(); | ||
this._procField('extended_language', 'utf8string'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// ISO/IEC 14496-12:2012 - 9.1.4.1 Identified media data box | ||
ISOBox.prototype._boxProcessors['imda'] = function() { | ||
this._procField('imda_identifier', 'uint', 32); | ||
// until the end of the box | ||
this._procField('data', 'data', -1); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// ISO/IEC 14496-12:202x - 8.10.4 Track kind box | ||
ISOBox.prototype._boxProcessors['kind'] = function() { | ||
this._procFullBox(); | ||
|
||
this._procField('schemeURI', 'utf8string'); | ||
this._procField('value', 'utf8string'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// ISO/IEC 14496-12:202x - 8.10.5 Label box | ||
ISOBox.prototype._boxProcessors['labl'] = function() { | ||
this._procFullBox(); | ||
this.is_group_label = (this.flags & 0x1) != 0; | ||
this._procField('label_id', 'uint', 16); | ||
this._procField('language', 'utf8string'); | ||
this._procField('label', 'utf8string'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// ISO/IEC 14496-12:202x - 8.11.1 Meta box | ||
ISOBox.prototype._boxProcessors['meta'] = function() { | ||
this._procFullBox(); | ||
|
||
/* rest of the boxes will be read by _parseContainerBox */ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// ISO/IEC 14496-12:202x - 8.18.4.1 Preselection group box | ||
ISOBox.prototype._boxProcessors['prsl'] = function() { | ||
this._procFullBox(); | ||
this._procField('group_id', 'uint', 32); | ||
this._procField('num_entities_in_group', 'uint', 32); | ||
this._procEntries('entities', this.num_entities_in_group, function(entry) { | ||
this._procEntryField(entry, 'entity_id', 'uint', 32); | ||
}); | ||
if (this.flags & 0x1000) this._procField('preselection_tag', 'utf8string'); | ||
if (this.flags & 0x2000) this._procField('selection_priority', 'uint', 8); | ||
if (this.flags & 0x4000) this._procField('interleaving_tag', 'utf8string'); | ||
|
||
/* rest of the boxes will be read by _parseContainerBox */ | ||
}; |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters