postDataTimestamp 中的空指针 - CameraSource.cpp (Stagefright)
目前,我正在尝试访问相机数据并将其从我的应用程序发送到默认编码器。
我需要在camerasource.cpp的postDataTimestamp()中访问相机返回的数据。在检查数据指针时,我发现它为空。但在 postData() 中它是一个有效的指针。
当我尝试在 postdatatimestamp() 中打印数据指针时,出现“无法映射 bpMemoryHeap 错误”。我不确定为什么会出现此问题。
在讨论中,听说由于相机和我的应用程序在两个不同的进程中运行,所以我收到此错误,并且无法访问 postDataTimestamp() 中的cameraData。
有人可以阐明这个问题吗?
谢谢。
Currently, I m trying to access the camera data and send it to default encoder from my application.
I need to access the data returned by camera in postDataTimestamp() in camerasource.cpp. On checking the data pointer I found it was null. But in postData() it is a valid pointer.
I get "cannot map bpMemoryHeap error" when i try to print the data pointer in postdatatimestamp().. I m not sure why I get this prob.
On discussing, heard since the camera and my application are running in two different process and so I get this error and I cannot access the cameraData in postDataTimestamp().
Can someone shed some light on this issue..?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论