Skip to content

Commit

Permalink
Deploying to gh-pages from @ 6ebcc41 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
cconcolato committed Oct 26, 2023
1 parent aaf173a commit d1af83d
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 54 deletions.
54 changes: 29 additions & 25 deletions dist/mp4box.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -2907,7 +2907,7 @@ BoxParser.createBoxCtor("cmpd", function(stream) {
this.component_types = [];
this.component_type_urls = [];
for (i = 0; i < this.component_count; i++) {
var component_type = stream.readUint16();
var component_type = stream.readUint32();
this.component_types.push(component_type);
if (component_type >= 0x8000) {
this.component_type_urls.push(stream.readCString());
Expand Down Expand Up @@ -4875,31 +4875,35 @@ BoxParser.createFullBoxCtor("udes", function(stream) {
BoxParser.createFullBoxCtor("uncC", function(stream) {
var i;
this.profile = stream.readUint32();
this.component_count = stream.readUint16();
this.component_index = [];
this.component_bit_depth_minus_one = [];
this.component_format = [];
this.component_align_size = [];
for (i = 0; i < this.component_count; i++) {
this.component_index.push(stream.readUint16());
this.component_bit_depth_minus_one.push(stream.readUint8());
this.component_format.push(stream.readUint8());
this.component_align_size.push(stream.readUint8());
if (this.version == 1) {
// Nothing - just the profile
} else if (this.version == 0) {
this.component_count = stream.readUint32();
this.component_index = [];
this.component_bit_depth_minus_one = [];
this.component_format = [];
this.component_align_size = [];
for (i = 0; i < this.component_count; i++) {
this.component_index.push(stream.readUint16());
this.component_bit_depth_minus_one.push(stream.readUint8());
this.component_format.push(stream.readUint8());
this.component_align_size.push(stream.readUint8());
}
this.sampling_type = stream.readUint8();
this.interleave_type = stream.readUint8();
this.block_size = stream.readUint8();
var flags = stream.readUint8();
this.component_little_endian = (flags >> 7) & 0x1;
this.block_pad_lsb = (flags >> 6) & 0x1;
this.block_little_endian = (flags >> 5) & 0x1;
this.block_reversed = (flags >> 4) & 0x1;
this.pad_unknown = (flags >> 3) & 0x1;
this.pixel_size = stream.readUint32();
this.row_align_size = stream.readUint32();
this.tile_align_size = stream.readUint32();
this.num_tile_cols_minus_one = stream.readUint32();
this.num_tile_rows_minus_one = stream.readUint32();
}
this.sampling_type = stream.readUint8();
this.interleave_type = stream.readUint8();
this.block_size = stream.readUint8();
var flags = stream.readUint8();
this.component_little_endian = (flags >> 7) & 0x1;
this.block_pad_lsb = (flags >> 6) & 0x1;
this.block_little_endian = (flags >> 5) & 0x1;
this.block_reversed = (flags >> 4) & 0x1;
this.pad_unknown = (flags >> 3) & 0x1;
this.pixel_size = stream.readUint8();
this.row_align_size = stream.readUint32();
this.tile_align_size = stream.readUint32();
this.num_tile_cols_minus_one = stream.readUint32();
this.num_tile_rows_minus_one = stream.readUint32();
});

// file:src/parsing/url.js
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.

2 changes: 1 addition & 1 deletion src/parsing/cmpd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ BoxParser.createBoxCtor("cmpd", function(stream) {
this.component_types = [];
this.component_type_urls = [];
for (i = 0; i < this.component_count; i++) {
var component_type = stream.readUint16();
var component_type = stream.readUint32();
this.component_types.push(component_type);
if (component_type >= 0x8000) {
this.component_type_urls.push(stream.readCString());
Expand Down
52 changes: 28 additions & 24 deletions src/parsing/uncC.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
BoxParser.createFullBoxCtor("uncC", function(stream) {
var i;
this.profile = stream.readUint32();
this.component_count = stream.readUint16();
this.component_index = [];
this.component_bit_depth_minus_one = [];
this.component_format = [];
this.component_align_size = [];
for (i = 0; i < this.component_count; i++) {
this.component_index.push(stream.readUint16());
this.component_bit_depth_minus_one.push(stream.readUint8());
this.component_format.push(stream.readUint8());
this.component_align_size.push(stream.readUint8());
if (this.version == 1) {
// Nothing - just the profile
} else if (this.version == 0) {
this.component_count = stream.readUint32();
this.component_index = [];
this.component_bit_depth_minus_one = [];
this.component_format = [];
this.component_align_size = [];
for (i = 0; i < this.component_count; i++) {
this.component_index.push(stream.readUint16());
this.component_bit_depth_minus_one.push(stream.readUint8());
this.component_format.push(stream.readUint8());
this.component_align_size.push(stream.readUint8());
}
this.sampling_type = stream.readUint8();
this.interleave_type = stream.readUint8();
this.block_size = stream.readUint8();
var flags = stream.readUint8();
this.component_little_endian = (flags >> 7) & 0x1;
this.block_pad_lsb = (flags >> 6) & 0x1;
this.block_little_endian = (flags >> 5) & 0x1;
this.block_reversed = (flags >> 4) & 0x1;
this.pad_unknown = (flags >> 3) & 0x1;
this.pixel_size = stream.readUint32();
this.row_align_size = stream.readUint32();
this.tile_align_size = stream.readUint32();
this.num_tile_cols_minus_one = stream.readUint32();
this.num_tile_rows_minus_one = stream.readUint32();
}
this.sampling_type = stream.readUint8();
this.interleave_type = stream.readUint8();
this.block_size = stream.readUint8();
var flags = stream.readUint8();
this.component_little_endian = (flags >> 7) & 0x1;
this.block_pad_lsb = (flags >> 6) & 0x1;
this.block_little_endian = (flags >> 5) & 0x1;
this.block_reversed = (flags >> 4) & 0x1;
this.pad_unknown = (flags >> 3) & 0x1;
this.pixel_size = stream.readUint8();
this.row_align_size = stream.readUint32();
this.tile_align_size = stream.readUint32();
this.num_tile_cols_minus_one = stream.readUint32();
this.num_tile_rows_minus_one = stream.readUint32();
});

0 comments on commit d1af83d

Please sign in to comment.