大家好:
现在、我们使用 am5728开发 h264解码应用。
我们的 gstreamer 流水线如下所示:
h264 file -> h264parse -> ducatih264dec -> VPE -> appsink。
最后、我们从应用接收器获取 YUV 缓冲器。
现在,我们发现应用程序的性能非常低。 情况是这样的
当我们从应用程序接收器复制3MB 缓冲区时、其成本约为50ms。
我们认为时间太长了。
下面是 appsink 回调函数
SAMPLE = GST_APP_SINK_PULL_SAMPLE (GST_APP_SINK (对象));
Buffer = GST_SAMPLE_GET_buffer (sample);
GST_buffer_map (buffer、&map、GST_MAP_read);
gettimeofday (&tv1、&tz);
memcpy (pConv、map.data、map.size);
gettimeofday (&tv2、&tz);
tv2–tv1 = 50ms
因此、我们想知道如何减少复制时间
我们的 am5728是定制板。
处理器 SDK 为03.03.00.04