<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Software-related questions concerning the RS2 in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Software-related-questions-concerning-the-RS2/m-p/555046#M8965</link>
    <description>&lt;P&gt;I have come across the following issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) In the examples provided by the SDK, as listed below, the "data" frameset class is instantiated repeatedly inside the while loop. I wish to minimize the overhead in my application. Is it appropriate to define this class (once) outside the while loop? I am concerned that is I do so, there may be some undesirable memory-related effects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while (app) // Application still alive?&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;     frameset data = pipe.wait_for_frames(); // Wait for next set of frames from the camera&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;     ....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I wish to copy the 16-bit depth data into my own previously-allocated buffer. What is the fastest execution method to achieve this? Ideally, I would like to use a function like memcpy to just dump the 16-bit values into my buffer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mo&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2018 15:18:51 GMT</pubDate>
    <dc:creator>MAbdo2</dc:creator>
    <dc:date>2018-05-29T15:18:51Z</dc:date>
    <item>
      <title>Software-related questions concerning the RS2</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Software-related-questions-concerning-the-RS2/m-p/555046#M8965</link>
      <description>&lt;P&gt;I have come across the following issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) In the examples provided by the SDK, as listed below, the "data" frameset class is instantiated repeatedly inside the while loop. I wish to minimize the overhead in my application. Is it appropriate to define this class (once) outside the while loop? I am concerned that is I do so, there may be some undesirable memory-related effects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while (app) // Application still alive?&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;     frameset data = pipe.wait_for_frames(); // Wait for next set of frames from the camera&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;     ....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I wish to copy the 16-bit depth data into my own previously-allocated buffer. What is the fastest execution method to achieve this? Ideally, I would like to use a function like memcpy to just dump the 16-bit values into my buffer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mo&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 15:18:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Software-related-questions-concerning-the-RS2/m-p/555046#M8965</guid>
      <dc:creator>MAbdo2</dc:creator>
      <dc:date>2018-05-29T15:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Software-related questions concerning the RS2</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Software-related-questions-concerning-the-RS2/m-p/555047#M8966</link>
      <description>&lt;P&gt;Hello MoA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;Thank you for your contacting Intel® RealSense™ Technology support. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;For future references, your ticket number is 03421485. Please keep this number handy in case you are asked for it.&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;To answer to your questions:&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;It is okay to instantiate the frameset outside of the while loop, there will be no adverse effects.&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;It is also okay to use the memory function.&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;I hope you find this information useful.   &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;Please, let us know if further assistance is required or if we can close this case.&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;Best regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;Josh B.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Intel Customer Support</description>
      <pubDate>Mon, 04 Jun 2018 20:45:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Software-related-questions-concerning-the-RS2/m-p/555047#M8966</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-06-04T20:45:30Z</dc:date>
    </item>
  </channel>
</rss>

