- 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相同
- }
复制代码
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |