|
发表于 2019-11-8 16:44:41
|
显示全部楼层
本帖最后由 swlmx 于 2019-11-8 16:54 编辑
我用mpp demo里的decode_advanced代码循环300次平均每解码1帧1080p jpg要26ms,而且dmesg显示解码耗时很离谱。我另外测用jpegturbo解码平均才17ms。
另外demo里decode_simple解不了mjpeg……是不是有bug?
mpp流程循环中的伪代码:
- mpp_packet_set_pos
- mpp_packet_set_length
- //input
- mpi->poll
- mpi->dequeue
- mpp_task_meta_set_packet
- mpp_task_meta_set_frame
- mpi->enqueue
- //output
- mpi->poll
- mpi->dequeue
- mpp_task_meta_get_frame
- mpi->enqueue
dmesg里的log:
- [83150.339427] rk_vcodec: vpu2_dec task: 1573200164298 ms
- [83150.368903] rk_vcodec: vpu2_dec task: 1573200164327 ms
- [83150.394374] rk_vcodec: vpu2_dec task: 1573200164353 ms
- [83150.419830] rk_vcodec: vpu2_dec task: 1573200164378 ms
- [83150.445152] rk_vcodec: vpu2_dec task: 1573200164404 ms
- [83150.470661] rk_vcodec: vpu2_dec task: 1573200164429 ms
- [83150.496018] rk_vcodec: vpu2_dec task: 1573200164455 ms
- [83150.521544] rk_vcodec: vpu2_dec task: 1573200164480 ms
- [83150.550334] rk_vcodec: vpu2_dec task: 1573200164509 ms
- [83150.579556] rk_vcodec: vpu2_dec task: 1573200164538 ms
- [83150.620477] rk_vcodec: vpu2_dec task: 1573200164579 ms
- [83150.649453] rk_vcodec: vpu2_dec task: 1573200164608 ms
- [83150.678954] rk_vcodec: vpu2_dec task: 1573200164637 ms
- [83150.702283] rk_vcodec: vpu2_dec task: 1573200164661 ms
感觉是把当前时间戳打出来了 |
|