开发者

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 malloc, memcpy the pixels into that buffer and then accessing the pixels in that buffer. Why is that?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜