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.

addition of g726 support to codec server

Other Parts Discussed in Thread: OMAP3530

how to add a g726 codec in wince dvsdk_wince_01_11_00_03_patch_01?
 
i followed the instructions given in the link :  http://processors.wiki.ti.com/index.php/How_do_I_Integrate_new_codecs_into_DVSDK
 
i downloaded the g726 package c64xplus_g726_1_10_003_production.exe and installed it,The installation resulted in 2 tar files c64xplus_g726enc_1_10_003_production.tar & c64xplus_g726dec_1_10_003_production.tar.
 
i untarred it and executed the following two cmd line instructions:
 
xcopy /E /I "C:\Program Files\c64xplus_g726_1_10_003_production\c64xplus_g726enc_1_10_003_production/packages/ti/sdo/codecs/g726enc  "C:\WINCE600\3rdParty\dvsdk_wince_01_11_00_03_patch_01\src\cs1omap3530_1_01_00/packages/ti/sdo/codecs/g726enc"
 
xcopy /E /I "C:\Program Files\c64xplus_g726_1_10_003_production\c64xplus_g726dec_1_10_003_production/packages/ti/sdo/codecs/g726dec "C:\WINCE600\3rdParty\dvsdk_wince_01_11_00_03_patch_01\src\cs1omap3530_1_01_00/packages/ti/sdo/codecs/g726dec"
 
now i edited the file C:\WINCE600\3rdParty\dvsdk_wince_01_11_00_03_patch_01\src\cs1omap3530_1_01_00\packages\ti\sdo\server\cs\codec.cfg as below:
 
added the below block of code:
 
var G726DEC = xdc.useModule('ti.sdo.codecs.g726dec.ce.G726DEC');
 
     // Module Config
                G726DEC.alg.watermark = false;
                G726DEC.alg.codeSection = "DDR2";
                G726DEC.alg.udataSection = "DDR2";
                G726DEC.alg.dataSection = "DDR2";
 
var G726ENC = xdc.useModule('ti.sdo.codecs.g726enc.ce.G726ENC');
 
     // Module Config
                G726ENC.alg.watermark = false;
                G726ENC.alg.codeSection = "DDR2";
                G726ENC.alg.udataSection = "DDR2";
                G726ENC.alg.dataSection = "DDR2";
                
Added the Algorithm to the server by adding a new set to the Server.algs array    in codec.cfg by adding the below block of code:
 
 {name: "g726dec", mod: G726DEC , threadAttrs: {
        stackMemId: 0, priority: Server.MINPRI + 3},
        groupId : 1,
    },
 
 {name: "g726enc", mod: G726ENC , threadAttrs: {
        stackMemId: 0, priority: Server.MINPRI + 3},
        groupId : 1,
    },            
    
    
To minimize any errors during the building of the Server, added the codec to the validation entries in C:\WINCE600\3rdParty\dvsdk_wince_01_11_00_03_patch_01\src\cs1omap3530_1_01_00\packages\ti\sdo\server\cs\package.xs file of the server as below.
 
         validate_one_codec( "ti.sdo.codecs.g726dec", "G726DEC" );
         validate_one_codec( "ti.sdo.codecs.g726enc", "G726ENC" );    
          
now i rebuilt my codec server so that g726 codec will be part of my codec server and it succeded.
 
now i wanted to test this codec using DMAI apps,since DMAI apps dont include an app for testing G726 codec, i created a copy of the folder "C:\WINCE600\3rdParty\dvsdk_wince_01_11_00_03_patch_01\src\dmai_1_27_00_06\packages\ti\sdo\dmai\apps\speech_encode_io1" and renamed it to "G726_speech_encode_io1"  
 
next i renamed the file "C:\WINCE600\3rdParty\dvsdk_wince_01_11_00_03_patch_01\src\dmai_1_27_00_06\packages\ti\sdo\dmai\apps\G726_speech_encode_io1\wince\speech_encode_io1_omap3530.cfg" to G726_speech_encode_io1_omap3530.cfg
 
now i rebuilt the dmai apps ,it created "G726_speech_encode_io1_omap3530.exe",i copied this exe to the evm and ran the below command line code:
 
G726_speech_encode_io1_omap3530 -c g726enc -i /Release/data/davincieffect.pcm -o /Release/results/davincieffect.alaw --compandinglaw alaw -n 1000
 
but i get the below error:
 
"Failed to create g726enc"
 
that means ,  hSe1 = Senc1_create(hEngine, args->codecName, &params, &dynParams);
is failing and returning null.what mistake hav i done?is there any mistake in adding a new codec to the codec server or in the DMAI application side?
 
pls help me?
 
hoping for a quick reply,
 
thnx in advance.......