|
发表于 2021-7-29 14:34:57
只看该作者
23#
按照#22 说明step-by-step后log如下.
请教一下:
1. 为什么要额外加dbserver & ispserver & 这两个指令
2. 这样的log正常吗?
- [root@RV1126_RV1109:/oem/usr/bin]# ./rkmedia_vi_zbar_test -a /oem/etc/iqfiles/
- [Banlangen1430] origin media get entity by name: rkcif-lvds-subdev is null
- [Banlangen1430] origin media get entity by name: rkcif-lite-lvds-subdev is null
- [Banlangen1430] origin media get entity by name: rkisp-mpfbc-subdev is null
- [Banlangen1430] origin media get entity by name: rkisp_dmapath is null
- [Banlangen1430] origin media get entity by name: rockchip-mipi-dphy-rx is null
- Rga built version:1.04 9286b22+2021-07-21 09:58:28
- ##RKMEDIA Log level: 2
- [RKMEDIA][SYS][Info]:text is all=2
- [RKMEDIA][SYS][Info]:module is all, log_level is 2
- [RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:1]:rkispp_scale0, 1920x1080 Start...
- [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media0
- [Banlangen1430] origin media get entity by name: rkcif-lvds-subdev is null
- [Banlangen1430] origin media get entity by name: rkcif-lite-lvds-subdev is null
- [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media1
- [Banlangen1430] origin media get entity by name: rkisp-mpfbc-subdev is null
- [Banlangen1430] origin media get entity by name: rkisp_dmapath is null
- [Banlangen1430] origin media get entity by name: rockchip-mipi-dphy-rx is null
- [RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev4
- [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media2
- [RKMEDIA][SYS][Info]:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0
- [RKMEDIA][SYS][Info]:#V4l2Stream: camraID:0, Device:rkispp_scale0
- [RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale0
- [RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale0, idx: 0
- [RKMEDIA][SYS][Info]:#V4l2Stream: camera id:0, VideoNode:/dev/video19
- Using mplane plugin for capture
- [RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video19, fd 6
- [RKMEDIA][SYS][Info]:Opened DRM device /dev/dri/card0: driver rockchip version 2.0.0.
- [RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:1]:rkispp_scale0, 1920x1080 End...
- [RKMEDIA][SYS][Info]:RK_MPI_RGA_CreateChn: Enable RGA[0], Rect<0,0,1920,1080> Start...
- [RKMEDIA][SYS][Info]:FilterFlow:rkrga: Enable BufferPool! memtype:hw_mem, memcnt:12
- [RKMEDIA][SYS][Info]:RK_MPI_RGA_CreateChn: Enable RGA[0], Rect<0,0,1920,1080> End...
- [RKMEDIA][SYS][Info]:RK_MPI_VO_CreateChn: Enable VO[0] Start...
- [RKMEDIA][SYS][Info]:conn id : 56, enc id: 55, crtc id: 53, plane id: 52, w/h: 800,1280, fps: 54
- [RKMEDIA][SYS][Info]:RK_MPI_VO_CreateChn: Enable VO[0] End!
- [RKMEDIA][SYS][Info]:RK_MPI_RGA_CreateChn: Enable RGA[1], Rect<0,0,1920,1080> Start...
- [RKMEDIA][SYS][Info]:FilterFlow:rkrga: Enable BufferPool! memtype:hw_mem, memcnt:12
- [RKMEDIA][SYS][Info]:RK_MPI_RGA_CreateChn: Enable RGA[1], Rect<0,0,1920,1080> End...
- [RKMEDIA][SYS][Info]:RK_MPI_SYS_Bind: Bind Mode[VI]:Chn[1] to Mode[RGA]:Chn[0]...
- [RKMEDIA][SYS][Info]:RK_MPI_SYS_Bind: Bind Mode[VI]:Chn[1] to Mode[RGA]:Chn[1]...
- [RKMEDIA][SYS][Info]:RK_MPI_SYS_Bind: Bind Mode[RGA]:Chn[1] to Mode[VO]:Chn[0]...
- main initial finish
复制代码
- /* MPI Init */
- RK_MPI_SYS_Init();
- #ifdef RKAIQ
- rk_aiq_working_mode_t hdr_mode = RK_AIQ_WORKING_MODE_NORMAL;
- RK_BOOL fec_enable = RK_TRUE;
- int fps = 30;
- SAMPLE_COMM_ISP_Init(0,hdr_mode, fec_enable, iq_file_dir);
- SAMPLE_COMM_ISP_Run(0);
- SAMPLE_COMM_ISP_SetFrameRate(fps);
- printf("[BLG] Create vi[1] failed! ret=%d\n", ret);
- #else
- (void)argc;
- (void)argv;
- #endif
-
- /* Create VI */
- VI_CHN_ATTR_S vi_chn_attr;
- vi_chn_attr.pcVideoNode = "rkispp_scale0";
- vi_chn_attr.u32BufCnt = 4;
- vi_chn_attr.u32Width = 1920;
- vi_chn_attr.u32Height = 1080;
- vi_chn_attr.enPixFmt = IMAGE_TYPE_NV12;
- vi_chn_attr.enWorkMode = VI_WORK_MODE_NORMAL;
- ret = RK_MPI_VI_SetChnAttr(0, 1, &vi_chn_attr);
- ret |= RK_MPI_VI_EnableChn(0, 1);
- if (ret) {
- printf("Create vi[1] failed! ret=%d\n", ret);
- return -1;
- }
- /* Create RGA */
复制代码 |
|