<?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 Recording rawstreams in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Recording-rawstreams/m-p/1033463#M43017</link>
    <description>&lt;P&gt;I am trying to record the raw stream using the following C++ program from the documentation(&lt;A class="dropdown-toggle" style="cursor: pointer; font-family: Calibri; font-size: 14.3999996185303px; line-height: normal;"&gt;C++ Example 17: Record or Playback Color Samples using the SenseManager&lt;/A&gt;)&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void RecordORPlayback(pxcCHAR *file, bool record) {
   // Create a SenseManager instance
   PXCSenseManager *sm=PXCSenseManager::CreateInstance();
 
   // Set file recording or playback
   sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetFileName(file,record);
 
   // Select the color stream
   sm-&amp;gt;EnableStream(PXCCapture.STREAM_TYPE_COLOR,640,480,0);
 
   // Initialize and Record 300 frames
   sm-&amp;gt;Init();
   for (int i=0;i&amp;lt;300;i++) {
       // This function blocks until a color sample is ready
       if (sm-&amp;gt;AcquireFrame(true)&amp;lt;PXC_STATUS_NO_ERROR) break;
 
       // Retrieve the sample
       PXCCapture::Sample *sample=sm-&amp;gt;QuerySample();
 
       // Work on the image sample-&amp;gt;color
       ...
 
       // Go fetching the next sample
       sm-&amp;gt;ReleaseFrame();
   }
 
   // close down
   sm-&amp;gt;Release();
}&lt;/PRE&gt;

&lt;P&gt;Could you please tell me how to create the file and assign it to a pxcCHAR pointer variable?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Dec 2014 12:06:58 GMT</pubDate>
    <dc:creator>Sumit_A_</dc:creator>
    <dc:date>2014-12-26T12:06:58Z</dc:date>
    <item>
      <title>Recording rawstreams</title>
      <link>https://community.intel.com/t5/Software-Archive/Recording-rawstreams/m-p/1033463#M43017</link>
      <description>&lt;P&gt;I am trying to record the raw stream using the following C++ program from the documentation(&lt;A class="dropdown-toggle" style="cursor: pointer; font-family: Calibri; font-size: 14.3999996185303px; line-height: normal;"&gt;C++ Example 17: Record or Playback Color Samples using the SenseManager&lt;/A&gt;)&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void RecordORPlayback(pxcCHAR *file, bool record) {
   // Create a SenseManager instance
   PXCSenseManager *sm=PXCSenseManager::CreateInstance();
 
   // Set file recording or playback
   sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetFileName(file,record);
 
   // Select the color stream
   sm-&amp;gt;EnableStream(PXCCapture.STREAM_TYPE_COLOR,640,480,0);
 
   // Initialize and Record 300 frames
   sm-&amp;gt;Init();
   for (int i=0;i&amp;lt;300;i++) {
       // This function blocks until a color sample is ready
       if (sm-&amp;gt;AcquireFrame(true)&amp;lt;PXC_STATUS_NO_ERROR) break;
 
       // Retrieve the sample
       PXCCapture::Sample *sample=sm-&amp;gt;QuerySample();
 
       // Work on the image sample-&amp;gt;color
       ...
 
       // Go fetching the next sample
       sm-&amp;gt;ReleaseFrame();
   }
 
   // close down
   sm-&amp;gt;Release();
}&lt;/PRE&gt;

&lt;P&gt;Could you please tell me how to create the file and assign it to a pxcCHAR pointer variable?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2014 12:06:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recording-rawstreams/m-p/1033463#M43017</guid>
      <dc:creator>Sumit_A_</dc:creator>
      <dc:date>2014-12-26T12:06:58Z</dc:date>
    </item>
    <item>
      <title>Hello Sumit,</title>
      <link>https://community.intel.com/t5/Software-Archive/Recording-rawstreams/m-p/1033464#M43018</link>
      <description>&lt;P&gt;Hello Sumit,&lt;/P&gt;

&lt;P&gt;You can record raw streams by directly using the above function by specifying a .rssdk file which can be viewed or edited in the clip editer sample of the sdk.&lt;/P&gt;

&lt;P&gt;To assign the file name you simply have to mention the path in the PXCChar variable. The following code will work:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;int wmain(int argc, WCHAR* argv[]) {
	// Create a SenseManager instance
	PXCPointF32 *uvmap = 0;
	pxcCHAR *file = L"C:\\new.rssdk";
	PXCSenseManager *sm = PXCSenseManager::CreateInstance();
	// Set file recording or playback
	sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetFileName(file, 1);
	// Select the color stream
	sm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_DEPTH, 640, 480, 0);
	// Initialize and Record 300 frames
	sm-&amp;gt;Init();
	for (int i = 0; i&amp;lt;300; i++) {
		// This function blocks until a color sample is ready
		if (sm-&amp;gt;AcquireFrame(true)&amp;lt;PXC_STATUS_NO_ERROR) break;
		// Retrieve the sample
		PXCCapture::Sample *sample = sm-&amp;gt;QuerySample();
		sm-&amp;gt;ReleaseFrame();
	}
	// close down
	sm-&amp;gt;Release();
	return 0;
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Dont forget to put the 'L' before the location as PXCChar is a whar_t. Type in the name of the new file in the location you want.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 13:20:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Recording-rawstreams/m-p/1033464#M43018</guid>
      <dc:creator>Arun_D_</dc:creator>
      <dc:date>2015-01-08T13:20:00Z</dc:date>
    </item>
  </channel>
</rss>

