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.

How to enable DM814x hardware acceleration for video codec

Sir,
   
   I have ported Android ICS 4.0.3 on DM814x and I am trying to enable hardware acceleration for video codec.
For that i have enabled the HARDWARE_OMX by adding the following line
                     "HARDWARE_OMX := true”
 in /rowboat-android-ics/device/ti/ti814xevm/BoardConfig.mk file and fixed the errors due to that by adding
                     "LOCAL_MODULE_TAGS := optional"
 in the Android.mk for the affected modules.

Then i am trying to play a sample .mp4 video.

I got the Thumbnail Image view of that video but video is not playing and i am getting the following error from logcat. So kindly suggest me to fix this error...


I/ActivityManager(  139): START {act=android.intent.action.VIEW dat=content://media/external/video/media/12 typ=video/* cmp=com.android.gallery3d/.app.MovieActivity (h5
W/BlobCache(  455): cannot read header
D/dalvikvm(  455): GC_CONCURRENT freed 1800K, 17% free 9833K/11719K, paused 3ms+4ms
I/AudioService(  139):  AudioFocus  requestAudioFocus() from android.media.AudioManager@41505ab8
D/dalvikvm(  139): GC_CONCURRENT freed 457K, 21% free 8471K/10631K, paused 3ms+6ms
E/TIOMX_CORE(   62): TECLEVER TEST START GetHandle()
D/TIOMX_CORE(   62): Found component OMX.TI.Video.Decoder with refCount 0
I/TI_Video_Decoder(   62): TI Video Decoder
I/OMXCodec(   62): [OMX.TI.Video.Decoder] AVC profile = 66 (Baseline), level = 13
I/OMXCodec(   62): [OMX.TI.Video.Decoder] video dimensions are 320 x 240
D/TI_Video_Decoder(   62): VIDDEC_SendCommand: Received request from omx client to change state to 2
D/TI_Video_Decoder(   62): Handle request for state transition: 1 => OMX_StateIdle
D/TI_Video_Decoder(   62): VIDDEC_InitDSP_H264Dec():7191 LCML_InitMMCodec Failed!...80001009
D/TI_Video_Decoder(   62): VIDDEC_HandleCommand():2584 LCML Error 1
E/OMXCodec(   62): [OMX.TI.Video.Decoder] ERROR(0x80001009, 2)
I/ActivityManager(  139): Displayed com.android.gallery3d/.app.MovieActivity: +479ms
V/StateManager(  455): saveState
V/StateManager(  455): saveState class com.android.gallery3d.app.AlbumSetPage
V/StateManager(  455): saveState class com.android.gallery3d.app.AlbumPage
V/StateManager(  455): saveState class com.android.gallery3d.app.PhotoPage
D/TI_Video_Decoder(   62): VIDDEC_GetState():2334 VIDDEC_GetState timed out
D/TIOMX_CORE(   62): Found matching pHandle(0x155f0) at index 1 with refCount 1
E/MediaPlayer(  455): error (1, -2147483648)
E/MediaPlayer(  455): Error (1,-2147483648)
D/VideoView(  455): Error: 1,-2147483648



Thanks & Regards,
  J.Moorthi