Where is the source code of OMX CORE and libstagfrighthw in imx8m Android 13.0.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where is the source code of OMX CORE and libstagfrighthw in imx8m Android 13.0.0

Jump to solution
2,152 Views
xiayanfire
Contributor III

I only find openmax_il in imx8m Android 13.0.0_1.0.0 (L5.15.71_2.2.0 BSP).

But the functions defined in OMX_Core.h are not implemented inside.

  Where is the source code of OMX CORE and libstagfrighthw ?

0 Kudos
Reply
1 Solution
1,920 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @xiayanfire,

I hope you are doing well.

we haven't used openmax_il in Android 13

From android10, google has introduced codec 2 api to replace openmax il for vpu decoder/encoder component, we have implement codec2 decoder/encoder component and its location is android13/vendor/nxp/imx_android_mm/codec2

Thanks & Regards,
Dhruvit Vasavada

View solution in original post

0 Kudos
Reply
10 Replies
2,128 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @xiayanfire,

I hope you are doing well.

OpenMAX Integration Layer (IL) - The OpenMAX IL provides a standardized way for Stagefright to recognize and use custom hardware-based multimedia codecs called components. You must provide an OpenMAX plugin in the form of a shared library named libstagefrighthw.so. This plugin links Stagefright with your custom codec components, which must be implemented according to the OpenMAX IL component standard

i.MX OMX Codecs
Binary: device/fsl-codec/lib/
Source: external/fsl_imx_omx/

Please refer to this link
https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors%40tkb/2199/1/i.MX%20Andro...

I hope this helps!

Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply
2,096 Views
xiayanfire
Contributor III

Thanks for reply.

I got the Android 13.0.0 source code as the README showed below:

imx-manifest/README at imx-android-13 · nxp-imx/imx-manifest · GitHub

And imx-android-13.0.0_1.0.0.tar.gz is download from the link:

https://cache.nxp.com/secured/bsps/imx-android-13.0.0_1.2.0.tar.gz?__gda__=1683292693_4b7e616985796a...

But I did not find the pathes:

Binary: device/fsl-codec/lib/       Source: external/fsl_imx_omx/

Did I got the code wrong, or does the Android 13 code no longer contain this part of code.

Thanks & Regards,

xiayanfire

0 Kudos
Reply
2,076 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @xiayanfire,

I hope you are doing well.

Please accept my apology for the inconvenience.

Please find the libstagefright and OMX CORE source code given below locations.

frameworks/av/media/libstagefright/
hardware/qcom/sdm845/media/libstagefrighthw/
hardware/qcom/media/msm8974/mm-core/omxcore/

I hope this helps!

Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply
2,069 Views
xiayanfire
Contributor III

Thanks for your reply.

But the codes in the fold hardware/qcom/  are copyrighted by QUALCOMM Inc not NXP.

These codes can not call into the NXP vdec driver.

 

Thanks & Regards,

xiayanfire

0 Kudos
Reply
2,044 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @xiayanfire,

I hope you are doing well.

I hope you have found the source code, if the issue is solved, can I close the thread?

Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply
2,041 Views
xiayanfire
Contributor III

I'm afraid it didn't solve my problem

Because the codes in the fold hardware/qcom/  are copyrighted by QUALCOMM Inc not by NXP.

These codes can not call into the NXP vdec driver.I need code that can interface to the NXP vdec driver

 

0 Kudos
Reply
1,921 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @xiayanfire,

I hope you are doing well.

we haven't used openmax_il in Android 13

From android10, google has introduced codec 2 api to replace openmax il for vpu decoder/encoder component, we have implement codec2 decoder/encoder component and its location is android13/vendor/nxp/imx_android_mm/codec2

Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply
1,909 Views
xiayanfire
Contributor III

Thank you very much for your patient and professional reply, which cleared up my doubts, and according to you I have found the code of nxp's omx core in the code repository of AN 9.

https://cache.nxp.com/secured/bsps/imx-p9.0.0_2.3.2.tar.gz?__gda__=1685619581_d285cbb54284ce9e4d515c...

0 Kudos
Reply
2,071 Views
xiayanfire
Contributor III

Thanks for your reply.

I have found the ppt you mentioned in the forum before.But I did not find those two pathes in my code:

Binary: device/fsl-codec/lib/
Source: external/fsl_imx_omx/

Maybe the path is different on Android 13?

I got the Android 13 code as the README saied:

imx-manifest/README at imx-android-13 · nxp-imx/imx-manifest · GitHub

$: tar xvf imx-android-13.0.0_1.0.0.tar.gz
$: source ./imx-android-13.0.0_1.0.0/imx_android_setup.sh

 

Thanks & Regards,

xiayanfire

0 Kudos
Reply
2,069 Views
xiayanfire
Contributor III
0 Kudos
Reply