Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到CVPixelBufferGetBaseAddress直接访问由返回的像素(我使用两个嵌套的 for 循环)比首先使用 malloc 分配缓冲区、将像素 memcpy 到该缓冲区然后访问该缓冲区中的像素慢大约 100 倍。这是为什么?
CVPixelBufferGetBaseAddress