DM8168 McFW vide format problem?
Hi,
I am using dm8168 to design my app. My board uses the TVP5158.
the software framework is McFW which is in the DVRRDK_01.08.00.15
now i want to design the usecase like below.
Now i have a question.because my algorithm needs RGB888 format frame.
but the input frame is YUV422I,so before we process,we need to transform the format from YUYV422
to RGB888 but it cost to much time.
How can I change the configuration to make the input frame format is RGB ?
I tried to change like this :
-----------------------------------------------------------------------------------------------------------------------------------------------------
pCaptureInstPrm = &capturePrm.vipInst[0];
pCaptureInstPrm->vipInstId = SYSTEM_CAPTURE_INST_VIP1_PORTA;
pCaptureInstPrm->videoDecoderId = SYSTEM_DEVICE_VID_DEC_TVP5158_DRV;
pCaptureInstPrm->inDataFormat = SYSTEM_DF_YUV422P;
pCaptureInstPrm->standard = SYSTEM_STD_D1; //SYSTEM_STD_MUX_4CH_D1;
pCaptureInstPrm->numOutput = 1;
pCaptureOutPrm = &pCaptureInstPrm->outParams[0];
pCaptureOutPrm->dataFormat = SYSTEM_DF_RGB24_888; //-----------here I change format from YUV422I to RGB888
pCaptureOutPrm->scEnable = FALSE;
pCaptureOutPrm->scOutWidth = 0;
pCaptureOutPrm->scOutHeight = 0;
pCaptureOutPrm->outQueId = 0;
-----------------------------------------------------------------------------------------------------------------------------------------------------
but it did not work fine.
the print log shows error when the mcfw created.just like below:
-----------------------------------------------------------------------------------------------------------------------------------------------------
--------------- CHANNEL DETAILS-------------
Capture Channels => 4
Disp Channels => 4
-------------------------------------------
----------VSYS_USECASE_MULTICHN_PROGRESSIVE_VCAP_VDIS_VENC_VDEC used-----------
0: SYSTEM: System Common Init in progress !!!
0: SYSTEM: IPC init in progress !!!
9: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
11: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
13: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
14: SYSTEM: Opening MsgQ [DSP_MSGQ] ...
15: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
15: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
17: SYSTEM: Notify register to [DSP] line 0, event VPSS_DCTRL: enter venc disable
12 ...
17: SYVPSS_FVID2: send control with cmd 0x1004001a
STEM: Notify regVPSS_FVID2: control event 0x1004001a return 0 within 0 ms.
ister to [VIDEO-VPSS_FVID2: send control with cmd 0x1004001b
M3] line 0, evenVPSS_FVID2: control event 0x1004001b return 0 within 0 ms.
t 12 ...
18: VPSS_FVID2: send control with cmd 0x1004001a
SYSTEM: Notify rVPSS_FVID2: control event 0x1004001a return 0 within 0 ms.
egister to [VPSS-M3] line 0, event 12 ...
18: SYSTEM: IPC init DONE !!!
19: SYSTEM: Creating ListMP [HOST_IPC_OUT_28] in region 0 ...
22: SYSTEM: Creating ListMP [HOST_IPC_IN_28] in region 0 ...
24: SYSTEM: ListElem Shared Addr = 0x4074e480
25: SYSTEM: Creating ListMP [HOST_IPC_OUT_29] in region 0 ...
27: SYSTEM: Creating ListMP [HOST_IPC_IN_29] in region 0 ...
29: SYSTEM: ListElem Shared Addr = 0x40765d80
30: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
33: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
34: SYSTEM: ListElem Shared Addr = 0x4077d680
36: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
38: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
40: SYSTEM: ListElem Shared Addr = 0x4079cc80
40: SYSTEM: System Common Init Done !!!
41: MCFW : CPU Revision [ES1.1] !!!
41: MCFW : Detected [(null)] Board !!!
41: MCFW : Base Board Revision [DVR] !!!
41: MCFW : Daughter Card Revision [DVR] !!!
VPSS_FVID2: send control with cmd 0x1004001a
VPSS_FVID2: control event 0x1004001a return 0 within 0 ms.
VPSS_SYSTEM: enter set pll 148500KHz for VENC 1
VPSS_FVID2: send control with cmd 0x10080000
VPSS_FVID2: control event 0x10080000 return 0 within 0 ms.
Temp_hsync = 280, temp_vsync = 280, timing_hsync = 280, timing_vsync = 45Hdmi_code = 16 mode = 1
Timing Info:
pixel_clk = 148500
x_res = 1920
y_res = 1080
hfp = 88
hsw = 44
hbp = 148
vfp = 4
vsw = 5
vbp = 36
VPSS_FVID2: send control with cmd 0x1004001a
VPSS_FVID2: control event 0x1004001a return 0 within 0 ms.
VPSS_FVID2: send control with cmd 0x10040019
VPSS_FVID2: control event 0x10040019 return 0 within 0 ms.
[m3vpss ] 4133974: CAPTURE: Create in progress !!!
[m3vpss ] 4133974: CAPTURE: VIP 2: VID DEC 1024 (0x5c): Video Standard Detect in Progress !!!
[m3vpss ] 4134074: CAPTURE: Detected video (720x240@59Hz, 1)!!!
[m3vpss ] 4134105: CAPTURE: VIP1 PortA capture mode is [ 8-bit, Non-mux Embedded Sync] !!!
[m3vpss ] 4134133: CAPTURE: VIP 2: VID DEC 1024 (0x5c): 5158:0002:0302, AUD_STATUS 0
[m3vpss ] 4134133: CAPTURE: Create Done !!!
[m3vpss ] TVP5158: 0x5c: Patch is already running.
[m3vpss ] TVP5158: 0x5c: 5158:0002:0302
[m3vpss ] 4135945: DEI : Create in progress !!!
[m3vpss ] 4135967: Assertion @ Line: 769 in links_m3vpss/dei/deiLink_drv.c: pObj->fvidHandle !=
NULL : failed !!!
-----------------------------------------------------------------------------------------------------------------------------------------------------
How can I solve this problem or is there any other way to transform the frame data format?