- ret = rga_control(m_rga_ctx, RGA_CMD_SET_SRC, src_yuv);
- if (ret)
- {
- printf("rga cmd setup source failed %d\n", ret);
- return -1;
- }
- ret = rga_control(m_rga_ctx, RGA_CMD_SET_DST, m_originalData.dst_frm);
- if (ret)
- {
- printf("rga cmd setup destination failed %d\n", ret);
- return -1;
- }
- ret = rga_control(m_rga_ctx, RGA_CMD_RUN_SYNC, NULL);
- if (ret)
- {
- printf("rga cmd process copy failed %d\n", ret);
- return -1;
- }
复制代码
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |