This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] DM385:如何设置 MCFW 时间(用于时间戳)

Guru**** 2589265 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/639406/dm385-how-to-set-mcfw-time-for-timestamp

器件型号:DM385

大家好、

是否有人知道如何调整 MCFW 发出的时间戳以使用系统时间? 例如、在我的用例中、我的摄像机帧编码到 h264、然后通过 IpcBitsInLink 链接发送到主机处理器。 在该链接的回调中、我使用 IpcBitsInLink_getFullVideoBitStreamBuf 获取包含编码帧的缓冲区列表、缓冲区的一部分信息是时间戳。

我可以告诉大家,对于摄像机链路,这个时间戳来自 Utils_getCurTimeInMsec(),它从 Timestamp_get64和 Timestamp_getFreq 获取时间。 这些函数来自 XDC 运行时、来自我可以告诉的内容、我认为它们从 CPU 定时器寄存器获取当前的运行时间。

是否有任何方法可以将此时间戳设置为与 Linux 系统时间相关联?

谢谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    请检查 OSA_getCurTimeInMsec() API 的实现。

    此 API 用于 HLOS 端。

    从 IpcBitsInLink_getVideoFullBitStreamBuf 获取编码缓冲器后,您可以使用上述 API 修改时间戳以获取 ARM 时钟。