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.

About rowboat-android 2.2 with DSP codec

Hi~ All ,

I'm using omap3530-evm , rowboat-android 2.2 with DSP codec http://code.google.com/p/rowboat/wiki/DSP , ti-dvsdk_omap3530-evm_4_01_00_09.

NOW , I knew the rowboat-android 2.2 default mediaplayer is opencore-PVplayer and codec file is cs.x64P,right?

I want to add my algorithms in mediaplayer-codecs with DSP , so i have to make a file including my algorithms(C code) to generate a .lib file with

CCS,right?

And then I modified DVSDK codec-engine examples Makefile to crate app_remote.xv5T , all.x64P,the result is correct that I want.

NOW I have a problem , how to add my algorithms to rowboat-android 2.2 mediaplayer codecs with DSP (cs.x64P) ?

I have tried modifying  DVSDK codecs-omap3530 and I added my algorithms to cs.x64P , but there are some API  that I don't konw how to use

        H264DEC.serverFxns = "VIDDEC2_SKEL";
        H264DEC.useCache = false;
        H264DEC.manageOutBufsCache = [true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true];
        H264DEC.stubFxns = "VIDDEC2_STUBS";
        H264DEC.manageInBufsCache = [true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true];
        H264DEC.alg.watermark = false;
        H264DEC.alg.codeSection = codeSection;
        H264DEC.alg.udataSection = udataSection;
        H264DEC.alg.dataSection = dataSection;
        H264DEC.alg.fastMemSection = "IRAM";


Where should I add above API or modify them,if I want to let data be delivered to my algorithms by rowboat-android 2.2 mediaplayer ?

and I tried modifying opencore/codecs_v2 source code ,the following are commands in the terminal 

root@ubuntu:~/rowboat-android# make TARGET_PRODUCT=omap3evm OMAPES=3.x framework

and it made new files framework.jar , framework-res.apk in ../system/framework ,after i modified many files

follow http://code.google.com/p/rowboat/wiki/DSPCodecs

    Adding new codec

        To add new codec into OMX DSP system the following procedure is suggested:

        If new codec is based on Adec1 or Vdec2 DMAI interfaces: 

       Register codec in OpenCORE system:

       1. opencore/codecs_v2/omx_common/src/pv_omxregistry.cpp – add to this file description of the codec (there are several examples in it)

       2. opencore/codecs_v2/omx_common/src/pv_omxcore.cpp – add codec callbacks. 3. build_config/opencore_dynamic/pv_config.h – define

          codec-specific macros to enable code in files above.

      Create OMX DSP codec based on audio or video component:

       1. Create class inherited from appropriate OMX DSP component

       2. Adjust port parameters

       3. Overload relevant DSP layer member functions as needed

       4. Adjust shared library interface to use new component factory

I had a test, I comment many codes in pv_omxregistry.cpp , pv_omxcore.cpp , but new generated file framework.jar , framework-res.apk dose not

change like first I didn't comment and I made it,I reboot android,the default media player still can play media file.

why?

So,how should I do to add my algorithms in android opencore-codec with DSP ?