RockchipRga *mRga;
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);
mRga->ops->setSrcBufferFd(mRga, srcFd)
mRga->ops->setDstBufferFd(mRga, dstFd);
更多回帖