Skip to content

Commit

Permalink
Deploying to gh-pages from @ c6cc468 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouqueau committed Jul 12, 2024
1 parent ac02f68 commit 3788c47
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 4 deletions.
30 changes: 30 additions & 0 deletions dist/mp4box.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3633,6 +3633,36 @@ BoxParser.createFullBoxCtor("leva", function(stream) {
}
});

// file:src/parsing/lhvC.js
BoxParser.createBoxCtor("lhvC", function(stream) {
var i, j;
var tmp_byte;
this.configurationVersion = stream.readUint8();
this.min_spatial_segmentation_idc = stream.readUint16() & 0xFFF;
this.parallelismType = (stream.readUint8() & 0x3);
tmp_byte = stream.readUint8();
this.numTemporalLayers = (tmp_byte & 0XD) >> 3;
this.temporalIdNested = (tmp_byte & 0X4) >> 2;
this.lengthSizeMinusOne = (tmp_byte & 0X3);

this.nalu_arrays = [];
var numOfArrays = stream.readUint8();
for (i = 0; i < numOfArrays; i++) {
var nalu_array = [];
this.nalu_arrays.push(nalu_array);
tmp_byte = stream.readUint8()
nalu_array.completeness = (tmp_byte & 0x80) >> 7;
nalu_array.nalu_type = tmp_byte & 0x3F;
var numNalus = stream.readUint16();
for (j = 0; j < numNalus; j++) {
var nalu = {}
nalu_array.push(nalu);
var length = stream.readUint16();
nalu.data = stream.readUint8Array(length);
}
}
});

// file:src/parsing/lsel.js
BoxParser.createBoxCtor("lsel", function(stream) {
this.layer_id = stream.readUint16();
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.

29 changes: 29 additions & 0 deletions src/parsing/lhvC.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BoxParser.createBoxCtor("lhvC", function(stream) {
var i, j;
var tmp_byte;
this.configurationVersion = stream.readUint8();
this.min_spatial_segmentation_idc = stream.readUint16() & 0xFFF;
this.parallelismType = (stream.readUint8() & 0x3);
tmp_byte = stream.readUint8();
this.numTemporalLayers = (tmp_byte & 0XD) >> 3;
this.temporalIdNested = (tmp_byte & 0X4) >> 2;
this.lengthSizeMinusOne = (tmp_byte & 0X3);

this.nalu_arrays = [];
var numOfArrays = stream.readUint8();
for (i = 0; i < numOfArrays; i++) {
var nalu_array = [];
this.nalu_arrays.push(nalu_array);
tmp_byte = stream.readUint8()
nalu_array.completeness = (tmp_byte & 0x80) >> 7;
nalu_array.nalu_type = tmp_byte & 0x3F;
var numNalus = stream.readUint16();
for (j = 0; j < numNalus; j++) {
var nalu = {}
nalu_array.push(nalu);
var length = stream.readUint16();
nalu.data = stream.readUint8Array(length);
}
}
});

0 comments on commit 3788c47

Please sign in to comment.