@leaveye
2015-06-11T04:58:39.000000Z
字数 697
阅读 1118
w1302
DSP
接口
设计
性能
每个 DSP 传输的交互过程如下。(在新窗口打开可放大)
- | Encoder (DSP#0) | Decoder (DSP#1) |
---|---|---|
R | ||
W |
dsp_read/write()
) 方式statistic period = 100
test case | enc | dec |
---|---|---|
dec onlyF | - | 33.3 |
enc only | 35.2 / 26.0C | - |
enc + decL | 33.5 / 25.0S / 22.0C | 33.5 / 24.9S / 22.1C |
enc + dec | (unfinished) | (unfinished) |
F: read from file
S: withconvert(YUYV->YUV420)
in additional thread
C: withconvert(YUYV->YUV420)
embedded in api
L: data flow linked up. (the encoded data frames are passed to the decoder directly)
-O6
memcpy()
复制 1000 次作参考从 \ 到 | malloc() | mmap(fb) | mmap(pcie) |
---|---|---|---|
malloc() | 1G+ | ~1G | 35.3M |
mmap(fb) | 27.3M | 26.5M | 15.4M |
mmap(pcie) | 17.3M | 25.5M | 13.3M |
to be continued