- rockchip_rga rga;
- rga.init();
- struct rga_format src_fmt, dst_fmt;
- src_fmt.width = s->width;
- src_fmt.height = s->height;
- src_fmt.format = V4L2_PIX_FMT_RGB24;
- dst_fmt.width = s->width;
- dst_fmt.height = s->height;
- dst_fmt.format = V4L2_PIX_FMT_YUV420;
- rga.convert(rgbBuf->addr, yuvBuf->addr, src_fmt, dst_fmt);
- }
复制代码
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |