<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion (closed)</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/</link><description>Recent posts to Discussion (closed)</description><atom:link href="https://sourceforge.net/p/libjpeg-turbo/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 15 Sep 2017 17:55:33 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libjpeg-turbo/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>How to compile libjpeg-turbo for Android?</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/1086868/thread/e154d2d2/?limit=25#2ca6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;BUILDING.md contains instructions on how to build libjpeg-turbo for Android.  Also, I recommended that you take advantage of the libjpeg-turbo mailing lists (on Google Groups-- &lt;a href="https://libjpeg-turbo.org/About/MailingLists" rel="nofollow"&gt;https://libjpeg-turbo.org/About/MailingLists&lt;/a&gt;) for community support, not these forums.  These forums are a legacy feature, and generally only I read them.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DRC</dc:creator><pubDate>Fri, 15 Sep 2017 17:55:33 -0000</pubDate><guid>https://sourceforge.netbedde2239f4a956d9a28bba0830fd90fed12f06b</guid></item><item><title>How to compile libjpeg-turbo for Android?</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/1086868/thread/e154d2d2/?limit=25#3553</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Dear @starsoul, &lt;/p&gt;
&lt;p&gt;Please provide sample Android code of how to access libjapeg-turbo api ?&lt;/p&gt;
&lt;p&gt;I would like to know, how did you compile and linked the library with Android.&lt;/p&gt;
&lt;p&gt;Please help me, since I am newbie to Android.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kiran T Patil</dc:creator><pubDate>Fri, 15 Sep 2017 07:33:36 -0000</pubDate><guid>https://sourceforge.netd7ab410d234cc55c066846994282d5c4a71a5616</guid></item><item><title>tjDecompress2 takes more time to execute if called after a delay</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/1086868/thread/b9922d41/?limit=25#1bf0</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If you can somehow profile the code and determine that the slow-down is due to a libjpeg-turbo function, then I'm happy to look at it, but otherwise, the evidence we have at the moment would suggest that this is a problem with Android and not libjpeg-turbo.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DRC</dc:creator><pubDate>Thu, 30 Mar 2017 16:26:31 -0000</pubDate><guid>https://sourceforge.net5bcb65f0f980f0052ff466cf4263999bbe102eb1</guid></item><item><title>tjDecompress2 takes more time to execute if called after a delay</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/1086868/thread/b9922d41/?limit=25#d9ae</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I even tried it on LG g4 &lt;a href="http://www.gsmarena.com/lg_g4-6901.php" rel="nofollow"&gt;http://www.gsmarena.com/lg_g4-6901.php&lt;/a&gt; and the results were same&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahmed Faraz</dc:creator><pubDate>Thu, 30 Mar 2017 05:04:22 -0000</pubDate><guid>https://sourceforge.neteedac94d1b328f06fa9651f513da005474e98bae</guid></item><item><title>tjDecompress2 takes more time to execute if called after a delay</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/1086868/thread/b9922d41/?limit=25#0ed0</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Your test program is also causing the same problem on my system. It is &lt;strong&gt;Qualcomm Snapdragon 805 Inforce 6501&lt;/strong&gt; kit and I am using anroid OS &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahmed Faraz</dc:creator><pubDate>Thu, 30 Mar 2017 04:24:21 -0000</pubDate><guid>https://sourceforge.net350b8665d4c48fd6f30b783dda0398d81d6a0f74</guid></item><item><title>tjDecompress2 takes more time to execute if called after a delay</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/1086868/thread/b9922d41/?limit=25#8e72</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;But note that you have never specified what operating system or hardware you are using, nor did you provide a standalone program for reproducing the problem.  If my test program still causes the problem on your system, then please give me details about that system.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DRC</dc:creator><pubDate>Wed, 29 Mar 2017 16:52:48 -0000</pubDate><guid>https://sourceforge.net1f2775cbb60693cd7cca3df245c150361e9e42af</guid></item><item><title>tjDecompress2 takes more time to execute if called after a delay</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/1086868/thread/b9922d41/?limit=25#fe74</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Yes.  The results are almost identical.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DRC</dc:creator><pubDate>Wed, 29 Mar 2017 16:46:57 -0000</pubDate><guid>https://sourceforge.netf6bcffbddc00b58cd93c09a76e7f9e768e84649c</guid></item><item><title>tjDecompress2 takes more time to execute if called after a delay</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/1086868/thread/b9922d41/?limit=25#68d9</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;have you tried runinng the code after removing the usleep(50000) statement and then compared the results. &lt;br/&gt;
Thanks&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahmed Faraz</dc:creator><pubDate>Wed, 29 Mar 2017 16:44:40 -0000</pubDate><guid>https://sourceforge.netbd7a69c2df57b2f5f6e676c8320aaff56a5fca37</guid></item><item><title>tjDecompress2 takes more time to execute if called after a delay</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/1086868/thread/b9922d41/?limit=25#7c86</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;No idea, because I can't reproduce the behavior using a similarly-sized image.  I'm attaching the full source code for the test program I am using, which is based on your code above.  In my testing, the second and subsequent iterations are a few ms faster, which is expected behavior (due to caching.)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DRC</dc:creator><pubDate>Wed, 29 Mar 2017 16:25:51 -0000</pubDate><guid>https://sourceforge.neta3d8f7e08cca2108b844b2a8398baea528622bd1</guid></item><item><title>tjDecompress2 takes more time to execute if called after a delay</title><link>https://sourceforge.net/p/libjpeg-turbo/discussion/1086868/thread/b9922d41/?limit=25#4e53</link><description>&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;for(int i=0; i&amp;lt;500; i++)&lt;br/&gt;
    {&lt;br/&gt;
        unsigned char* _compressedImage = source; &lt;br/&gt;
        int jpegSubsamp, width, height;&lt;br/&gt;
        tjhandle _jpegDecompressor = tjInitDecompress();&lt;br/&gt;
        tjDecompressHeader2(_jpegDecompressor, _compressedImage, fileSize, &amp;amp;width, &amp;amp;height, &amp;amp;jpegSubsamp);&lt;br/&gt;
        unsigned char dstBuffer&lt;span&gt;[width&lt;em&gt;height&lt;/em&gt;3]&lt;/span&gt;; //!&amp;lt; will contain the decompressed image&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="nt"&gt;unsigned&lt;/span&gt; &lt;span class="nt"&gt;long&lt;/span&gt; &lt;span class="nt"&gt;long&lt;/span&gt; &lt;span class="nt"&gt;t1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nt"&gt;GetTime&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;

    &lt;span class="nt"&gt;tjDecompress2&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;_jpegDecompressor&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;_compressedImage&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;fileSize&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;dstBuffer&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;width&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="c"&gt;/*pitch*/&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;height&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;TJPF_RGB&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;TJFLAG_FASTDCT&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

    &lt;span class="nt"&gt;unsigned&lt;/span&gt; &lt;span class="nt"&gt;long&lt;/span&gt; &lt;span class="nt"&gt;long&lt;/span&gt; &lt;span class="nt"&gt;t2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nt"&gt;GetTime&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;
    &lt;span class="nt"&gt;printf&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"TimeTaken: %llu microseconds for %f ms\n"&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;t2-t1&lt;/span&gt;&lt;span class="o"&gt;,(&lt;/span&gt;&lt;span class="nt"&gt;float&lt;/span&gt;&lt;span class="o"&gt;)((&lt;/span&gt;&lt;span class="nt"&gt;t2-t1&lt;/span&gt;&lt;span class="o"&gt;)/(&lt;/span&gt;&lt;span class="nt"&gt;1000&lt;/span&gt;&lt;span class="o"&gt;)));&lt;/span&gt;

   &lt;span class="nt"&gt;tjDestroy&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;_jpegDecompressor&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;    
    &lt;span class="nt"&gt;usleep&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;50000&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;   
&lt;span class="err"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The above mentioned code is  written to test the perfomance of libjpeg-turbo on my system&lt;br/&gt;
 it decodes  a jpeg image repeatedly in a for loop.  On my system &lt;strong&gt;tjDecompress2&lt;/strong&gt; takes around &lt;strong&gt;5-7ms&lt;/strong&gt; to decode a 1024x768 image. The issue is that if I add a  &lt;strong&gt;usleep(50000); &lt;/strong&gt;  command at the end of the loop the execution time for &lt;strong&gt;tjDecompressHeader2&lt;/strong&gt; increases to &lt;strong&gt;25-28ms&lt;/strong&gt;. What is the reason for this behaviour and how it can be fixed. &lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahmed Faraz</dc:creator><pubDate>Wed, 29 Mar 2017 09:41:11 -0000</pubDate><guid>https://sourceforge.net750b6afa3c2c22893678c1b2ca78625c4ed59eda</guid></item></channel></rss>