Skip to content

Commit

Permalink
adding VP9 HDR boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
cconcolato committed May 23, 2018
1 parent 8c6387a commit 47c77fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/parsing/CoLL.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BoxParser.createFullBoxCtor("CoLL", function(stream) {
this.maxCLL = stream.readUint16();
this.maxFALL = stream.readUint16();
});

13 changes: 13 additions & 0 deletions src/parsing/SmDm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
BoxParser.createFullBoxCtor("SmDm", function(stream) {
this.primaryRChromaticity_x = stream.readUint16();
this.primaryRChromaticity_y = stream.readUint16();
this.primaryGChromaticity_x = stream.readUint16();
this.primaryGChromaticity_y = stream.readUint16();
this.primaryBChromaticity_x = stream.readUint16();
this.primaryBChromaticity_y = stream.readUint16();
this.whitePointChromaticity_x = stream.readUint16();
this.whitePointChromaticity_y = stream.readUint16();
this.luminanceMax = stream.readUint32();
this.luminanceMin = stream.readUint32();
});

0 comments on commit 47c77fe

Please sign in to comment.