First, since this is a TI codec, you should ask for it already XDC packaged.  
Given an XDC packaged codec, you should be able to just untar it into a 
directory, add that directory to your XDCPATH and begin using it from your 
app/config script.

----------------------------

The rest of this is background for the curious.

There's some glossary here to help (interesting glossary words are highlighted 
in black):
http://rtsc.eclipse.org/docs-tip/Glossary

Every package has a name (defined in it's 'package.xdc' file), and the 
directory structure it's in must reflect that name.  It can't arbitrarily be 
copied under the ce examples.

The codec package is search for along the XDCPATH.  Your statement below 
(highlighted in red) is not correct.  The XDC tools don't recursively search 
deep into all directories on the XDCPATH, rather they just look for packages 
sitting in the directories named on the XDCPATH.

So, if your codec is in a package named "ti.sdo.codecs.h264enc", it should be 
located in a directory ti/sdo/codecs/h264enc (e.g. you would find a file named 
'ti/sdo/codecs/h264enc/package.xdc').  The directory which holds the 'ti' 
directory in this case, would be a repository, and would need to be located on 
the XDCPATH.

While not necessarily recommended, if the Codec Engine examples are already on 
your XDCPATH (e.g., if your XDCPATH already includes 
dvsdk_1_40_00_28/codec_engine_2_10_01/examples), you could drop the codec 
package - with its fully qualified "ti/sdo/codecs/h264enc/..." name - into this 
examples/ repository.

----------------------------

And finally, if you're a codec vendor, or need to XDC package a codec library 
yourself, I'd recommend using the Codec Packaging Wizard:
http://wiki.davincidsp.com/index.php?title=RTSC_Codec_And_Server_Package_Wizards

It handles a lot of these naming details, as well as more complex issues like 
indicating stack usage and exported symbol name management for you.

Chris

________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Albert Burbea
Sent: Monday, October 06, 2008 1:34 PM
To: davinci-linux-open-source@linux.davincidsp.com
Subject: error finding codec

Hi everybody
Some introduction: I work using the standard dvsdk directory tree structure, 
and I work with dvsdk 1.40.00.28<http://1.40.00.28>
I added the h264 encoder from TI under tto the 
dvsdk_1_40_00_28/codec_engine_2_10_01/examples/ti/sdo/ce/examples/codecs 
directory, compiled it and everything seems OK.
Now, I go and build the 
dvsdk_1_40_00_28/codec_engine_2_10_01/examples/ti/sdo/ce/examples/server 
directory, and I get this message

js: 
"/home/albertb/erezk_tests/dvsdk_1_40_00_28/xdc_3_00_06/packages/xdc/xdc.tci", 
line 275: exception from uncaught JavaScript throw: Error: xdc.loadPackage: 
can't find package 'ti.sdo.ce.examples.codecs.h264enc' along the path 
'/home/albertb/erezk_tests/dvsdk_1_40_00_28/codec_engine_2_10_01/examples/ti/sdo/ce/examples/servers/all_codecs/../../../../../..;/home/albertb/erezk_tests/dvsdk_1_40_00_28/codec_engine_2_10_01/packages;/home/albertb/erezk_tests/dvsdk_1_40_00_28/xdais_6_10_01/packages;/home/albertb/erezk_tests/dvsdk_1_40_00_28/dsplink-davinci-v1.50-prebuilt/packages;/home/albertb/erezk_tests/dvsdk_1_40_00_28/cmem_2_10/packages;/home/albertb/erezk_tests/dvsdk_1_40_00_28/framework_components_2_10_01/packages;/home/albertb/erezk_tests/dvsdk_1_40_00_28/biosutils_1_01_00/packages;/home/albertb/erezk_tests/dvsdk_1_40_00_28/bios_5_32_01/packages;/home/albertb/erezk_tests/dvsdk_1_40_00_28/xdc_3_00_06/packages;/home/albertb/erezk_tests/dvsdk_1_40_00_28/codec_engine_2_10_01/examples/ti/sdo/ce/examples/servers/all_codecs/./../../../../../..;';
 try redefining the package path (XDCPATH).
I understand that XDC can not find the codec, but why? As far as I understand, 
it should scan all the subdirectories of all the directory list in XDCPATH 
until it finds the required codec. If this is correct, the h264enc is (deep) 
under the dvsdk_1_40_00_28/codec_engine_2_10_01/examples directory, that is 
pointed by the  
"'/home/albertb/erezk_tests/dvsdk_1_40_00_28/codec_engine_2_10_01/examples/ti/sdo/ce/examples/servers/all_codecs/../../../../../.."
 directoy in the XDC path
What am I doing wrong?

--
Albert Burbea
Harishonim 8
Ramat Gan 52502, Israel
Tel/Fax + 972-3-7526016
Mobile: +972-52-3541842
_______________________________________________
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