From 47c77fe14c7f8f16c380b2092a252c080b17a80c Mon Sep 17 00:00:00 2001 From: cconcolato Date: Wed, 23 May 2018 14:11:47 -0700 Subject: [PATCH] adding VP9 HDR boxes --- src/parsing/CoLL.js | 5 +++++ src/parsing/SmDm.js | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/parsing/CoLL.js create mode 100644 src/parsing/SmDm.js diff --git a/src/parsing/CoLL.js b/src/parsing/CoLL.js new file mode 100644 index 00000000..88b39698 --- /dev/null +++ b/src/parsing/CoLL.js @@ -0,0 +1,5 @@ +BoxParser.createFullBoxCtor("CoLL", function(stream) { + this.maxCLL = stream.readUint16(); + this.maxFALL = stream.readUint16(); +}); + diff --git a/src/parsing/SmDm.js b/src/parsing/SmDm.js new file mode 100644 index 00000000..1e83e2b6 --- /dev/null +++ b/src/parsing/SmDm.js @@ -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(); +}); +