ret = ioctl(cma_heap_fd, DMA_HEAP_IOCTL_ALLOC, &buf_data); if (ret < 0) { printf("RK_DMA_HEAP_ALLOC_BUFFER failed cma_heap_fd:%d width:%d height:%d format:%d error:%d errorMsg:%s\n", cma_heap_fd, width, height, format, errno, strerror(errno)); return ret; }复制代码...
intsrc_dma_fd,dst_dma_fd; intret=0; intsrc_buf_size,dst_buf_size; src_buf_size=width*height*get_bpp_from_format(in_format); dst_buf_size=width*height*get_bpp_from_format(out_format); ret=dma_buf_alloc(heap_names[dma_path],src_buf_size,&src_dma_fd, (void**)&src_buf); if...
TBuf<TPosition::VECIN> calcBuf; //模板参数为QuePosition中的VECIN类型 uint32_t byteLen = 1024; pipe.InitBuffer(calcBuf,byteLen); //从calcBuf获取Tensor,Tensor为pipe分配的所有内存大小,为1024字节 LocalTensor<int32_t> tempTensor1 = calcBuf.Get<int32_t>(); //从calcBuf获取Tensor,Tensor为128...
[ 173.939827] rga_mm: rga_mm_map_buffer map dma_buf error! [ 173.939830] rga_mm: job buffer map failed! [ 173.939833] rga_mm: src channel map job buffer failed! [ 173.939837] rga_mm: failed to map buffer [ 173.939842] rga_job: rga_job_commit: failed to map job info [ 173.939852...
[642]: camera_source: get dma buf(0)-fd: 5 mpp[642]: mpp_rt: NOT found ion allocator mpp[642]: mpp_rt: found drm allocator mpp[642]: camera_source: get dma buf(1)-fd: 8 mpp[642]: camera_source: get dma buf(2)-fd: 9 mpp[642]: camera_source: get dma buf(3)-fd: 10...