Skip to content

Commit

Permalink
Deploying to gh-pages from @ 7c43087 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouqueau committed May 11, 2024
1 parent 830e8a7 commit ac02f68
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 4 deletions.
23 changes: 23 additions & 0 deletions dist/mp4box.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3256,6 +3256,29 @@ BoxParser.createEntityToGroupCtor("wbbr");

// Alternative entity (ISO/IEC 23008-12:2022 AMD1 Section 6.8.10)
BoxParser.createEntityToGroupCtor("prgr");

// Image Pyramid entity group (ISO/IEC 23008-12:20xx Section 6.8.11)
BoxParser.createEntityToGroupCtor("pymd", function(stream) {
this.group_id = stream.readUint32();
this.num_entities_in_group = stream.readUint32();
this.entity_ids = [];
for (var i = 0; i < this.num_entities_in_group; i++) {
var entity_id = stream.readUint32();
this.entity_ids.push(entity_id);
}

this.tile_size_x = stream.readUint16();
this.tile_size_y = stream.readUint16();
this.layer_binning = [];
this.tiles_in_layer_column_minus1 = [];
this.tiles_in_layer_row_minus1 = [];
for (i = 0; i < this.num_entities_in_group; i++) {
this.layer_binning[i] = stream.readUint16();
this.tiles_in_layer_row_minus1[i] = stream.readUint16();
this.tiles_in_layer_column_minus1[i] = stream.readUint16();
}
});

// file:src/parsing/esds.js
BoxParser.createFullBoxCtor("esds", function(stream) {
var esd_data = stream.readUint8Array(this.size-this.hdr_size);
Expand Down
4 changes: 2 additions & 2 deletions dist/mp4box.all.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mp4box.all.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mp4box.simple.min.js

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions src/parsing/EntityToGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,26 @@ BoxParser.createEntityToGroupCtor("wbbr");

// Alternative entity (ISO/IEC 23008-12:2022 AMD1 Section 6.8.10)
BoxParser.createEntityToGroupCtor("prgr");

// Image Pyramid entity group (ISO/IEC 23008-12:20xx Section 6.8.11)
BoxParser.createEntityToGroupCtor("pymd", function(stream) {
this.group_id = stream.readUint32();
this.num_entities_in_group = stream.readUint32();
this.entity_ids = [];
for (var i = 0; i < this.num_entities_in_group; i++) {
var entity_id = stream.readUint32();
this.entity_ids.push(entity_id);
}

this.tile_size_x = stream.readUint16();
this.tile_size_y = stream.readUint16();
this.layer_binning = [];
this.tiles_in_layer_column_minus1 = [];
this.tiles_in_layer_row_minus1 = [];
for (i = 0; i < this.num_entities_in_group; i++) {
this.layer_binning[i] = stream.readUint16();
this.tiles_in_layer_row_minus1[i] = stream.readUint16();
this.tiles_in_layer_column_minus1[i] = stream.readUint16();
}
});

0 comments on commit ac02f68

Please sign in to comment.