程序运行显示一帧图像,然后画面就没了,打印信息:
请问是不是MpSclr引起的?
Chris Meng:
Chu Hi,
你是1600×1200到1920×1080,水平方向放大,垂直方向缩小,默认的Mpsclar只做缩小的。
1600×1200是4:3的,1920×1080是16:9的,你确认要这样不等比缩放么?
hl chu:
回复 Chris Meng:
谢谢你的回复,我如果换成2048*2048,还是报错了:
[m3vpss ] 131577:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0] [m3vpss ] 131577:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0]size[4147200] [m3vpss ] UTILS: MEM: Alloc'ing from FRAME BUF. (required size = 4147200 B, free space = 190192512 B) [m3vpss ] UTILS: MEM: FRAME ALLOC, addr = 0xb345e480, size = 4147200 bytes [m3vpss ] 131599:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0] [m3vpss ] 131600:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0]size[4147200] [m3vpss ] UTILS: MEM: Alloc'ing from FRAME BUF. (required size = 4147200 B, free space = 186045312 B) [m3vpss ] UTILS: MEM: FRAME ALLOC, addr = 0xb3852c80, size = 4147200 bytes [m3vpss ] 131621:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0] [m3vpss ] 131621:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0]size[4147200] [m3vpss ] UTILS: MEM: Alloc'ing from FRAME BUF. (required size = 4147200 B, free space = 181898112 B) [m3vpss ] UTILS: MEM: FRAME ALLOC, addr = 0xb3c47480, size = 4147200 bytes [m3vpss ] 131643:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0] [m3vpss ] 131643:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0]size[4147200] [m3vpss ] UTILS: MEM: Alloc'ing from FRAME BUF. (required size = 4147200 B, free space = 177750912 B) [m3vpss ] UTILS: MEM: FRAME ALLOC, addr = 0xb403bc80, size = 4147200 bytes [m3vpss ] 131665:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0] [m3vpss ] 131666:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0]size[4147200] [m3vpss ] UTILS: MEM: Alloc'ing from FRAME BUF. (required size = 4147200 B, free space = 173603712 B) [m3vpss ] UTILS: MEM: FRAME ALLOC, addr = 0xb4430480, size = 4147200 bytes [m3vpss ] 131687:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0] [m3vpss ] 131687:Utils_memFrameGetSize:dataFormat[1]w[1920]h[1080]pitch0[3840]pitch1[0]size[4147200] [m3vpss ] UTILS: MEM: Alloc'ing from FRAME BUF. (required size = 4147200 B, free space = 169456512 B) [m3vpss ] UTILS: MEM: FRAME ALLOC, addr = 0xb4824c80, size = 4147200 bytes [m3vpss ] 131708: MP_SCLR: – Input Resolution Changed, updating… [m3vpss ] 131709: MP_SCLR: – Input Resolution Updated [m3vpss ] 131709: MP_SCLR:w[2048]h[2048]inFmt.width[2048]inFmt.height[2048]outFmt.width[1920]outFmt.height[1080]numPixelsPerLine[1776]w3[1920] [c6xdsp ] DSP BGR_Img=9dc1af4c [m3vpss ] DUP ReRGB_Img=1Receive num=646send over size=645recvfrom…… [c6xdsp ] 114874: SYSTEM: Opening MsgQ [HOST_MSGQ] … [m3vpss ] SWMS: *** UPDATING RT Params *** [m3vpss ] 131753: SWMS : ******* Configuring clock 30 secs… [m3vpss ] 131753: SWMS1 : Loading Vertical Co-effs (UPSCALE)x … [m3vpss ] 131753: SWMS1 : Loading Horizontal Co-effs (UPSCALE)x … [m3vpss ] 131753: SWMS : Co-effs Loading … DONE !!! [m3vpss ] 131753: SWMS1 : Loading Vertical Co-effs (UPSCALE)x … [m3vpss ] 131753: SWMS1 : Loading Horizontal Co-effs (UPSCALE)x … [m3vpss ] 131753: SWMS : Co-effs Loading … DONE !!! [m3vpss ] [m3vpss ] *** [SWMS1] Mosaic Parameters *** [m3vpss ] [m3vpss ] Output FPS: 30 [m3vpss ] [m3vpss ] Win | Ch | Input | Input | Input | Input | Output | Output | Output | Output | Scan | Low Cost | SWMS | Data | Blank | [m3vpss ] Num | Num | Start X, Y | Width x Height | Pitch Y / C | Memory Type | Start X, Y | Width x Height | Pitch Y / C | Memory Type | Fmt | ON / OFF | Inst | Format| Frame | [m3vpss ] ———————————————————————————————————————————————————————————— [m3vpss ] 0 | 0 | 0, 0 | 1920 x 1080 | 3840 / 0 | NON-TILED | 0, 0 | 1920 x 1080 | 3840 / 0 | NON-TILED | PROGRESSIVE | OFF | 0 | 422I | OFF | [m3vpss ] [m3vpss ] SWMS: *** UPDATING RT Params *** [m3vpss ] 131759: SWMS : ******* Configuring clock 30 secs… [m3vpss ] 131759: SWMS0 : Loading Vertical Co-effs (10/16)x … [m3vpss ] 131759: SWMS0 : Loading Horizontal Co-effs (4/16)x … [m3vpss ] 131760: SWMS : Co-effs Loading … DONE !!! [m3vpss ] 131760: SWMS0 : Loading Vertical Co-effs (10/16)x … [m3vpss ] 131760: SWMS0 : Loading Horizontal Co-effs (4/16)x … [m3vpss ] 131760: SWMS : Co-effs Loading … DONE !!! [m3vpss ] [m3vpss ] *** [SWMS0] Mosaic Parameters *** [m3vpss ] [m3vpss ] Output FPS: 30 [m3vpss ] [m3vpss ] Win | Ch | Input | Input | Input | Input | Output | Output | Output | Output | Scan | Low Cost | SWMS | Data | Blank | [m3vpss ] Num | Num | Start X, Y | Width x Height | Pitch Y / C | Memory Type | Start X, Y | Width x Height | Pitch Y / C | Memory Type | Fmt | ON / OFF | Inst | Format| Frame | [m3vpss ] ———————————————————————————————————————————————————————————— [m3vpss ] 0 | 0 | 0, 0 | 1920 x 540 | 7680 / 0 | NON-TILED | 200, 40 | 576 x 346 | 3840 / 0 | NON-TILED | PROGRESSIVE | ON | 0 | 422I | OFF | [m3vpss ] 1 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 776, 40 | 576 x 346 | 3840 / 0 | NON-TILED | INTERLACE | ON | 1 | 422I | ON | [m3vpss ] 2 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 1352, 40 | 576 x 346 | 3840 / 0 | NON-TILED | INTERLACE | ON | 1 | 422I | ON |
decodeSwitchDone == TRUE [m3vpss ] 3 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 200, 386 | 576 x 346 | 3840 / 0 | NON-TILED | INTERLACE | ON | 1 | 422I | ON | [m3vpss ] 4 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 776, 386 | 576 x 346 | 3840 / 0 | NON-TILED | INTERLACE | ON | 1 | 422I | ON | [m3vpss ] 5 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 1352, 386 | 576 x 346 | 3840 / 0 | NON-TILED | INTERLACE | ON | 1 | 422I | ON | [m3vpss ] 6 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 200, 732 | 576 x 346 | 3840 / 0 | NON-TILED | INTERLACE | ON | 1 | 422I | ON | [m3vpss ] 7 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 776, 732 | 576 x 346 | 3840 / 0 | NON-TILED | INTERLACE | ON | 1 | 422I | ON | [m3vpss ] 8 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 1352, 732 | 576 x 346 | 3840 / 0 | NON-TILED | INTERLACE | ON | 1 | 422I | ON | [m3vpss ] [m3vpss ] SWMS:Restoring blank frame params for winId:1 [m3vpss ] SWMS:Restoring blank frame params for winId:2 [m3vpss ] SWMS:Restoring blank frame params for winId:3 [m3vpss ] SWMS:Restoring blank frame params for winId:4 [m3vpss ] SWMS:Restoring blank frame params for winId:5 [m3vpss ] SWMS:Restoring blank frame params for winId:6 [m3vpss ] SWMS:Restoring blank frame params for winId:7 [m3vpss ] SWMS:Restoring blank frame params for winId:8 [m3vpss ] Unhandled Exception: [m3vpss ] Exception occurred in ThreadType_Task [m3vpss ] handle: 0x3fab5870. [m3vpss ] stack base: 0x3f9e4440. [m3vpss ] stack size: 0x8000. [m3vpss ] R0 = 0xb385ac78 R8 = 0x9dc18b3c [m3vpss ] R1 = 0x00004000 R9 = 0x9dc18f3c [m3vpss ] R2 = 0x9dc1873c R10 = 0x00000085 [m3vpss ] R3 = 0x0000008c R11 = 0x00000009 [m3vpss ] R4 = 0x00000009 R12 = 0x00000000 [m3vpss ] R5 = 0x00004001 SP(R13) = 0x3f9ec358 [m3vpss ] R6 = 0x9dc1b4ec LR(R14) = 0x9dc1933c [m3vpss ] R7 = 0x00003ff9 PC(R15) = 0x0043c098 [m3vpss ] PSR = 0xa1000000 [m3vpss ] ICSR = 0x0440f803 [m3vpss ] MMFSR = 0x00 [m3vpss ] BFSR = 0x82 [m3vpss ] UFSR = 0x0000 [m3vpss ] HFSR = 0x40000000 [m3vpss ] DFSR = 0x00000000 [m3vpss ] MMAR = 0x00004001 [m3vpss ] BFAR = 0x00004001 [m3vpss ] AFSR = 0x00000000 [m3vpss ] Terminating Execution…
Chris Meng:
回复 hl chu:
Chu Hi,
你测试的使用mpsclar缩小2048*2048到1920×1080,对么?如果是,你能否调整一下MP_SCLR_LINK_MAX_VERTICAL_SLICE_SIZE的大小,看是否有改善?
最好是在mpsclara驱动里面再打印一下,看看分片,分片的缩放比例设置是否正确。
hl chu:
回复 Chris Meng:
Chris Hi,
谢谢回复,是2048*2048到1920*1080,MP_SCLR_LINK_MAX_VERTICAL_SLICE_SIZE现在是1900,要改成2048?
Chris Meng:
回复 hl chu:
Chu Hi,
SC的限制是输入输出不能大于1920×1080,MP_SCLR_LINK_MAX_VERTICAL_SLICE_SIZE是用来定义从什么地方输入图片分割为两个或者多个,然后分别输入SC处理,这就是MPsclar的原理。
所以MP_SCLR_LINK_MAX_VERTICAL_SLICE_SIZE不能大于1920,先可以尝试一下1824。
hl chu:
回复 Chris Meng:
Chris Hi,
有段错误啊,这个该怎么调试,不知道错误在哪
hl chu:
回复 hl chu:
在8168怎么用gdb调试呢
Chris Meng:
回复 hl chu:
hl chu
Chris Hi,
有段错误啊,这个该怎么调试,不知道错误在哪
如果这个段错误是由于Mpsclar导致的,我建议你先尝试修改一下我提供的这个参数。
如果你的板子上有JTAG口,你也有仿真器,你可以连上vpss M3 (不要加载gel), 然后把出现Exception时候的各个寄存器的值在CCS里面填回去,就可以恢复到出现exception前的那个状态。具体请参考:http://processors.wiki.ti.com/index.php/SYS/BIOS_FAQs#4_Exception_Dump_Decoding_Using_the_CCS_Register_View
hl chu:
回复 Chris Meng:
Chris Hi,
仿真器连接好了,配置了configure file,test connection成功,但是找不到VPSS_M3.
Chris Meng:
回复 hl chu:
Chu Hi,
请在CCS里面选择TI816x。