克隆CVPixelBuffer - 怎么样? [英] Cloning CVPixelBuffer - how to?

查看:127
本文介绍了克隆CVPixelBuffer - 怎么样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一些与变量关联的像素缓冲区:

Say I have some pixel buffer associated with variable:

CVPixelBufferRef a;

CVPixelBufferRef a;

我想 clone 缓冲区包含所有内容,并将克隆的一个分配给另一个变量。
最正确,最快速的方法是什么?

I want to clone that buffer with all it contents and assign the cloned one to another variable. What is the most correct and fast way to do that?

推荐答案

到目前为止,我找不到更好的解决方案比memcpy()。希望它能复制所有需要的数据。

So far I did not find a better solution than memcpy(). Hope it copies all the needed data.

这篇关于克隆CVPixelBuffer - 怎么样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆