I noticed that accessing the pixels returned by CVPixelBufferGetBaseAddress
directly (I'm u开发者_JAVA百科sing two nested for-loops) is about 100 times slower than first allocating a buffer with malloc, memcpy the pixels into that buffer and then accessing the pixels in that buffer. Why is that?
first memcpy into buffer faster than direct access to pixels of CVPixelBufferGetBaseAddress
I noticed that accessing the pixels returned by CVPixelBufferGetBaseAddress directly (I\'m u开发者_JAVA百科sing two nested for-loops) is about 100 times slower than first allocating a buffer with mall
0
0
0
精彩评论