|
- MPP_RET test_mpp_run(MpiEncTestData* p, void* input_data, size_t bufLen)
- {
- MPP_RET ret = MPP_OK;
- MppMeta meta = NULL;
- MppFrame frame = NULL;
- MppPacket packet = NULL;
- void* buf = mpp_buffer_get_ptr(p->frm_buf);
- //TODO: improve performance here?
- memmove(buf, input_data, bufLen);//YUV
- ret = mpp_frame_init(&frame);
- if (ret) {
- printf("mpp_frame_init failed\n");
- goto RET;
- }
- // 后面与demo相同
- }
上面为我参考https://www.cnblogs.com/xue0708/p/10113302.html修改后的部分代码,原本的编码demo中处理的是文件或者USB摄像头。input_data是推理后的帧。
GDB检测得到的结果如下:
#0 0x0000007fb72c63b8 in __memcpy_generic () at ../sysdeps/aarch64/multiarch/../memcpy.S:170
#1 0x0000005555584410 in test_mpp_run (p=0x7ebc01a7e0, input_data=0x170, bufLen=460800)
|
|