Skip to content

Commit

Permalink
Deploying to gh-pages from @ 797571e 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
cconcolato committed Aug 8, 2023
1 parent bad0560 commit 4094088
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 26 deletions.
25 changes: 13 additions & 12 deletions dist/mp4box.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3617,20 +3617,21 @@ BoxParser.createBoxCtor("maxr", function(stream) {
});

// file:src/parsing/mdcv.js
function ColorPoint(x, y) {
this.x = x;
this.y = y;
}

ColorPoint.prototype.toString = function() {
return "("+this.x+","+this.y+")";
}

BoxParser.createBoxCtor("mdcv", function(stream) {
this.display_primaries = [];
this.display_primaries[0] = {};
this.display_primaries[0].x = stream.readUint16();
this.display_primaries[0].y = stream.readUint16();
this.display_primaries[1] = {};
this.display_primaries[1].x = stream.readUint16();
this.display_primaries[1].y = stream.readUint16();
this.display_primaries[2] = {};
this.display_primaries[2].x = stream.readUint16();
this.display_primaries[2].y = stream.readUint16();
this.white_point = {};
this.white_point.x = stream.readUint16();
this.white_point.y = stream.readUint16();
this.display_primaries[0] = new ColorPoint(stream.readUint16(),stream.readUint16());
this.display_primaries[1] = new ColorPoint(stream.readUint16(),stream.readUint16());
this.display_primaries[2] = new ColorPoint(stream.readUint16(),stream.readUint16());
this.white_point = new ColorPoint(stream.readUint16(),stream.readUint16());
this.max_display_mastering_luminance = stream.readUint32();
this.min_display_mastering_luminance = stream.readUint32();
});
Expand Down
2 changes: 1 addition & 1 deletion 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.

25 changes: 13 additions & 12 deletions src/parsing/mdcv.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
function ColorPoint(x, y) {
this.x = x;
this.y = y;
}

ColorPoint.prototype.toString = function() {
return "("+this.x+","+this.y+")";
}

BoxParser.createBoxCtor("mdcv", function(stream) {
this.display_primaries = [];
this.display_primaries[0] = {};
this.display_primaries[0].x = stream.readUint16();
this.display_primaries[0].y = stream.readUint16();
this.display_primaries[1] = {};
this.display_primaries[1].x = stream.readUint16();
this.display_primaries[1].y = stream.readUint16();
this.display_primaries[2] = {};
this.display_primaries[2].x = stream.readUint16();
this.display_primaries[2].y = stream.readUint16();
this.white_point = {};
this.white_point.x = stream.readUint16();
this.white_point.y = stream.readUint16();
this.display_primaries[0] = new ColorPoint(stream.readUint16(),stream.readUint16());
this.display_primaries[1] = new ColorPoint(stream.readUint16(),stream.readUint16());
this.display_primaries[2] = new ColorPoint(stream.readUint16(),stream.readUint16());
this.white_point = new ColorPoint(stream.readUint16(),stream.readUint16());
this.max_display_mastering_luminance = stream.readUint32();
this.min_display_mastering_luminance = stream.readUint32();
});
Expand Down

0 comments on commit 4094088

Please sign in to comment.