Hello,

I have encoded a 4:2:2 yuv file and .264 output which I'm getting is 4:2:0
encoded. Which all formats are supported by DVEVM demo codes??? I've
modified the encode demo code to read from a file.

Thanks,
Varsha

-----Original Message-----
From: Wan, Vincent [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 11:05 PM
To: Varsha Kulkarni
Subject: RE: cache alignment error!!!


In order to get the DSP-side development tool, you need to purchase the
DVSDK. Alternatively, if you have CCS 3.2 or above, you can download
most of the DVSDK components (i.e. BIOS, test bench, DVT) from the DVEVM
update website (you should have this link in your DVEVM material).

Best regards,
Vincent

-----Original Message-----
From: Varsha Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 1:31 AM
To: Wan, Vincent
Subject: RE: cache alignment error!!!

Thanks for the help Vincent. But I dont have any DSPBIOS or CG tools or
C64P
compiler tools installed so that I can rebuild DSPLINK 1.30. Can I get
them
downloaded from TI website???

Thanks,
Varsha

-----Original Message-----
From: Wan, Vincent [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 7:57 AM
To: Varsha Kulkarni
Subject: RE: cache alignment error!!!


Hi Varsha,

You will need to configure cmem so that you have large enough buffers.
To do this you will likely need to modify your memory map so that more
space could be made available to cmem. This old thread might be able to
guide you through this process:

http://www.mail-archive.com/[EMAIL PROTECTED]
om/msg00876.html

Best regards,
Vincent

-----Original Message-----
From: Varsha Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 28, 2007 9:51 PM
To: Wan, Vincent
Subject: RE: cache alignment error!!!

Hello again,
cmem initializes 3 pools between 0x87800000 and 0x88000000. Even if I
read
only 3 frames at a time, memory of 8 MB will not be enough since I'm
allocating memory for encoded buffer at 0x87cce000 and reading raw video
frames at 0x87d00000. So memory mapping has to be changed???

-----Original Message-----
From: Varsha Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Monday, January 29, 2007 10:24 AM
To: Wan, Vincent
Subject: RE: cache alignment error!!!


Thanks Vincent. After I used Memory_contigAlloc(), I'm not getting the
cache
alignment error. But I guess since I'm reading a file of size 11MB into
the
buffer, the shared buffer size is only 8MB, which is insufficient. I
read in
some archive that using cmemk module you could create physical
contiguous
buffers(OS memory 100MB and shared buffer 20MB). I have a doubt there.
Are
the changes to be made in .tcf file and recompile the CE server?
Now I'm 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)
[DSCMEMK Error: Failed to find a pool which fits 11404800
P] OM T:0x0CMEMK Error: GETPHYS: Failed to convert virtual 0x0 to
physical.
: 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)
CMEM Error: getPool: Failed to get a pool fitting a size 11404800
OM T:0x412c9b60: Memory_contigAlloc> ERROR: CMEM alloc failed
CMEM Error: getPhys: Failed to get physical address of 0
encoded: videnc_stubs.c:85: process: Assertion
`msg->cmd.process.inBufs[i]
!= ((void *)0)' failed.
Aborted

-----Original Message-----
From: Wan, Vincent [mailto:[EMAIL PROTECTED]
Sent: Friday, January 26, 2007 12:30 AM
To: Varsha Kulkarni
Cc: davinci-linux-open-source@linux.davincidsp.com
Subject: RE: cache alignment error!!!


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