<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 5:47 AM, <span dir="ltr"><<a href="mailto:bhavna@multicorewareinc.com" target="_blank">bhavna@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Bhavna Hariharan <<a href="mailto:bhavna@multicorewareinc.com">bhavna@multicorewareinc.com</a>><br>
# Date 1492676577 -19800<br>
# Thu Apr 20 13:52:57 2017 +0530<br>
# Branch stable<br>
# Node ID 4396b679ffa6a77630fff7a99b7c21<wbr>852ad23592<br>
# Parent 6dc49dcff6da50aab6e098f35194ea<wbr>1c8098db2f<br>
compilation fix in dhdr10<br></blockquote><div><br></div><div>Pushed to stable branch.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
diff -r 6dc49dcff6da -r 4396b679ffa6 source/encoder/encoder.cpp<br>
--- a/source/encoder/encoder.cpp Wed Apr 19 23:01:07 2017 -0700<br>
+++ b/source/encoder/encoder.cpp Thu Apr 20 13:52:57 2017 +0530<br>
@@ -85,10 +85,12 @@<br>
for (int i = 0; i < X265_MAX_FRAME_THREADS; i++)<br>
m_frameEncoder[i] = NULL;<br>
MotionEstimate::initScales();<br>
+<br>
#if ENABLE_DYNAMIC_HDR10<br>
m_hdr10plus_api = hdr10plus_api_get();<br>
+#endif<br>
+<br>
m_prevTonemapPayload.payload = NULL;<br>
-#endif<br>
}<br>
inline char *strcatFilename(const char *input, const char *suffix)<br>
{<br>
diff -r 6dc49dcff6da -r 4396b679ffa6 source/encoder/encoder.h<br>
--- a/source/encoder/encoder.h Wed Apr 19 23:01:07 2017 -0700<br>
+++ b/source/encoder/encoder.h Thu Apr 20 13:52:57 2017 +0530<br>
@@ -31,7 +31,10 @@<br>
#include "x265.h"<br>
#include "nal.h"<br>
#include "framedata.h"<br>
-#include "dynamicHDR10\hdr10plus.h"<br>
+<br>
+#ifdef ENABLE_DYNAMIC_HDR10<br>
+ #include "dynamicHDR10\hdr10plus.h"<br>
+#endif<br>
<br>
struct x265_encoder {};<br>
namespace X265_NS {<br>
@@ -174,15 +177,21 @@<br>
double m_cR;<br>
<br>
int m_bToneMap; // Enables tone-mapping<br>
- const hdr10plus_api* m_hdr10plus_api;<br>
+<br>
+#ifdef ENABLE_DYNAMIC_HDR10<br>
+ const hdr10plus_api *m_hdr10plus_api;<br>
+#endif<br>
+<br>
x265_sei_payload m_prevTonemapPayload;<br>
<br>
Encoder();<br>
- ~Encoder()<br>
+ ~Encoder()<br>
{<br>
+#ifdef ENABLE_DYNAMIC_HDR10<br>
if (m_prevTonemapPayload.payload != NULL)<br>
X265_FREE(m_<wbr>prevTonemapPayload.payload);<br>
- }<br>
+#endif<br>
+ };<br>
<br>
void create();<br>
void stopJobs();<br>
diff -r 6dc49dcff6da -r 4396b679ffa6 source/encoder/sei.cpp<br>
--- a/source/encoder/sei.cpp Wed Apr 19 23:01:07 2017 -0700<br>
+++ b/source/encoder/sei.cpp Thu Apr 20 13:52:57 2017 +0530<br>
@@ -48,8 +48,8 @@<br>
/* virtual writeSEI method, write to bit counter to determine size */<br>
writeSEI(sps);<br>
m_bitIf = &bs;<br>
- uint32_t type = m_payloadType;<br>
- for (; type >= 0xff; type -= 0xff)<br>
+ uint32_t payloadType = m_payloadType;<br>
+ for (; payloadType >= 0xff; payloadType -= 0xff)<br>
WRITE_CODE(0xff, 8, "payload_type");<br>
}<br>
WRITE_CODE(type, 8, "payload_type");<br>
______________________________<wbr>_________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x265-devel</a><br>
</blockquote></div><br></div></div>