View my account

Comments

3 comments

  • MartyX Grover

    Hi Yixun Liu  My understanding is that the smart pointer is the frame handle that a frame is wrapped in, and get_data() is used to retrieve data from the frame handle. 

    0
    Comment actions Permalink
  • Yixun Liu

    Sure. I believe so.  My question is it's like a unique pointer because as it states that "the underlying memory is exclusively yours"?

    Thanks.

    0
    Comment actions Permalink
  • MartyX Grover

    I researched your question above carefully but the only pointer related references in the SDK's official rs2::frame documentation page relate to get_data() and get_profile()

    https://intelrealsense.github.io/librealsense/doxygen/classrs2_1_1frame.html

     

    The relationship of rs2::frame to get_data is referenced in the frame buffering documentation that you linked to at the beginning of this case.

    "If no processing was necessary on the frame, rs2::frame::get_data will provide a direct pointer to the buffer provided by the underlying driver stack.  No extra memory copies are performed in this case".

    0
    Comment actions Permalink

Please sign in to leave a comment.