Hi Varsha,

How are you allocating the input and output buffers that are passed to
your video encoder's process call? Make sure you are using contiguous
buffers allocated by CMEM by calling Memory_contigAlloc() - suggest you
look at how that's done in the original encode demo. The memory managed
by CMEM should be correctly aligned on 128-byte boundary by default.

Best regards,
Vincent

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Varsha Kulkarni
Sent: Thursday, January 25, 2007 12:04 AM
To: davinci-linux-open-source@linux.davincidsp.com
Subject: cache alignment error!!!

Hello,

While running DVEVM demo encode which is modified to read frames from a
raw
YUV file instead of using a camera, I am getting the following error.

Encode demo started.
Encode Debug: Codec Engine initialized
Encode Debug: Video thread created
Encode Debug: PAL selected
Encode Debug: Video file successfully opened
Encode Debug: Codec Engine opened in video thread
Encode Debug: Video encoder created
Encode Debug: Contiguous buffer allocated at physical address 0x87cce000
Encode Debug: OSD successfully initialized
Encode Debug: OSD transparency initialized
Encode Debug: Codec Engine opened in control thread
Encode Debug: MSP430 library initialized
Encode Debug: User interface created
Encode Debug: User interface drawn
Encode Debug: Entering video main loop.
Encode Debug: Entering control main loop.
[DSP] ZZ T:0x0: main> Welcome to encode server's main().
[DSP] OM T:0x0: Memory_alloc(0x18)
[DSP] OM T:0x0: Memory_segAlloc(0x2, 0x0, 0x18)
[DSP] OM T:0x0: Memory_alloc(0xa)
[DSP] OM T:0x0: Memory_segAlloc(0x2, 0x0, 0xa)
[DSP] OM T:0x0: Memory_alloc(0x20)
[DSP] OM T:0x0: Memory_segAlloc(0x2, 0x0, 0x20)
[DSP] OM T:0x0: Memory_alloc(0x24)
[DSP] OM T:0x0: Memory_segAlloc(0x2, 0x0, 0x24)
[DSP] CV T:0x0: VISA_create(0x0, 'h264enc', 0x8fe01840, 0x472,
'ti.sdo.ce.video.IVIDENC')
[DSP] CE T:0x0: Engine_open('local', 0x8b803ee8, 0x0)
[DSP] OM T:0x0: Memory_alloc(0x2c)
[DSP] OM T:0x0: Memory_segAlloc(0x2, 0x0, 0x2c)
[DSP] OM T:0x0: Memory_alloc(0x14)
[DSP] OM T:0x0: Memory_segAlloc(0x2, 0x0, 0x14)
[DSP] OM T:0x0: Memory_alloc(0xc)
[DSP] OM T:0x0: Memory_segAlloc(0x2, 0x0, 0xc)
OM T:0x412c9b60: Memory_getBufferPhysicalAddress> ERROR: buffer
(0x369c8) is
not cache aligned on 128 byte boundary.
encoded: videnc_stubs.c:85: process: Assertion
`msg->cmd.process.inBufs[i]
!= ((void *)0)' failed.
Aborted.

What could I do to avoid this cache alignment error?

Thanks
Varsha

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to