none
What is the performance comparing CopyConvertedFrameDataToArray with LockRawImageBuffer RRS feed

  • Question

  •   In Class ColorFrame,I find some methods that copy frame data to array,also there is a method-LockRawImageBuffer.In Sdk browser,the demos use the lockRawImageBuffer.Is the LockRawImageBuffer methods prior with copy methods in performance?Thank you!
    Friday, May 8, 2015 1:48 AM

All replies

  • The answer depends on what you are doing with the data and how you make your copy from the raw buffer as apposed to getting a copy. The copy is an optimized/parallel copy of the data. If you lock the buffer and access it sequentially then the copy is faster. The copy will dump the entire frame, and with color, do a conversion. Using the lock, you would have to do a color conversion, but you can access specific areas with an offset. 

    Carmine Sirignano - MSFT

    Friday, May 8, 2015 6:22 PM
  • Thank you!
    Monday, May 11, 2015 4:38 AM