<?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 Re: Using rs2_get_video_stream_resolution in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Using-rs2-get-video-stream-resolution/m-p/576437#M10465</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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thank you for your interest in the Intel RealSense Technology. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;In regards to your query, the following sample, demonstrates how to get stream profiles for sensors:  &lt;A href="https://github.com/IntelRealSense/librealsense/blob/13f3db2d7576b06162230a3af92b502aa5a94736/examples/sensor-control/rs-sensor-control.cpp"&gt;https://github.com/IntelRealSense/librealsense/blob/13f3db2d7576b06162230a3af92b502aa5a94736/examples/sensor-control/rs-sensor-control.cpp&lt;/A&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;You can also follow &lt;A href="https://github.com/IntelRealSense/librealsense/blob/0040d1f21b2f6e0b9d6e6cb7153fb12acdd8796b/examples/sensor-control/api_how_to.h"&gt;https://github.com/IntelRealSense/librealsense/blob/0040d1f21b2f6e0b9d6e6cb7153fb12acdd8796b/examples/sensor-control/api_how_to.h&lt;/A&gt; &lt;CODE&gt;api_how_to.h&lt;/CODE&gt; for detailed documentation and explanations, on the following link:  &lt;A href="https://github.com/IntelRealSense/librealsense/blob/0040d1f21b2f6e0b9d6e6cb7153fb12acdd8796b/examples/sensor-control/readme.md"&gt;https://github.com/IntelRealSense/librealsense/blob/0040d1f21b2f6e0b9d6e6cb7153fb12acdd8796b/examples/sensor-control/readme.md&lt;/A&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Let me know if this is helpful. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards, &lt;P&gt;&amp;nbsp;&lt;/P&gt;Casandra  &lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jun 2018 16:29:06 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2018-06-06T16:29:06Z</dc:date>
    <item>
      <title>Using rs2_get_video_stream_resolution</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Using-rs2-get-video-stream-resolution/m-p/576436#M10464</link>
      <description>&lt;P&gt;I wish to get the image sizes by calling the rs2_get_video_stream_resolution API. I am unclear as to what the 1st parameters passed in should be and how/where I would get this parameters. Any snippet of code to show to use this API is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2_get_video_stream_resolution(Rs2StreamProfile,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &amp;amp;Width,&lt;/P&gt;&lt;P&gt;    &amp;amp;Height,&lt;/P&gt;&lt;P&gt;    NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I put for "Rs2StreamProfile"?&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, 05 Jun 2018 17:33:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Using-rs2-get-video-stream-resolution/m-p/576436#M10464</guid>
      <dc:creator>MAbdo2</dc:creator>
      <dc:date>2018-06-05T17:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using rs2_get_video_stream_resolution</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Using-rs2-get-video-stream-resolution/m-p/576437#M10465</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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thank you for your interest in the Intel RealSense Technology. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;In regards to your query, the following sample, demonstrates how to get stream profiles for sensors:  &lt;A href="https://github.com/IntelRealSense/librealsense/blob/13f3db2d7576b06162230a3af92b502aa5a94736/examples/sensor-control/rs-sensor-control.cpp"&gt;https://github.com/IntelRealSense/librealsense/blob/13f3db2d7576b06162230a3af92b502aa5a94736/examples/sensor-control/rs-sensor-control.cpp&lt;/A&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;You can also follow &lt;A href="https://github.com/IntelRealSense/librealsense/blob/0040d1f21b2f6e0b9d6e6cb7153fb12acdd8796b/examples/sensor-control/api_how_to.h"&gt;https://github.com/IntelRealSense/librealsense/blob/0040d1f21b2f6e0b9d6e6cb7153fb12acdd8796b/examples/sensor-control/api_how_to.h&lt;/A&gt; &lt;CODE&gt;api_how_to.h&lt;/CODE&gt; for detailed documentation and explanations, on the following link:  &lt;A href="https://github.com/IntelRealSense/librealsense/blob/0040d1f21b2f6e0b9d6e6cb7153fb12acdd8796b/examples/sensor-control/readme.md"&gt;https://github.com/IntelRealSense/librealsense/blob/0040d1f21b2f6e0b9d6e6cb7153fb12acdd8796b/examples/sensor-control/readme.md&lt;/A&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Let me know if this is helpful. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards, &lt;P&gt;&amp;nbsp;&lt;/P&gt;Casandra  &lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 16:29:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Using-rs2-get-video-stream-resolution/m-p/576437#M10465</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-06-06T16:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using rs2_get_video_stream_resolution</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Using-rs2-get-video-stream-resolution/m-p/576438#M10466</link>
      <description>&lt;P&gt;Thank you for the update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning the stream selection, I looked up the "how_to" section, but it really doesn't provide the solution I am looking for. I am not interested in finding out how many different stream profiles a sensor can provide ..., rather I need to the know the image resolution of whatever video stream is already selected. Think of the situation as two (2) simple steps, shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Step 1 : Select the device (somehow, by index, by serial number, whatever). So, we now have our device selected&lt;/P&gt;&lt;P&gt;     Step 2 : Find the resolution of the image that would be acquired, if the pipe starts. This is where my problem is, I just need to know what resolution an image that would be taken by the pipe would have. I just want to know the resolution of the next immediate image that pipe would produce; I really don't care about how many streams there could potentially be supported, etc. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to achieve Step 2 above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mo&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 17:48:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Using-rs2-get-video-stream-resolution/m-p/576438#M10466</guid>
      <dc:creator>MAbdo2</dc:creator>
      <dc:date>2018-06-12T17:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using rs2_get_video_stream_resolution</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Using-rs2-get-video-stream-resolution/m-p/576439#M10467</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;The api_how_to.h file shows how to cycle through the stream profiles for a given sensor in the function, static rs2::stream_profile choose_a_streaming_profile(const rs2::sensor&amp;amp; sensor). The stream_profile has a bool called stream_profile.is_default(); that will tell you if the stream_profile is the default or not. Once you have the default profile you can find out the height, width, fps. See the rest of the code in the choose_a_streaming_profile function to see how to get these parameters in lines 420 - 429.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;Jesus G.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Intel Customer Support</description>
      <pubDate>Thu, 14 Jun 2018 16:48:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Using-rs2-get-video-stream-resolution/m-p/576439#M10467</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-06-14T16:48:43Z</dc:date>
    </item>
  </channel>
</rss>

