[x265] [PATCH] fix initialization and add JSON file documentaion

bhavna at multicorewareinc.com bhavna at multicorewareinc.com
Wed May 24 12:18:07 CEST 2017


# HG changeset patch
# User Bhavna Hariharan <bhavna at multicorewareinc.com>
# Date 1495620958 -19800
#      Wed May 24 15:45:58 2017 +0530
# Node ID f77e2a5f27ce158b1820e35d63f1febc55f518c4
# Parent  355cf3582263acc9bbcb8faa24f1dfa009f41de3
fix initialization and add JSON file documentaion

diff -r 355cf3582263 -r f77e2a5f27ce doc/reST/cli.rst
--- a/doc/reST/cli.rst	Mon May 22 12:05:24 2017 +0530
+++ b/doc/reST/cli.rst	Wed May 24 15:45:58 2017 +0530
@@ -1909,7 +1909,12 @@
 	
 .. option:: --dhdr10-info <filename>
 
-	Inserts tone mapping information as an SEI message.
+	Inserts tone mapping information as an SEI message. It takes as input, 
+	the path to the JSON file containing the Creative Intent Metadata 
+	to be encoded as Dynamic Tone Mapping into the bitstream. 
+	
+	Click `here <https://www.sra.samsung.com/assets/User-data-registered-itu-t-t35-SEI-message-for-ST-2094-40-v1.1.pdf>`_
+	for the syntax of the metadata file. Sample JSON file available in downloads.  
 	
 .. option:: --dhdr10-opt, --no-dhdr10-opt
 
diff -r 355cf3582263 -r f77e2a5f27ce source/dynamicHDR10/BasicStructures.h
--- a/source/dynamicHDR10/BasicStructures.h	Mon May 22 12:05:24 2017 +0530
+++ b/source/dynamicHDR10/BasicStructures.h	Wed May 24 15:45:58 2017 +0530
@@ -35,15 +35,15 @@
     float maxRLuminance = 0.0;
     float maxGLuminance = 0.0;
     float maxBLuminance = 0.0;
-    int order;
+    int order = 0;
     std::vector<unsigned int> percentiles;
 };
 
 struct BezierCurveData
 {
-    int order;
-    int sPx;
-    int sPy;
+    int order = 0;
+    int sPx = 0;
+    int sPy = 0;
     std::vector<int> coeff;
 };
 
@@ -53,7 +53,7 @@
     float maxRLuminance = 0.0;
     float maxGLuminance = 0.0;
     float maxBLuminance = 0.0;
-    int order;
+    int order = 0;
     std::vector<unsigned int> percentiles;
 };
 


More information about the x265-devel mailing list