<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">> I'm using x264 as compiled library in my application and would like to<br>
> display PSNR / SSIM statistics in the UI.<br>
> I've read the PSNR calculation in encoder.c and I'm interested to know if<br>
> it's thread safe to do the same calculation in my code,<br>
> or should I use sync with x264 somehow?<br>
> thanks!<br></div></div>
<br>
param->analyse.b_psnr = 1<br>
<br>
Dark Shikari<br></blockquote></div><br clear="all"><div>naturally, but that only prints to stdout.</div><div>I'm accessing PSNR programmatically, and wondering about thread-integrity of accessing h->stats from my application thread</div>
<br>
</div>