RK3568Terminal封装MppGraph
通过脚本取和设置音量/zigsun/bin/linux/bin.debug.Linux.rk3568/get_record_voice_value.sh
/zigsun/bin/linux/bin.debug.Linux.rk3568/set_record_voice_value.sh
class RK3568Terminal : public IAVLinkManager,
public Terminal,
public IAVEncodeStream,
public IInteractionAVStream
RK3568Terminal::videoLinkOpen对mpp初始化创建
1、编码好的VIDEO_FRAME_INFO_S(yuv数据)copy到rga_info_t并通过bo_t保存文件
m_rkRga.RkRgaGetAllocBuffer(&pInfo->bo_src[i], srcWidth, srcHeight, 12);//根据宽高和yuv类型分配置内存保存到bo_t
m_rkRga.RkRgaGetMmap(&pInfo->bo_src[i]);
memset(&pInfo->m_src_rga_info_t[i], 0, sizeof(rga_info_t));
pInfo->m_src_rga_info_t[i].fd = -1;
pInfo->m_src_rga_info_t[i].mmuFlag = 1;
m_rkRga.RkRgaGetBufferFd(&pInfo->bo_src[i], &pInfo->m_src_rga_info_t[i].fd);//bo_t和rga_info_t关联,
int nInputFd = RK_MPI_MB_Handle2Fd(pFrame->stVFrame.pMbBlk);
rga_info_t src_info; //原图像
src_info.fd = nInputFd;//与解码好的数据关联