
Somnr


0 访问量
0 原创专栏
0 资料
0 粉丝
个性签名:此E友还没有留下个性签名哦~
加入易百纳时间:2019-05-31
-
我在编译内核打开了framebuffer驱动,使内核支持了framebuffer驱动,但是开发板启动后在/dev下找不与fb相关的东西,通过cat /proc/devices能够看到29 fb,在/proc下也能看到fb,但是/dev下就是没有fb0设备,用mknod /dev/fb0 c 29 0建立了fb0但是cat /dev/fb0却提示can't open /dev/fb0 no such device. 求大神路过~2020-09-163 0 2554
-
创建原始帧,调用HI_MPI_VENC_SendFrame接口,Venc模块进行编码。编码失败。 在logmpp中能看到日志消息: <3>[ venc] [Func]:venc_check_video_info [Line]:1920 [Info]:venc 0 : sendinfo pic info err. <3>[ venc] [Func]:venc_get_stream [Line]:5014 [Info]:input buf is not enough to hold a frame,in count:0,pack count:4 <3>[ venc] [Func]:venc_check_time_ref [Line]:2720 [Info]:current timeref(0x0) is not larger than last_rcv_time_ref(0x0) demo大致流程: HI_MPI_VB_GetBlock HI_MPI_VB_Handle2PhysAddr HI_MPI_SYS_Mmap HI_MPI_VB_Handle2PoolId HI_MPI_VPSS_SendFrame HI_MPI_SYS_Munmap HI_MPI_VB_ReleaseBlock 填写原始帧部分: u32Height=720; u32Width=1280; u32LStride=1280; u32CStride=1280; u32LumaSize = (u32LStride * u32Height); u32ChrmSize = (u32CStride * u32Height) >> 2; u32Size = u32LumaSize + (u32ChrmSize << 1); pstVFrameInfo.stVFrame.enField = VIDEO_FIELD_FRAME; pstVFrameInfo.stVFrame.enPixelFormat = PIXEL_FORMAT_YVU_SEMIPLANAR_420; pstVFrameInfo.stVFrame.enVideoFormat = VIDEO_FORMAT_LINEAR; pstVFrameInfo.stVFrame.enCompressMode = COMPRESS_MODE_NONE; pstVFrameInfo.stVFrame.enDynamicRange = DYNAMIC_RANGE_SDR8; pstVFrameInfo.stVFrame.enColorGamut = COLOR_GAMUT_BT709; pstVFrameInfo.stVFrame.u64PhyAddr[0] = u64PhyAddr; pstVFrameInfo.stVFrame.u64PhyAddr[1] = pstVFrameInfo.stVFrame.u64PhyAddr[0] + u32LumaSize; pstVFrameInfo.stVFrame.u64PhyAddr[2] = pstVFrameInfo.stVFrame.u64PhyAddr[1] + u32ChrmSize; pstVFrameInfo.stVFrame.u64VirAddr[0] = u64VirAddr; pstVFrameInfo.stVFrame.u64VirAddr[1] = pstVFrameInfo.stVFrame.u64VirAddr[0] + u32LumaSize; pstVFrameInfo.stVFrame.u64VirAddr[2] = pstVFrameInfo.stVFrame.u64VirAddr[1] + u32ChrmSize; pstVFrameInfo.stVFrame.u32Width = u32Width; pstVFrameInfo.stVFrame.u32Height = u32Height; pstVFrameInfo.stVFrame.u32Stride[0] = u32LStride; pstVFrameInfo.stVFrame.u32Stride[1] = u32CStride; pstVFrameInfo.stVFrame.u32Stride[2] = u32CStride; pstVFrameInfo.stVFrame.u64PTS = n_u64PTS; ------------------------------------------------------------------------------------------------------------------------------------- 求大佬们解答小弟的疑问!非常感谢!!!!!!2020-05-121 0 4021
-
我的理解如下:如果需要编码外部数据,首先需要将yuv送入vi或vpss中。目前正在尝试调用HI_MPI_VPSS_SendFrame,遇到的问题:调用失败,错误码为0xa0078003。demo如下:2020-05-096 0 3088

共3条