<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 7, 2016 at 10:51 AM, <span dir="ltr"><<a href="mailto:mahesh@multicorewareinc.com" target="_blank">mahesh@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 Mahesh Pittala <<a href="mailto:mahesh@multicorewareinc.com">mahesh@multicorewareinc.com</a>><br>
# Date 1480916513 -19800<br>
# Mon Dec 05 11:11:53 2016 +0530<br>
# Node ID ef2a58ba9fa2f0aaec4fbc27eb3351<wbr>df8696188b<br>
# Parent b2d360143d966de3832a05d8af1c82<wbr>4ecb5b8c5f<br>
csv: modify csv api<br>
<br>
diff -r b2d360143d96 -r ef2a58ba9fa2 source/x265-extras.cpp<br>
--- a/source/x265-extras.cpp Mon Dec 05 11:11:53 2016 +0530<br>
+++ b/source/x265-extras.cpp Mon Dec 05 11:11:53 2016 +0530<br>
@@ -191,7 +191,7 @@<br>
fflush(stderr);<br>
}<br>
<br>
-void x265_csvlog_encode(FILE* csvfp, const x265_api& api, const x265_param& param, const x265_stats& stats, int level, int argc, char** argv)<br>
+void x265_csvlog_encode(FILE* csvfp, const char* version, const x265_param& param, const x265_stats& stats, int level, int argc, char** argv)<br>
{<br>
if (!csvfp)<br>
return;<br>
@@ -281,7 +281,7 @@<br>
else<br>
fprintf(csvfp, " -, -, -, -, -, -, -,");<br>
<br>
- fprintf(csvfp, " %-6u, %-6u, %s\n", stats.maxCLL, stats.maxFALL, api.version_str);<br>
+ fprintf(csvfp, " %-6u, %-6u, %s\n", stats.maxCLL, stats.maxFALL, version);<br>
}<br>
<br>
/* The dithering algorithm is based on Sierra-2-4A error diffusion.<br>
diff -r b2d360143d96 -r ef2a58ba9fa2 source/x265-extras.h<br>
--- a/source/x265-extras.h Mon Dec 05 11:11:53 2016 +0530<br>
+++ b/source/x265-extras.h Mon Dec 05 11:11:53 2016 +0530<br>
@@ -53,7 +53,7 @@<br>
/* Log final encode statistics to the CSV file handle. 'argc' and 'argv' are<br>
* intended to be command line arguments passed to the encoder. Encode<br>
* statistics should be queried from the encoder just prior to closing it. */<br>
-LIBAPI void x265_csvlog_encode(FILE* csvfp, const x265_api& api, const x265_param& param, const x265_stats& stats, int level, int argc, char** argv);<br>
+LIBAPI void x265_csvlog_encode(FILE* csvfp, const char* version, const x265_param& param, const x265_stats& stats, int level, int argc, char** argv);<br></blockquote><div><br></div><div>Since the APi is changing, the BUILD_NUMBER needs to be increased.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
/* In-place downshift from a bit-depth greater than 8 to a bit-depth of 8, using<br>
* the residual bits to dither each row. */<br>
diff -r b2d360143d96 -r ef2a58ba9fa2 source/x265.cpp<br>
--- a/source/x265.cpp Mon Dec 05 11:11:53 2016 +0530<br>
+++ b/source/x265.cpp Mon Dec 05 11:11:53 2016 +0530<br>
@@ -746,7 +746,7 @@<br>
<br>
api->encoder_get_stats(<wbr>encoder, &stats, sizeof(stats));<br>
if (cliopt.csvfpt && !b_ctrl_c)<br>
- x265_csvlog_encode(cliopt.<wbr>csvfpt, *api, *param, stats, cliopt.csvLogLevel, argc, argv);<br>
+ x265_csvlog_encode(cliopt.<wbr>csvfpt, api->version_str, *param, stats, cliopt.csvLogLevel, argc, argv);<br>
api->encoder_close(encoder);<br>
<br>
int64_t second_largest_pts = 0;<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>