postDataTimestamp 中的空指针 - CameraSource.cpp (Stagefright)

发布于 2024-12-16 11:18:56 字数 345 浏览 5 评论 0原文

目前,我正在尝试访问相机数据并将其从我的应用程序发送到默认编码器。

我需要在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文