This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

codec

Other Parts Discussed in Thread: OMAP3530

HI ,all

  NOW  I  encapsulates a decoder on OMAP3530  platform. AND I receive the data stream from local area network. BUT i find some problem.

After decoded 10 frames ,the decoded data will have a problem.and can not be displayed properly.. I save these data into YUV file,and check it.I find there are some 0 in the file . I determine the decoder input data is correct。。I use the same decoder in the CCS and the decoder worked properly..

CAN some body give me some suggestion??? TELL me  the possibility reason!!!

thak you all very much!!

  • Can you provide more details about you application?  Are you using DSP/BIOS or SYS/BIOS?  Codec engine?  Which codec, is it yours, or from someone else?  What other components are used in your application?  What network interface?  What have you done to try to debug it?  Have you checked for stack overflows, etc.?  

    With more information we can try to help, or maybe move it to a more appropriate forum.

    Thanks,
    Scott

  • Hi Scott,

    Thank you very much for your reply!!!

     My application  refers to  the decode  model in the package of demo to modify..AND I use the DSP/BIOS.I assigned 110 M space for dsp server and the DDR2 is 36M ;the DDRALGHEAP is 74 M ..According to the videc2_copy ,I modified  my codec. I used the sip/ortp to receive the datas.

    Now the monitor can display 11 frame images. i save the datas and i find that  the decoder input data is correct, but the output data is in error.There are many 0 in the output data after 11 frames. so i very confused ,Here is some message when i used CE_DEBUG=3, but i can't find the errors 。

    Received packet,size:19121

    @35,762,359us: [+0 T:0x41cb1490 S:0x41cb035c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Enter (handle=0x62378, inBufs=0x41cb04ac, outBufs=0x41cb04a0, inArgs=0x41cb0d10, outArgs=0x41cb0570)

    @35,762,481us: [+5 T:0x41cb1490 S:0x41cb02e4] CV - VISA_allocMsg> Allocating message for messageId=0x0002de0d

    @35,762,634us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> Enter(virtAddr=0x469ec000, size=19121)

    @35,762,695us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> Enter(virtAddr=0x469ec000, size=19121)

    @35,762,725us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> found in cb(Sc=0x469ec000, Ec=0x46ab6800, Ss=0x469ec000, Es=0x469f0ab1, PSc=0x879a1000)

    @35,762,786us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> returning physAddr=0x879a1000

    @35,762,817us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> return (0x879a1000)

    @35,762,878us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> Enter(virtAddr=0x4321f000, size=608256)

    @35,762,908us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> Enter(virtAddr=0x4321f000, size=608256)

    @35,762,969us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> found in cb(Sc=0x4321f000, Ec=0x432b3800, Ss=0x4321f000, Es=0x432b3800, PSc=0x87436000)

    @35,763,031us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> returning physAddr=0x87436000

    @35,763,092us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> return (0x87436000)

    @35,763,122us: [+0 T:0x41cb1490 S:0x41cb02fc] CV - VISA_call(visa=0x62378, msg=0x42f4e880): messageId=0x0002de0d, command=0x0

    @35,763,183us: [+0 T:0x41cb1490 S:0x41cb02c4] OC - Comm_put> Enter(queue=0x2, msg=0x42f4e880)

    @35,763,275us: [+0 T:0x41cb1490 S:0x41cb02c4] OC - Comm_put> return (0)

    @35,763,336us: [+0 T:0x41cb1490 S:0x41cb02bc] OC - Comm_get> Enter(queue=0x10001, msg=0x41cb0374, timeout=-1)

    n=10

    @35,904,205us: [+0 T:0x41cb1490 S:0x41cb02bc] OC - Comm_get> MSGQ_get() status=0x8000, return (0)

    @35,904,327us: [+0 T:0x41cb1490 S:0x41cb024c] OC - Comm_put> Enter(queue=0x0, msg=0x42f4d880)

    @35,904,418us: [+0 T:0x41cb1490 S:0x41cb024c] OC - Comm_put> return (0)

    @35,904,479us: [+0 T:0x41cb1490 S:0x41cb0244] OC - Comm_get> Enter(queue=0x10000, msg=0x41cb02e4, timeout=-1)

    @35,904,785us: [+0 T:0x41cb1490 S:0x41cb0244] OC - Comm_get> MSGQ_get() status=0x8000, return (0)

    [DSP] @53,521,076tk: [+0 T:0x8ce00394 S:0x8ce04354] CR - processRmsCmd(0x883068a8, 4056): cmd = 4

    [DSP] @53,521,148tk: [+0 T:0x8ce00394 S:0x8ce0432c] OG - Global_getCpuLoad: load = 7

    [DSP] @53,645,608tk: [+5 T:0x8cf07f0c S:0x8cf0ded4] CN - NODE> 0x8ce04e60(avsdec#0) call(algHandle=0x8ce04f20, msg=0x88305880); messageId=0x0002de0d

    [DSP] @53,645,698tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> Enter(addr=0x879a1000, sizeInBytes=19121)

    [DSP] @53,645,780tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> return

    [DSP] @53,645,823tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> Enter(addr=0x87436000, sizeInBytes=608256)

    [DSP] @53,646,542tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> return

    [DSP] @53,646,588tk: [+0 T:0x8cf07f0c S:0x8cf0dd6c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Enter (handle=0x8ce04f20, inBufs=0x8cf0de14, outBufs=0x8cf0ded8, inArgs=0x883059f8, outArgs=0x88305a04)

    [DSP] @53,646,699tk: [+5 T:0x8cf07f0c S:0x8cf0dd4c] CV - VISA_enter(visa=0x8ce04f20): algHandle = 0x8ce04f50

    [DSP] @53,646,764tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x8ce04f50)

    [DSP] @53,646,829tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit

    [DSP] @53,646,883tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - AVSDEC_TI_process(0x88400718, 0x8cf0ded8, 0x88305a04, 0x883059f8, 0x8cf0de14)

    [DSP] @53,646,973tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - pGAVS_t(0x9)

    [DSP] @53,647,025tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - AVSDEC_numInBytes(19121)

    [DSP] @53,879,731tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - t->height*t->width is (576*704)

    [DSP] @53,879,833tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - inArgs->inputID(4)

    [DSP] @53,879,896tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - AVSDEC_numInBytes(19121)

    [DSP] @53,879,964tk: [+5 T:0x8cf07f0c S:0x8cf0dd4c] CV - VISA_exit(visa=0x8ce04f20): algHandle = 0x8ce04f50

    [DSP] @53,880,036tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x8ce04f50)

    [DSP] @53,880,107tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit

    [DSP] @53,880,164tk: [+0 T:0x8cf07f0c S:0x8cf0dd6c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Exit (handle=0x8ce04f20, retVal=0x0)

    [DSP] @53,880,238tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> Enter(addr=0x87436000, sizeInBytes=608256)

    [DSP] @53,880,978tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> return

    [DSP] @53,881,024tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> Enter(addr=0x87436000, sizeInBytes=608256)

    [DSP] @53,881,741tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> return

    [DSP] @53,881,789tk: [+5 T:0x8cf07f0c S:0x8cf0ded4] CN - NODE> returned from call(algHandle=0x8ce04f20, msg=0x88305880); messageId=0x0002de0d

    [DSP] @53,882,724tk: [+0 T:0x8ce00394 S:0x8ce04354] CR - processRmsCmd(0x883048a8, 4056): cmd = 5

    [DSP] @53,882,787tk: [+0 T:0x8ce00394 S:0x8ce04354] CR - remote time = 0x0, trace buffer size = 4032

    @35,909,118us: [+0 T:0x41cb1490 S:0x41cb027c] CE - Engine_fwriteTrace> returning count [3174]

    @35,909,179us: [+0 T:0x41cb1490 S:0x41cb02fc] CV - VISA_call Completed: messageId=0x0002de0d, command=0x0, return(status=0)

    @36,249,969us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> Enter(physAddr=0x87436000, size=608256)

    @36,250,061us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> Enter(physAddr=0x87436000, size=608256)

    @36,250,122us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> found in cb(Sc=0x87436000, Ec=0x874ca800, Ss=0x87436000, Es=0x874ca800)

    @36,250,152us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> returning virtAddr=0x4321f000

    @36,250,213us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> return (0x4321f000)

    @36,250,244us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> Enter(physAddr=0x87436000, size=608256)

    @36,250,305us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> Enter(physAddr=0x87436000, size=608256)

    @36,250,335us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> found in cb(Sc=0x87436000, Ec=0x874ca800, Ss=0x87436000, Es=0x874ca800)

    @36,250,396us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> returning virtAddr=0x4321f000

    @36,250,427us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> return (0x4321f000)

    @36,250,488us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> Enter(physAddr=0x87436000, size=608256)

    @36,250,518us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> Enter(physAddr=0x87436000, size=608256)

    @36,250,579us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> found in cb(Sc=0x87436000, Ec=0x874ca800, Ss=0x87436000, Es=0x874ca800)

    @36,250,610us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> returning virtAddr=0x4321f000

    @36,250,671us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> return (0x4321f000)

    @36,250,701us: [+5 T:0x41cb1490 S:0x41cb02d4] CV - VISA_freeMsg(0x62378, 0x42f4e880): Freeing message with messageId=0x0002de0d

    @36,250,762us: [+0 T:0x41cb1490 S:0x41cb035c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Exit (handle=0x62378, retVal=0x0)

    @36,250,823us: [+2 T:0x41cb1490 S:0x41cb03ac] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret 0 inId 3 inUse 0 consumed 608256

    @36,695,526us: [+0 T:0x404b1210 S:0xbedd0a1c] CE - Engine_getCpuLoad(0x62b78)

    @36,695,678us: [+0 T:0x404b1210 S:0xbedd09ec] OC - Comm_put> Enter(queue=0x0, msg=0x42f4f880)

    @36,695,800us: [+0 T:0x404b1210 S:0xbedd09ec] OC - Comm_put> return (0)

    @36,695,831us: [+0 T:0x404b1210 S:0xbedd09e4] OC - Comm_get> Enter(queue=0x10002, msg=0xbedd0a5c, timeout=-1)

    @36,696,014us: [+0 T:0x404b1210 S:0xbedd09e4] OC - Comm_get> MSGQ_get() status=0x8000, return (0)

    SIP decode ARM Load: 9% DSP Load: 6% Display Type: VGA Video Codec: AVS Video fps: 1 fps Video bit rate: 4827 kbps Video resolution: 704x576 Sound codec: N/A Sound bit rate: 0 kbps Sampling freq: N/A Time: 00:00:29

     

    Received packet,size:19295

    @36,767,395us: [+0 T:0x41cb1490 S:0x41cb035c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Enter (handle=0x62378, inBufs=0x41cb04ac, outBufs=0x41cb04a0, inArgs=0x41cb0d10, outArgs=0x41cb0570)

    @36,767,486us: [+5 T:0x41cb1490 S:0x41cb02e4] CV - VISA_allocMsg> Allocating message for messageId=0x0002de0e

    @36,767,974us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> Enter(virtAddr=0x469ec000, size=19295)

    @36,768,035us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> Enter(virtAddr=0x469ec000, size=19295)

    @36,768,157us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> found in cb(Sc=0x469ec000, Ec=0x46ab6800, Ss=0x469ec000, Es=0x469f0b5f, PSc=0x879a1000)

    @36,768,219us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> returning physAddr=0x879a1000

    @36,768,341us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> return (0x879a1000)

    @36,768,371us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> Enter(virtAddr=0x432ea000, size=608256)

    @36,768,463us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> Enter(virtAddr=0x432ea000, size=608256)

    @36,768,524us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> found in cb(Sc=0x432ea000, Ec=0x4337e800, Ss=0x432ea000, Es=0x4337e800, PSc=0x87ba1000)

    @36,768,554us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> returning physAddr=0x87ba1000

    @36,768,615us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> return (0x87ba1000)

    @36,768,646us: [+0 T:0x41cb1490 S:0x41cb02fc] CV - VISA_call(visa=0x62378, msg=0x42f4e880): messageId=0x0002de0e, command=0x0

    @36,768,707us: [+0 T:0x41cb1490 S:0x41cb02c4] OC - Comm_put> Enter(queue=0x2, msg=0x42f4e880)

    @36,768,798us: [+0 T:0x41cb1490 S:0x41cb02c4] OC - Comm_put> return (0)

    @36,768,859us: [+0 T:0x41cb1490 S:0x41cb02bc] OC - Comm_get> Enter(queue=0x10001, msg=0x41cb0374, timeout=-1)

    n=11

    @36,909,851us: [+0 T:0x41cb1490 S:0x41cb02bc] OC - Comm_get> MSGQ_get() status=0x8000, return (0)

    @36,909,973us: [+0 T:0x41cb1490 S:0x41cb024c] OC - Comm_put> Enter(queue=0x0, msg=0x42f4d880)

    @36,910,064us: [+0 T:0x41cb1490 S:0x41cb024c] OC - Comm_put> return (0)

    @36,910,125us: [+0 T:0x41cb1490 S:0x41cb0244] OC - Comm_get> Enter(queue=0x10000, msg=0x41cb02e4, timeout=-1)

    @36,910,430us: [+0 T:0x41cb1490 S:0x41cb0244] OC - Comm_get> MSGQ_get() status=0x8000, return (0)

    [DSP] @55,211,980tk: [+0 T:0x8ce00394 S:0x8ce04354] CR - processRmsCmd(0x883068a8, 4056): cmd = 4

    [DSP] @55,212,054tk: [+0 T:0x8ce00394 S:0x8ce0432c] OG - Global_getCpuLoad: load = 6

    [DSP] @55,334,639tk: [+5 T:0x8cf07f0c S:0x8cf0ded4] CN - NODE> 0x8ce04e60(avsdec#0) call(algHandle=0x8ce04f20, msg=0x88305880); messageId=0x0002de0e

    [DSP] @55,334,730tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> Enter(addr=0x879a1000, sizeInBytes=19295)

    [DSP] @55,334,811tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> return

    [DSP] @55,334,855tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> Enter(addr=0x87ba1000, sizeInBytes=608256)

    [DSP] @55,335,573tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> return

    [DSP] @55,335,618tk: [+0 T:0x8cf07f0c S:0x8cf0dd6c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Enter (handle=0x8ce04f20, inBufs=0x8cf0de14, outBufs=0x8cf0ded8, inArgs=0x883059f8, outArgs=0x88305a04)

    [DSP] @55,335,728tk: [+5 T:0x8cf07f0c S:0x8cf0dd4c] CV - VISA_enter(visa=0x8ce04f20): algHandle = 0x8ce04f50

    [DSP] @55,335,793tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x8ce04f50)

    [DSP] @55,335,858tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit

    [DSP] @55,335,913tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - AVSDEC_TI_process(0x88400718, 0x8cf0ded8, 0x88305a04, 0x883059f8, 0x8cf0de14)

    [DSP] @55,336,003tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - pGAVS_t(0xa)

    [DSP] @55,336,054tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - AVSDEC_numInBytes(19295)

    [DSP] @55,568,886tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - t->height*t->width is (576*704)

    [DSP] @55,568,987tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - inArgs->inputID(5)

    [DSP] @55,569,049tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - AVSDEC_numInBytes(19295)

    [DSP] @55,569,117tk: [+5 T:0x8cf07f0c S:0x8cf0dd4c] CV - VISA_exit(visa=0x8ce04f20): algHandle = 0x8ce04f50

    [DSP] @55,569,190tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x8ce04f50)

    [DSP] @55,569,261tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit

    [DSP] @55,569,317tk: [+0 T:0x8cf07f0c S:0x8cf0dd6c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Exit (handle=0x8ce04f20, retVal=0x0)

    [DSP] @55,569,391tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> Enter(addr=0x87ba1000, sizeInBytes=608256)

    [DSP] @55,570,115tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> return

    [DSP] @55,570,159tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> Enter(addr=0x87ba1000, sizeInBytes=608256)

    [DSP] @55,570,888tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> return

    [DSP] @55,570,936tk: [+5 T:0x8cf07f0c S:0x8cf0ded4] CN - NODE> returned from call(algHandle=0x8ce04f20, msg=0x88305880); messageId=0x0002de0e

    [DSP] @55,571,937tk: [+0 T:0x8ce00394 S:0x8ce04354] CR - processRmsCmd(0x883048a8, 4056): cmd = 5

    [DSP] @55,571,999tk: [+0 T:0x8ce00394 S:0x8ce04354] CR - remote time = 0x0, trace buffer size = 4032

    @36,914,825us: [+0 T:0x41cb1490 S:0x41cb027c] CE - Engine_fwriteTrace> returning count [3174]

    @36,914,886us: [+0 T:0x41cb1490 S:0x41cb02fc] CV - VISA_call Completed: messageId=0x0002de0e, command=0x0, return(status=0)

    @37,254,821us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> Enter(physAddr=0x87ba1000, size=608256)

    @37,254,943us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> Enter(physAddr=0x87ba1000, size=608256)

    @37,254,974us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> found in cb(Sc=0x87ba1000, Ec=0x87c35800, Ss=0x87ba1000, Es=0x87c35800)

    @37,255,035us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> returning virtAddr=0x432ea000

    @37,255,096us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> return (0x432ea000)

    @37,255,126us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> Enter(physAddr=0x87ba1000, size=608256)

    @37,255,187us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> Enter(physAddr=0x87ba1000, size=608256)

    @37,255,218us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> found in cb(Sc=0x87ba1000, Ec=0x87c35800, Ss=0x87ba1000, Es=0x87c35800)

    @37,255,279us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> returning virtAddr=0x432ea000

    @37,255,310us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> return (0x432ea000)

    @37,255,340us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> Enter(physAddr=0x87ba1000, size=608256)

    @37,255,401us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> Enter(physAddr=0x87ba1000, size=608256)

    @37,255,432us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> found in cb(Sc=0x87ba1000, Ec=0x87c35800, Ss=0x87ba1000, Es=0x87c35800)

    @37,255,493us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> returning virtAddr=0x432ea000

    @37,255,523us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> return (0x432ea000)

    @37,255,584us: [+5 T:0x41cb1490 S:0x41cb02d4] CV - VISA_freeMsg(0x62378, 0x42f4e880): Freeing message with messageId=0x0002de0e

    @37,255,645us: [+0 T:0x41cb1490 S:0x41cb035c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Exit (handle=0x62378, retVal=0x0)

    @37,255,676us: [+2 T:0x41cb1490 S:0x41cb03ac] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret 0 inId 4 inUse 0 consumed 608256

    @37,698,486us: [+0 T:0x404b1210 S:0xbedd0a1c] CE - Engine_getCpuLoad(0x62b78)

    @37,698,669us: [+0 T:0x404b1210 S:0xbedd09ec] OC - Comm_put> Enter(queue=0x0, msg=0x42f4f880)

    @37,698,760us: [+0 T:0x404b1210 S:0xbedd09ec] OC - Comm_put> return (0)

    @37,698,822us: [+0 T:0x404b1210 S:0xbedd09e4] OC - Comm_get> Enter(queue=0x10002, msg=0xbedd0a5c, timeout=-1)

    @37,698,974us: [+0 T:0x404b1210 S:0xbedd09e4] OC - Comm_get> MSGQ_get() status=0x8000, return (0)

    SIP decode ARM Load: 6% DSP Load: 5% Display Type: VGA Video Codec: AVS Video fps: 1 fps Video bit rate: 4851 kbps Video resolution: 704x576 Sound codec: N/A Sound bit rate: 0 kbps Sampling freq: N/A Time: 00:00:30

     

    Received packet,size:19346

    @37,773,284us: [+0 T:0x41cb1490 S:0x41cb035c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Enter (handle=0x62378, inBufs=0x41cb04ac, outBufs=0x41cb04a0, inArgs=0x41cb0d10, outArgs=0x41cb0570)

    @37,773,376us: [+5 T:0x41cb1490 S:0x41cb02e4] CV - VISA_allocMsg> Allocating message for messageId=0x0002de0f

    @37,773,529us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> Enter(virtAddr=0x469ec000, size=19346)

    @37,773,590us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> Enter(virtAddr=0x469ec000, size=19346)

    @37,773,712us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> found in cb(Sc=0x469ec000, Ec=0x46ab6800, Ss=0x469ec000, Es=0x469f0b92, PSc=0x879a1000)

    @37,773,773us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> returning physAddr=0x879a1000

    @37,773,895us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> return (0x879a1000)

    @37,773,925us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> Enter(virtAddr=0x433ea000, size=608256)

    @37,773,986us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> Enter(virtAddr=0x433ea000, size=608256)

    @37,774,017us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> found in cb(Sc=0x433ea000, Ec=0x4347e800, Ss=0x433ea000, Es=0x4347e800, PSc=0x87aa1000)

    @37,774,078us: [+1 T:0x41cb1490 S:0x41cb02b4] OM - Memory__getPhysicalAddress> returning physAddr=0x87aa1000

    @37,774,139us: [+0 T:0x41cb1490 S:0x41cb02b4] OM - Memory_getBufferPhysicalAddress> return (0x87aa1000)

    @37,774,200us: [+0 T:0x41cb1490 S:0x41cb02fc] CV - VISA_call(visa=0x62378, msg=0x42f4e880): messageId=0x0002de0f, command=0x0

    @37,774,261us: [+0 T:0x41cb1490 S:0x41cb02c4] OC - Comm_put> Enter(queue=0x2, msg=0x42f4e880)

    @37,774,353us: [+0 T:0x41cb1490 S:0x41cb02c4] OC - Comm_put> return (0)

    @37,774,383us: [+0 T:0x41cb1490 S:0x41cb02bc] OC - Comm_get> Enter(queue=0x10001, msg=0x41cb0374, timeout=-1)

    n=12

    @37,916,168us: [+0 T:0x41cb1490 S:0x41cb02bc] OC - Comm_get> MSGQ_get() status=0x8000, return (0)

    @37,916,320us: [+0 T:0x41cb1490 S:0x41cb024c] OC - Comm_put> Enter(queue=0x0, msg=0x42f4d880)

    @37,916,412us: [+0 T:0x41cb1490 S:0x41cb024c] OC - Comm_put> return (0)

    @37,916,473us: [+0 T:0x41cb1490 S:0x41cb0244] OC - Comm_get> Enter(queue=0x10000, msg=0x41cb02e4, timeout=-1)

    @37,916,778us: [+0 T:0x41cb1490 S:0x41cb0244] OC - Comm_get> MSGQ_get() status=0x8000, return (0)

    [DSP] @56,896,734tk: [+0 T:0x8ce00394 S:0x8ce04354] CR - processRmsCmd(0x883068a8, 4056): cmd = 4

    [DSP] @56,896,807tk: [+0 T:0x8ce00394 S:0x8ce0432c] OG - Global_getCpuLoad: load = 5

    [DSP] @57,023,697tk: [+5 T:0x8cf07f0c S:0x8cf0ded4] CN - NODE> 0x8ce04e60(avsdec#0) call(algHandle=0x8ce04f20, msg=0x88305880); messageId=0x0002de0f

    [DSP] @57,023,786tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> Enter(addr=0x879a1000, sizeInBytes=19346)

    [DSP] @57,023,867tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> return

    [DSP] @57,023,910tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> Enter(addr=0x87aa1000, sizeInBytes=608256)

    [DSP] @57,024,625tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheInv> return

    [DSP] @57,024,671tk: [+0 T:0x8cf07f0c S:0x8cf0dd6c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Enter (handle=0x8ce04f20, inBufs=0x8cf0de14, outBufs=0x8cf0ded8, inArgs=0x883059f8, outArgs=0x88305a04)

    [DSP] @57,024,782tk: [+5 T:0x8cf07f0c S:0x8cf0dd4c] CV - VISA_enter(visa=0x8ce04f20): algHandle = 0x8ce04f50

    [DSP] @57,024,846tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x8ce04f50)

    [DSP] @57,024,911tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit

    [DSP] @57,024,965tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - AVSDEC_TI_process(0x88400718, 0x8cf0ded8, 0x88305a04, 0x883059f8, 0x8cf0de14)

    [DSP] @57,025,055tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - pGAVS_t(0xb)

    [DSP] @57,025,106tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - AVSDEC_numInBytes(19346)

    [DSP] @57,259,357tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - t->height*t->width is (576*704)

    [DSP] @57,259,464tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - inArgs->inputID(6)

    [DSP] @57,259,527tk: [+0 T:0x8cf07f0c S:0x8cf0dd24] ti.sdo.ce.examples.codecs.avsdec - AVSDEC_numInBytes(19346)

    [DSP] @57,259,595tk: [+5 T:0x8cf07f0c S:0x8cf0dd4c] CV - VISA_exit(visa=0x8ce04f20): algHandle = 0x8ce04f50

    [DSP] @57,259,667tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x8ce04f50)

    [DSP] @57,259,737tk: [+0 T:0x8cf07f0c S:0x8cf0dd2c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit

    [DSP] @57,259,831tk: [+0 T:0x8cf07f0c S:0x8cf0dd6c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Exit (handle=0x8ce04f20, retVal=0x0)

    [DSP] @57,259,905tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> Enter(addr=0x87aa1000, sizeInBytes=608256)

    [DSP] @57,260,628tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> return

    [DSP] @57,260,672tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> Enter(addr=0x87aa1000, sizeInBytes=608256)

    [DSP] @57,261,390tk: [+0 T:0x8cf07f0c S:0x8cf0ddac] OM - Memory_cacheWb> return

    [DSP] @57,261,438tk: [+5 T:0x8cf07f0c S:0x8cf0ded4] CN - NODE> returned from call(algHandle=0x8ce04f20, msg=0x88305880); messageId=0x0002de0f

    [DSP] @57,262,386tk: [+0 T:0x8ce00394 S:0x8ce04354] CR - processRmsCmd(0x883048a8, 4056): cmd = 5

    [DSP] @57,262,447tk: [+0 T:0x8ce00394 S:0x8ce04354] CR - remote time = 0x0, trace buffer size = 4032

    @37,921,325us: [+0 T:0x41cb1490 S:0x41cb027c] CE - Engine_fwriteTrace> returning count [3174]

    @37,921,386us: [+0 T:0x41cb1490 S:0x41cb02fc] CV - VISA_call Completed: messageId=0x0002de0f, command=0x0, return(status=0)

    @38,261,016us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> Enter(physAddr=0x87aa1000, size=608256)

    @38,261,138us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> Enter(physAddr=0x87aa1000, size=608256)

    @38,261,169us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> found in cb(Sc=0x87aa1000, Ec=0x87b35800, Ss=0x87aa1000, Es=0x87b35800)

    @38,261,230us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> returning virtAddr=0x433ea000

    @38,261,291us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> return (0x433ea000)

    @38,261,322us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> Enter(physAddr=0x87aa1000, size=608256)

    @38,261,383us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> Enter(physAddr=0x87aa1000, size=608256)

    @38,261,413us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> found in cb(Sc=0x87aa1000, Ec=0x87b35800, Ss=0x87aa1000, Es=0x87b35800)

    @38,261,474us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> returning virtAddr=0x433ea000

    @38,261,505us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> return (0x433ea000)

    @38,261,566us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> Enter(physAddr=0x87aa1000, size=608256)

    @38,261,596us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> Enter(physAddr=0x87aa1000, size=608256)

    @38,261,627us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> found in cb(Sc=0x87aa1000, Ec=0x87b35800, Ss=0x87aa1000, Es=0x87b35800)

    @38,261,688us: [+1 T:0x41cb1490 S:0x41cb02c4] OM - Memory__getVirtualAddress> returning virtAddr=0x433ea000

    @38,261,718us: [+0 T:0x41cb1490 S:0x41cb02c4] OM - Memory_getBufferVirtualAddress> return (0x433ea000)

    @38,261,779us: [+5 T:0x41cb1490 S:0x41cb02d4] CV - VISA_freeMsg(0x62378, 0x42f4e880): Freeing message with messageId=0x0002de0f

    @38,261,840us: [+0 T:0x41cb1490 S:0x41cb035c] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Exit (handle=0x62378, retVal=0x0)

    @38,261,871us: [+2 T:0x41cb1490 S:0x41cb03ac] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret 0 inId 5 inUse 0 consumed 608256

    @38,701,904us: [+0 T:0x404b1210 S:0xbedd0a1c] CE - Engine_getCpuLoad(0x62b78)

    @38,702,056us: [+0 T:0x404b1210 S:0xbedd09ec] OC - Comm_put> Enter(queue=0x0, msg=0x42f4f880)

    @38,702,148us: [+0 T:0x404b1210 S:0xbedd09ec] OC - Comm_put> return (0)

    @38,702,209us: [+0 T:0x404b1210 S:0xbedd09e4] OC - Comm_get> Enter(queue=0x10002, msg=0xbedd0a5c, timeout=-1)

    @38,702,362us: [+0 T:0x404b1210 S:0xbedd09e4] OC - Comm_get> MSGQ_get() status=0x8000, return (0)

     CAN you tell me the reason ?? I've confused  for a long time!!!! Thank you very much!!

  • It seems that modification to your codec are the source of the issue here.  This will require debugging your algorithm (DSP) code with an emulator using Code Composer Studio (CCS).  From you previous posts I believe you are using an OMAP3530 device.  Here are some link that may be of some use to get you started:

    If you don't have CCS, you might want to stat here:

    http://processors.wiki.ti.com/index.php/CCSv5

    All you need CCS for is to be to able to connect to the DSP core. Then take a look at:

    http://processors.wiki.ti.com/index.php/Debugging_the_DSP_side_of_a_CE_application_using_CCS

    You could then use CCS to step through and debug your algorithm.

  • Arnie ,

    Thank you for your reply..AND i have run the dsp  code in the CCS environmention . I opened a .avs file and saved the output data to a .yuv file . I don't use the platform and use the software simulation in my pc..I used a yuv player to play the .yuv file and fond no error..That means that the code is correct ..

    I am very confused !!! I hope that you can give me some good suggestions!!

  • When you refer to software simulation on your PC, are you compiling the C source code for your PC environment?  What software are you using to simulate on the PC?

    The same code that runs on your host PC may not necessarily run (when compiled) on the DSP.  There may be other factors such as heaps/stack usage, memory placement, system calls (malloc/free, process/task, etc.) that may be different and need to be adjusted for the device and OS (if any) begin used.