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.
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";
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?