- int frame_size = 640 * 480 * 1.5*sizeof(unsigned char);
- unsigned char *frame_nv12 = NULL;
- frame_nv12 = (unsigned char *)malloc(frame_size);
- cv::Mat tmp= output.clone();
- RockchipRga *rga;
- rga = RgaCreate();
- rga->ops->initCtx(rga);
- rga->ops->setDstBufferPtr(rga, frame_nv12);
- rga->ops->setSrcBufferPtr(rga,(unsigned char *)tmp.data);
- rga->ops->setDstFormat(rga, V4L2_PIX_FMT_NV12, 640, 480);
- rga->ops->setSrcFormat(rga, V4L2_PIX_FMT_RGB24, 640, 480);
- rga->ops->setRotate(rga, RGA_ROTATE_NONE);
- rga->ops->go(rga);
复制代码
jefferyzhang 发表于 2020-5-14 11:20
转完sleep个几ms再存文件试试。
你的板子是toybrick的么?kernel是我们的么?
appleUncle 发表于 2020-5-14 11:27
sleep500 ms试了,还是一样。用的toybrick rk3399PROD板子,官方fedora28固件
jefferyzhang 发表于 2020-5-14 11:28
其他分辨率会么?
jefferyzhang 发表于 2020-5-14 11:28
其他分辨率会么?
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |