Rishabh,
- Is the c64xplus_g711_2_00_00_000_production delivered as a codec package ? If not, you will need to create a package around it so that it can be integrated into codec engine. The easiest way to do this is to use the "GenCodecPackage" wizard included with your CE installation:-
http://processors.wiki.ti.com/index.php/Codec_Engine_GenCodecPkg_Wizard_FAQ
- If your app and your codec are both on the DSP-side then you need to look at a CE example for a local codec. Look at CE_INSTALL/examples/ti/sdo/ce/examples/apps/audio1_copy/sync
Look at local.cfg:-
- You would bring in your codec package (that you created using the wizard) as follows
/* get various codec modules; i.e., implementation of codecs */
var decoder =
xdc.useModule('ti.sdo.ce.examples.codecs.auddec1_copy.AUDDEC1_COPY');
var encoder =
xdc.useModule('ti.sdo.ce.examples.codecs.audenc1_copy.AUDENC1_COPY');
- You would initialize and create your Engine as follows:-
/*
* ======== Engine Configuration ========
*/
var Engine = xdc.useModule('ti.sdo.ce.Engine');
var myEngine = Engine.create("audio1_copy", [
{
name : "auddec1_copy",
mod : decoder,
local: true
},
{
name : "audenc1_copy",
mod : encoder,
local: true
}
]);
Look at app.c:-
- Open the engine
/* Open the Engine */
attrs.procId = procId;
if ((ce = Engine_open(engineName, &attrs, NULL)) == NULL) {
fprintf(stderr, "%s: error: can't open engine %s\n",
progName, engineName);
goto end;
}
- You would simply instantiate your codec as follows:-
/* allocate and initialize video decoder on the engine */
dec = AUDDEC1_create(ce, decoderName, NULL);
if (dec == NULL) {
printf( "App-> ERROR: can't open codec %s\n", decoderName);
goto end;
}
Let me know what step you are stuck at, and I will try and assist you accordingly.