|
烧写1.2版本固件,成功调用rtsp-client和mpp,但是调用rga出错。
下载github上rga的demo:
编译成功,运行无反应。添加打印信息发现程序阻塞在rga->ops->go(rga)函数:
修改源码:
void rga_copy() {
RockchipRga *mRga = RgaCreate();
if (!mRga) {
printf("create rga failed !\n");
abort();
}
mRga->ops->initCtx(mRga);
mRga->ops->setSrcFormat(mRga, V4L2_PIX_FMT_ABGR32, BUFFER_WIDTH, BUFFER_HEIGHT);
mRga->ops->setDstFormat(mRga, V4L2_PIX_FMT_ABGR32, BUFFER_WIDTH, BUFFER_HEIGHT);
mRga->ops->setSrcBufferPtr(mRga, srcBuffer);
mRga->ops->setDstBufferPtr(mRga, dstBuffer);
printf("---------------------before-------------------\n");
mRga->ops->go(mRga);
printf("---------------------after--------------------\n");
}
运行结果:
[toybrick@localhost build]$ ./rga_cpy
---------------------before-------------------
在这块板子上,各种官方推荐demo无法运行,而且无有用提示,该如何解决???
|
|