- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have come across the following issues:
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.
while (app) // Application still alive?
{
frameset data = pipe.wait_for_frames(); // Wait for next set of frames from the camera
....
}
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
Thanks,
Mo
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello MoA,
Thank you for your contacting Intel® RealSense™ Technology support.
For future references, your ticket number is 03421485. Please keep this number handy in case you are asked for it.
To answer to your questions:
It is okay to instantiate the frameset outside of the while loop, there will be no adverse effects.
It is also okay to use the memory function.
I hope you find this information useful.
Please, let us know if further assistance is required or if we can close this case.
Best regards,
Josh B.
Intel Customer Support
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page