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.

rowboat+dsp accelerate

Hi, everyone.I am now working on a project which have a need for dsp acceleration on android system. I want the dsp to do some image processing. I have rowboat dsp running on my   beagleboard xm rev B board.

I have searched some projects for the need, such as c6accel, and another one (http://gitorious.org/rowboat/hardware-ti-c6accel). But since i'm a greenhand of dsp, when i compiled them i encouter many errors.

In the beginning, i think the c6accel will compile with the rowboat-dsp, but after compiling, i didn't see any app using dsp. But when i open a video, i got this:

I/ActivityManager( 1193): Starting: Intent { act=android.intent.action.VIEW dat=
content://media/external/video/media/2 typ=video/mp4 cmp=com.cooliris.media/.Mov
ieView } from pid 1872
I/RenderView( 1872): OnPause RenderView com.cooliris.media.RenderView@40585e88
I/omx-dsp ( 1175): 0998891201 [VIDEO.INIT] Register DLL within Opencore
I/omx-dsp ( 1175): 0998891384 [INTERFACE.INFO] Construct interface class
I/omx-dsp ( 1175): 0998891598 [VIDEO.INIT] Component constructed successfully
I/omx-dsp ( 1175): 0998891720 [MPEG4.INIT] MPEG-4 decoder component constructed
I/omx-dsp ( 1175): 0998896877 [INTERFACE.INFO] GetDSPHandle IN
I/omx-dsp ( 1175): 0998989132 [INTERFACE.INFO] GetDSPHandle OUT
I/omx-dsp ( 1175): 0999009609 [VIDEO.INIT] Allocated input buffer: 1048576 bytes

I/omx-dsp ( 1175): 0999009884 [VIDEO.INIT] DSP VIDDEC2 codec initialized
I/omx-dsp ( 1175): 0999010037 [VIDEO.INIT] Component initialization completed
I/OMXCodec( 1175): [OMX.PV.mpeg4dspdec] allocating 4 buffers of size 101376 on i
nput port
I/OMXCodec( 1175): [OMX.PV.mpeg4dspdec] allocating 5 buffers of size 202752 on o
utput port
I/omx-dsp ( 1175): 0999011074 [VIDEO.INIT] Output buffer #0 allocated: 0x52fb0
I/omx-dsp ( 1175): 0999011288 [VIDEO.INIT] Output buffer #1 allocated: 0x53120
I/omx-dsp ( 1175): 0999011471 [VIDEO.INIT] Output buffer #2 allocated: 0x531f0
I/omx-dsp ( 1175): 0999011654 [VIDEO.INIT] Output buffer #3 allocated: 0x532c0
I/omx-dsp ( 1175): 0999011837 [VIDEO.INIT] Output buffer #4 allocated: 0x53390
I/ActivityManager( 1193): Displayed com.cooliris.media/.MovieView: +6s434ms
D/MediaPlayer( 1872): getMetadata
W/AudioPolicyManagerALSA( 1175): AudioPolicyManagerALSA::getStrategyForStream()
Stub Called...
W/AudioPolicyManagerALSA( 1175):  redirecting AudioPolicyManagerALSA::getStrateg
y()
D/TIALSAModule( 1175): open called for devices 00000000 in mode 0...
I/TIALSAModule( 1175): Initialized ALSA PLAYBACK device default
E/AudioHardwareALSA( 1175): RE-OPEN AFTER STANDBY:: took 26 msecs
I/CacheService( 1872): Starting CacheService
D/TIOverlay( 1193): overlay_createOverlay:IN w=352 h=288 format=0x16
I/Overlay ( 1193): v4l2_overlay_init:: w=160 h=120
I/Overlay ( 1193): v4l2_overlay_init:: w=352 h=288
I/Overlay ( 1193): v4l2_overlay_init:: w=352 h=288
I/Overlay ( 1193): 3 buffers allocated 3 requested
I/Overlay ( 1193): buffer cookie is 2
D/TIOverlay( 1193): found display 0 [dvi] enabled
I/TIOverlay( 1193): Opened video1/fd=173/obj=00373370/shm=172/size=4096
D/TIOverlay( 1193): overlay_createOverlay: OUT
I/TIOverlay( 1193): Position/X0/Y0/W0/H0
I/TIOverlay( 1193): Adjusted Position/X200/Y0/W880/H720
I/TIOverlay( 1193): Rotation/0
I/Overlay ( 1193): v4l2_overlay_set_position:: original w=256 h=288
I/Overlay ( 1193): v4l2_overlay_set_position:: new w=880 h=720
I/Overlay ( 1193): dumping driver state:
I/Overlay ( 1193): output pixfmt: w 352, h 288, colorsapce 7, pixfmt UYVY
I/Overlay ( 1193): v4l2_overlay window: l 200, t 0, w 880, h 720
I/Overlay ( 1193): output crop: l 0, t 0, w 352, h 288
I/TIOverlay( 1193): Postponing Stream Enable/1/0
I/TIOverlay( 1175): Queue more buffers before attempting to dequeue
I/TIOverlay( 1175): Queue more buffers before attempting to dequeue
W/InputManagerService( 1193): Window already focused, ignoring focus gain of: co
m.android.internal.view.IInputMethodClient$Stub$Proxy@4059ead8
I/CacheService( 1872): Preparing DiskCache for all thumbnails.
I/CacheService( 1872): DiskCache ready for all thumbnails.
W/ActivityManager( 1193): Hung broadcast discarded after timeout failure: now=92
0383 dispatchTime=239012 startTime=302953 intent=Intent { act=android.intent.act
ion.BOOT_COMPLETED } numReceivers=10 nextReceiver=10 state=1
W/ActivityManager( 1193): Timeout of broadcast BroadcastRecord{4067e210 android.
intent.action.BOOT_COMPLETED} - receiver=null, started 617431ms ago
W/ActivityManager( 1193): Receiver during timeout: ResolveInfo{4067df58 com.andr
oid.bluetooth.opp.BluetoothOppReceiver p=0 o=0 m=0x108000}
W/ActivityManager( 1193): finishReceiver called but none active
I/ActivityManager( 1193): Start proc com.android.quicksearchbox for broadcast co
m.android.quicksearchbox/.SearchWidgetProvider: pid=2335 uid=10008 gids={3003}
I/ActivityManager( 1193): Skipping duplicate ANR: ProcessRecord{406aded8 1512:co
m.android.bluetooth/10028} Broadcast of Intent { act=android.intent.action.BOOT_
COMPLETED }
I/ActivityThread( 2335): Pub com.android.quicksearchbox.google: com.android.quic
ksearchbox.google.GoogleSuggestionProvider
I/ActivityThread( 2335): Pub com.android.quicksearchbox.shortcuts: com.android.q
uicksearchbox.ShortcutsProvider
I/ActivityManager( 1193): Start proc com.android.music for broadcast com.android
.music/.MediaAppWidgetProvider: pid=2346 uid=10012 gids={3003, 1015}
I/ActivityManager( 1193): Start proc com.android.protips for broadcast com.andro
id.protips/.ProtipWidget: pid=2359 uid=10023 gids={}
D/dalvikvm( 1176): GC_EXPLICIT freed 11K, 50% free 2706K/5379K, external 716K/10
38K, paused 49ms
D/dalvikvm( 1176): GC_EXPLICIT freed <1K, 50% free 2706K/5379K, external 716K/10
38K, paused 26ms
D/dalvikvm( 1176): GC_EXPLICIT freed <1K, 50% free 2706K/5379K, external 716K/10
38K, paused 23ms
I/BootReceiver( 1872): Got intent with action android.intent.action.MEDIA_SCANNE
R_FINISHED
W/ActivityManager( 1193): finishReceiver called but active receiver is different

D/skia    ( 1193): purging 74K from font cache [9 entries]
D/dalvikvm( 1193): GC_EXPLICIT freed 845K, 46% free 4217K/7751K, external 4316K/
5390K, paused 48ms
D/dalvikvm( 1287): GC_EXPLICIT freed 189K, 47% free 3069K/5703K, external 5370K/
6636K, paused 30ms
D/AudioHardwareALSA( 1175): INFO: EPIPE
W/ActivityManager( 1193): Activity pause timeout for HistoryRecord{405f9918 com.
cooliris.media/.MovieView}
E/AudioHardwareALSA( 1175): CALLING STANDBY
W/ActivityManager( 1193): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 1193): Activity idle timeout for HistoryRecord{4057ec88 com.c
ooliris.media/.Gallery}
D/TIOverlay( 1193): overlay_destroyOverlay:IN dev (0x1dcff0) and overlay (0x3733
70)
I/TIOverlay( 1193): Destroying overlay/fd=173/obj=00373370
D/TIOverlay( 1193): overlay_destroyOverlay:OUT
I/omx-dsp ( 1175): 1611285519 [VIDEO.INIT] Buffer 0x53390 freed
I/omx-dsp ( 1175): 1611285702 [VIDEO.INIT] Buffer 0x532c0 freed
I/omx-dsp ( 1175): 1611285854 [VIDEO.INIT] Buffer 0x531f0 freed
I/omx-dsp ( 1175): 1611286007 [VIDEO.INIT] Buffer 0x53120 freed
I/omx-dsp ( 1175): 1611286160 [VIDEO.INIT] Buffer 0x52fb0 freed
D/dalvikvm( 1872): GC_CONCURRENT freed 319K, 48% free 3092K/5895K, external 1302
K/1461K, paused 2ms+3ms
I/omx-dsp ( 1175): 1611853481 [INTERFACE.INFO] FreeDSPHandle IN
I/omx-dsp ( 1175): 1611857998 [INTERFACE.INFO] FreeDSPHandle OUT
I/omx-dsp ( 1175): 1611858547 [VIDEO.INIT] DSP VIDDEC2 decoder cleanup completed

I/omx-dsp ( 1175): 1611858669 [VIDEO.INIT] Component deinitialization completed
I/omx-dsp ( 1175): 1612472164 [VIDEO.INIT] Component destroyed
I/omx-dsp ( 1175): 1612472256 [MPEG4.INIT] MPEG-4 decoder component destructed
I/omx-dsp ( 1175): 1612472378 [INTERFACE.INFO] Destroy interface class
I/omx-dsp ( 1175): 1612480984 [VIDEO.INIT] DLL unregistered
D/AccountManagerService( 1193): bind attempt failed for Session: expectLaunch fa
lse, connected false, stats (0/0/0), lifetime 0.0, getAccountsByTypeAndFeatures,
 service_lh2
I/RenderView( 1872): GLObject has changed from com.google.android.gles_jni.GLImp
l@4054c6e0 to com.google.android.gles_jni.GLImpl@405684d8
I/RenderView( 1872): First Draw
I/GridLayer( 1872): Slot changing from 0 to 0
I/RenderView( 1872): Texture creation fail, glError 1281
I/RenderView( 1872): First Draw
D/dalvikvm( 1872): GC_EXTERNAL_ALLOC freed 66K, 47% free 3126K/5895K, external 1
412K/1452K, paused 32ms
W/ProcessStats( 1193): Skipping unknown process pid 3639
D/dalvikvm( 1872): GC_CONCURRENT freed 530K, 50% free 3056K/6087K, external 1124
K/1636K, paused 2ms+2ms

 

I run ps on shell and i know it is a app called mediaserver, but i don't know how it is compiled.

Can anyone help me on this? I have write an email to niclas(http://niclasontiandroid.blogspot.com/  i think maybe he is also a  ti employee), but he didn't reply, maybe busy.

I think c6accel is a solution. I need your help.

 BR.